diff options
Diffstat (limited to 'test/CodeGen/Thumb2/thumb2-add3.ll')
-rw-r--r-- | test/CodeGen/Thumb2/thumb2-add3.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-add3.ll b/test/CodeGen/Thumb2/thumb2-add3.ll new file mode 100644 index 0000000..9b75b40 --- /dev/null +++ b/test/CodeGen/Thumb2/thumb2-add3.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | llc | grep {addw\\W*r\[0-9\],\\W*r\[0-9\],\\W*#\[0-9\]*} | grep {#4095} | Count 1 + +target triple = "thumbv7-apple-darwin" + +define i32 @f1(i32 %a) { + %tmp = add i32 %a, 4095 + ret i32 %tmp +} |