diff options
Diffstat (limited to 'llvm/test/CodeGen/Thumb2/thumb2-add3.ll')
| -rw-r--r-- | llvm/test/CodeGen/Thumb2/thumb2-add3.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Thumb2/thumb2-add3.ll b/llvm/test/CodeGen/Thumb2/thumb2-add3.ll new file mode 100644 index 00000000000..9b75b407092 --- /dev/null +++ b/llvm/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 +} |

