summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM
diff options
context:
space:
mode:
authorBradley Smith <bradley.smith@arm.com>2016-01-15 10:25:14 +0000
committerBradley Smith <bradley.smith@arm.com>2016-01-15 10:25:14 +0000
commitd9a99ce53d7d84aad8f7019b4628020f51046f25 (patch)
treedbf55842db5cdd018cd0b9b6f3f9e82530842b70 /llvm/test/CodeGen/ARM
parente26f7994222ab7113990d23b11a5fd4db733498f (diff)
downloadbcm5719-llvm-d9a99ce53d7d84aad8f7019b4628020f51046f25.tar.gz
bcm5719-llvm-d9a99ce53d7d84aad8f7019b4628020f51046f25.zip
[ARM] Add MOVW/MOVT instructions to ARMv8-M Baseline/Mainline
llvm-svn: 257879
Diffstat (limited to 'llvm/test/CodeGen/ARM')
-rw-r--r--llvm/test/CodeGen/ARM/movt.ll6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/ARM/movt.ll b/llvm/test/CodeGen/ARM/movt.ll
index 94c022ee271..da9b698f209 100644
--- a/llvm/test/CodeGen/ARM/movt.ll
+++ b/llvm/test/CodeGen/ARM/movt.ll
@@ -1,9 +1,11 @@
; RUN: llc -mtriple=arm-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s
; rdar://7317664
+; RUN: llc -mtriple=thumbv8m.base %s -o - | FileCheck %s
+
define i32 @t(i32 %X) nounwind {
; CHECK-LABEL: t:
-; CHECK: movt r0, #65535
+; CHECK: movt r{{[0-9]}}, #65535
entry:
%0 = or i32 %X, -65536
ret i32 %0
@@ -11,7 +13,7 @@ entry:
define i32 @t2(i32 %X) nounwind {
; CHECK-LABEL: t2:
-; CHECK: movt r0, #65534
+; CHECK: movt r{{[0-9]}}, #65534
entry:
%0 = or i32 %X, -131072
%1 = and i32 %0, -65537
OpenPOWER on IntegriCloud