diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-07-20 16:16:48 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-07-20 16:16:48 +0000 |
commit | db97f324c89938db6f29c4367a41aa4790286558 (patch) | |
tree | c7cd4889387fe1206b50956581c924a69b37899c /test | |
parent | 9a737a56093478a3fa86a6a0811fe6a8e6606efc (diff) | |
download | external_llvm-db97f324c89938db6f29c4367a41aa4790286558.zip external_llvm-db97f324c89938db6f29c4367a41aa4790286558.tar.gz external_llvm-db97f324c89938db6f29c4367a41aa4790286558.tar.bz2 |
update tests for smarter BIC usage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll | 6 | ||||
-rw-r--r-- | test/CodeGen/Thumb2/thumb2-and2.ll | 2 | ||||
-rw-r--r-- | test/CodeGen/Thumb2/thumb2-uxtb.ll | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll b/test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll index 3f1b9eb..fb6978b 100644 --- a/test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll +++ b/test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll @@ -7,13 +7,11 @@ define void @t() nounwind ssp { entry: ; CHECK: t: -; CHECK: mov r0, sp -; CHECK: bfc r0, #0, #3 +; CHECK: bic r0, sp, #7 ; CHECK: subs r0, #16 ; CHECK: mov sp, r0 ; Yes, this is stupid codegen, but it's correct. -; CHECK: mov r0, sp -; CHECK: bfc r0, #0, #3 +; CHECK: bic r0, sp, #7 ; CHECK: subs r0, #16 ; CHECK: mov sp, r0 %size = mul i32 8, 2 diff --git a/test/CodeGen/Thumb2/thumb2-and2.ll b/test/CodeGen/Thumb2/thumb2-and2.ll index 76c56d0..7b0432d 100644 --- a/test/CodeGen/Thumb2/thumb2-and2.ll +++ b/test/CodeGen/Thumb2/thumb2-and2.ll @@ -30,7 +30,7 @@ define i32 @f4(i32 %a) { ret i32 %tmp } ; CHECK: f4: -; CHECK: and r0, r0, #1448498774 +; CHECK: bic r0, r0, #-1448498775 ; 66846720 = 0x03fc0000 define i32 @f5(i32 %a) { diff --git a/test/CodeGen/Thumb2/thumb2-uxtb.ll b/test/CodeGen/Thumb2/thumb2-uxtb.ll index 1fa4e5c..2074f98 100644 --- a/test/CodeGen/Thumb2/thumb2-uxtb.ll +++ b/test/CodeGen/Thumb2/thumb2-uxtb.ll @@ -6,7 +6,7 @@ define i32 @test1(i32 %x) { ; ARMv7A: uxtb16 r0, r0 ; ARMv7M: test1 -; ARMv7M: and r0, r0, #16711935 +; ARMv7M: bic r0, r0, #-16711936 %tmp1 = and i32 %x, 16711935 ; <i32> [#uses=1] ret i32 %tmp1 } |