summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/fast-isel-mvn.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/ARM/fast-isel-mvn.ll')
-rw-r--r--llvm/test/CodeGen/ARM/fast-isel-mvn.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/fast-isel-mvn.ll b/llvm/test/CodeGen/ARM/fast-isel-mvn.ll
index 9cb56ea9ae1..c9c32880cce 100644
--- a/llvm/test/CodeGen/ARM/fast-isel-mvn.ll
+++ b/llvm/test/CodeGen/ARM/fast-isel-mvn.ll
@@ -106,3 +106,15 @@ entry:
call void @foo(i32 -2130706433)
ret void
}
+
+; Load from constant pool.
+define i32 @t10(i32 %a) {
+; ARM-LABEL: t10
+; ARM: ldr
+; THUMB-LABEL: t10
+; THUMB: movw r1, #52257
+; THUMB-NEXT: movt r1, #35037
+ %1 = xor i32 -1998730207, %a
+ ret i32 %1
+}
+
OpenPOWER on IntegriCloud