llvm.org GIT mirror llvm / 261bc89
add some nounwind's. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119086 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 9 years ago
5 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llc < %s -march=ppc64 -mcpu=g5 | grep cntlzd
11
2 define i32 @_ZNK4llvm5APInt17countLeadingZerosEv(i64 *%t) {
2 define i32 @_ZNK4llvm5APInt17countLeadingZerosEv(i64 *%t) nounwind {
33 %tmp19 = load i64* %t
44 %tmp22 = tail call i64 @llvm.ctlz.i64( i64 %tmp19 ) ; [#uses=1]
55 %tmp23 = trunc i64 %tmp22 to i32
0 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
11 ; RUN: grep {cmpwi cr0, r3, -1}
22
3 define i32 @test(i32 %x) {
3 define i32 @test(i32 %x) nounwind {
44 %c = icmp eq i32 %x, -1
55 br i1 %c, label %T, label %F
66 T:
33 ; RUN: grep srwi %t | count 1
44 ; RUN: not grep slwi %t
55
6 define i16 @test1(i32 %srcA, i32 %srcB, i32 %alpha) {
6 define i16 @test1(i32 %srcA, i32 %srcB, i32 %alpha) nounwind {
77 entry:
88 %tmp.1 = shl i32 %srcA, 15 ; [#uses=1]
99 %tmp.4 = and i32 %tmp.1, 32505856 ; [#uses=1]
55 ; RUN: not grep stfiwx %t2
66 ; RUN: grep r1 %t2
77
8 define void @test(float %a, i32* %b) {
8 define void @test(float %a, i32* %b) nounwind {
99 %tmp.2 = fptosi float %a to i32 ; [#uses=1]
1010 store i32 %tmp.2, i32* %b
1111 ret void
1212 }
1313
14 define void @test2(float %a, i32* %b, i32 %i) {
14 define void @test2(float %a, i32* %b, i32 %i) nounwind {
1515 %tmp.2 = getelementptr i32* %b, i32 1 ; [#uses=1]
1616 %tmp.5 = getelementptr i32* %b, i32 %i ; [#uses=1]
1717 %tmp.7 = fptosi float %a to i32 ; [#uses=3]
11 ; RUN: llc < %s -march=ppc32 -enable-unsafe-fp-math | \
22 ; RUN: grep fmul | count 1
33
4 define double @foo(double %X) {
4 define double @foo(double %X) nounwind {
55 %tmp1 = fmul double %X, 1.23
66 %tmp2 = fmul double %tmp1, 4.124
77 ret double %tmp2