diff options
Diffstat (limited to 'llvm/test/CodeGen/ARM/thumb-imm.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/thumb-imm.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/thumb-imm.ll b/llvm/test/CodeGen/ARM/thumb-imm.ll new file mode 100644 index 00000000000..1e50a896ff2 --- /dev/null +++ b/llvm/test/CodeGen/ARM/thumb-imm.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=arm -enable-thumb && +; RUN: llvm-as < %s | llc -march=arm -enable-thumb | not grep CPI + + +define i32 %test1() { + ret i32 1000 +} + +define i32 %test2() { + ret i32 -256 +} |