llvm.org GIT mirror llvm / d9d3a89
Add nounwind. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93244 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 10 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
11 ; RUN: llc < %s -march=x86 | grep {leal 3(,%eax,8)}
22
33 ;; This example can't fold the or into an LEA.
4 define i32 @test(float ** %tmp2, i32 %tmp12) {
4 define i32 @test(float ** %tmp2, i32 %tmp12) nounwind {
55 %tmp3 = load float** %tmp2
66 %tmp132 = shl i32 %tmp12, 2 ; [#uses=1]
77 %tmp4 = bitcast float* %tmp3 to i8* ; [#uses=1]
1313
1414
1515 ;; This can!
16 define i32 @test2(i32 %a, i32 %b) {
16 define i32 @test2(i32 %a, i32 %b) nounwind {
1717 %c = shl i32 %a, 3
1818 %d = or i32 %c, 3
1919 ret i32 %d