summaryrefslogtreecommitdiff
path: root/test/CodeGen/Thumb2/bfi.ll
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-04 19:02:11 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-04 19:02:11 +0000
commit96169b189ca75e22f297a62a77aaf0dc4832f4a5 (patch)
treea5ed68302caeccd3fb1f7574b4351857ce283a9f /test/CodeGen/Thumb2/bfi.ll
parent28e104bcb0d436adfc961776efb421bb21650e7b (diff)
downloadllvm-96169b189ca75e22f297a62a77aaf0dc4832f4a5.tar.gz
llvm-96169b189ca75e22f297a62a77aaf0dc4832f4a5.tar.bz2
llvm-96169b189ca75e22f297a62a77aaf0dc4832f4a5.tar.xz
Fix more register and coalescing dependencies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2/bfi.ll')
-rw-r--r--test/CodeGen/Thumb2/bfi.ll9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/CodeGen/Thumb2/bfi.ll b/test/CodeGen/Thumb2/bfi.ll
index 0e767707b6..3612e27528 100644
--- a/test/CodeGen/Thumb2/bfi.ll
+++ b/test/CodeGen/Thumb2/bfi.ll
@@ -30,9 +30,8 @@ entry:
define i32 @f3(i32 %A, i32 %B) nounwind readnone optsize {
entry:
; CHECK: f3
-; CHECK: lsrs r2, r0, #7
-; CHECK: mov r0, r1
-; CHECK: bfi r0, r2, #7, #16
+; CHECK: lsrs {{.*}}, #7
+; CHECK: bfi {{.*}}, #7, #16
%and = and i32 %A, 8388480 ; <i32> [#uses=1]
%and2 = and i32 %B, -8388481 ; <i32> [#uses=1]
%or = or i32 %and2, %and ; <i32> [#uses=1]
@@ -42,8 +41,8 @@ entry:
; rdar://8752056
define i32 @f4(i32 %a) nounwind {
; CHECK: f4
-; CHECK: movw r1, #3137
-; CHECK: bfi r1, r0, #15, #5
+; CHECK: movw [[R1:r[0-9]+]], #3137
+; CHECK: bfi [[R1]], {{.*}}, #15, #5
%1 = shl i32 %a, 15
%ins7 = and i32 %1, 1015808
%ins12 = or i32 %ins7, 3137