llvm.org GIT mirror llvm / ee45c55
Upgrade intrinsic function calls git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32134 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
2 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
0 ; Make sure this testcase does not use ctpop
11 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep -i 'cntlzw'
22
3 declare int %llvm.cttz(int)
3 declare uint %llvm.cttz.i32(uint)
44
55 implementation ; Functions:
66
7 int %bar(int %x) {
7 uint %bar(uint %x) {
88 entry:
9 %tmp.1 = call int %llvm.cttz( int %x )
10 ret int %tmp.1
9 %tmp.1 = call uint %llvm.cttz.i32( uint %x )
10 ret uint %tmp.1
1111 }
55 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-fsqrt | not grep 'fsqrt f1, f1' &&
66 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g4 | not grep 'fsqrt f1, f1'
77
8 declare double %llvm.sqrt(double)
8 declare double %llvm.sqrt.f64(double)
99 double %X(double %Y) {
10 %Z = call double %llvm.sqrt(double %Y)
10 %Z = call double %llvm.sqrt.f64(double %Y)
1111 ret double %Z
1212 }