llvm.org GIT mirror llvm / 9a5bdad
upgrade this test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44298 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 12 years ago
1 changed file(s) with 6 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep rdtsc
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86-64 | grep rdtsc
0 ; RUN: llvm-as < %s | llc -march=x86 | grep rdtsc
1 ; RUN: llvm-as < %s | llc -march=x86-64 | grep rdtsc
2 declare i64 @llvm.readcyclecounter()
23
3 declare ulong %llvm.readcyclecounter()
4
5 ulong %foo() {
6 %tmp.1 = call ulong %llvm.readcyclecounter ()
7 ret ulong %tmp.1
4 define i64 @foo() {
5 %tmp.1 = call i64 @llvm.readcyclecounter( ) ; [#uses=1]
6 ret i64 %tmp.1
87 }
9