summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/select-imm.ll
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-04-04 18:23:42 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-04-04 18:23:42 +0000
commitc5041cac7d3aeaa7350abadf2a7ada92e8da27dc (patch)
treeeefd36287fd9e7715a6717aa0c9c6f32384e081b /test/CodeGen/ARM/select-imm.ll
parent1487cb3a5a0535b343e602e976af538fd87d0df2 (diff)
downloadllvm-c5041cac7d3aeaa7350abadf2a7ada92e8da27dc.tar.gz
llvm-c5041cac7d3aeaa7350abadf2a7ada92e8da27dc.tar.bz2
llvm-c5041cac7d3aeaa7350abadf2a7ada92e8da27dc.tar.xz
Implement ARMBaseInstrInfo::commuteInstruction() for MOVCCr.
A MOVCCr instruction can be commuted by inverting the condition. This can help reduce register pressure and remove unnecessary copies in some cases. <rdar://problem/11182914> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/select-imm.ll')
-rw-r--r--test/CodeGen/ARM/select-imm.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/select-imm.ll b/test/CodeGen/ARM/select-imm.ll
index e927b39be5..c9ac66acbf 100644
--- a/test/CodeGen/ARM/select-imm.ll
+++ b/test/CodeGen/ARM/select-imm.ll
@@ -64,7 +64,7 @@ define i32 @t4(i32 %a, i32 %b, i32 %x) nounwind {
entry:
; ARM: t4:
; ARM: ldr
-; ARM: movlt
+; ARM: mov{{lt|ge}}
; ARMT2: t4:
; ARMT2: movwlt [[R0:r[0-9]+]], #65365