diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2010-11-13 00:27:47 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2010-11-13 00:27:47 +0000 |
| commit | e5e0ef180ea1d0d7b482f998db12defde96cbf4f (patch) | |
| tree | 422e4def8d63e1044bab80c45d1605bcf7ce898b /test/CodeGen | |
| parent | 6eb39a09b44f104a13f5c051529c1dd392d760db (diff) | |
| download | llvm-e5e0ef180ea1d0d7b482f998db12defde96cbf4f.tar.gz llvm-e5e0ef180ea1d0d7b482f998db12defde96cbf4f.tar.bz2 llvm-e5e0ef180ea1d0d7b482f998db12defde96cbf4f.tar.xz | |
Fix an obvious typo which inverted an immediate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118951 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
| -rw-r--r-- | test/CodeGen/ARM/select-imm.ll | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/test/CodeGen/ARM/select-imm.ll b/test/CodeGen/ARM/select-imm.ll index 66e025e3f5..1dec8f9d04 100644 --- a/test/CodeGen/ARM/select-imm.ll +++ b/test/CodeGen/ARM/select-imm.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s -march=arm | FileCheck %s --check-prefix=ARM -; RUN: llc < %s -march=arm -mattr=+thumb2 | FileCheck %s --check-prefix=T2 +; RUN: llc < %s -march=arm | FileCheck %s --check-prefix=ARM +; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s --check-prefix=T2 define i32 @t1(i32 %c) nounwind readnone { entry: @@ -25,7 +25,7 @@ entry: ; ARM: movle r0, #123 ; T2: t2: -; T2: mov r0, #123 +; T2: mov.w r0, #123 ; T2: movwgt r0, #357 %0 = icmp sgt i32 %c, 1 @@ -40,9 +40,22 @@ entry: ; ARM: moveq r0, #1 ; T2: t3: -; T2: mov r0, #0 +; T2: mov.w r0, #0 ; T2: moveq r0, #1 %0 = icmp eq i32 %a, 160 %1 = zext i1 %0 to i32 ret i32 %1 } + +define i32 @t4(i32 %a, i32 %b, i32 %x) nounwind { +entry: +; ARM: t4: +; ARM: ldr +; ARM: movlt + +; T2: t4: +; T2: mvnlt.w r0, #11141290 + %0 = icmp slt i32 %a, %b + %1 = select i1 %0, i32 4283826005, i32 %x + ret i32 %1 +} |
