summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Thumb/constants.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/Thumb/constants.ll')
-rw-r--r--llvm/test/CodeGen/Thumb/constants.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Thumb/constants.ll b/llvm/test/CodeGen/Thumb/constants.ll
index 34c08139602..b1145d7b1d8 100644
--- a/llvm/test/CodeGen/Thumb/constants.ll
+++ b/llvm/test/CodeGen/Thumb/constants.ll
@@ -9,3 +9,11 @@
define i32 @mov_and_add() {
ret i32 267
}
+
+; CHECK-T1-LABEL: @mov_and_add2
+; CHECK-T2-LABEL: @mov_and_add2
+; CHECK-T1: ldr r0,
+; CHECK-T2: movw r0, #511
+define i32 @mov_and_add2() {
+ ret i32 511
+}
OpenPOWER on IntegriCloud