abe15a3f5dd204c774c70d602433ccd316d18368
[oota-llvm.git] / test / CodeGen / Thumb2 / thumb2-add3.ll
1 ; RUN: llvm-as < %s | llc | grep {addw\\W*r\[0-9\],\\W*r\[0-9\],\\W*#\[0-9\]*} | grep {#4095} | count 1
2
3 target triple = "thumbv7-apple-darwin"
4
5 define i32 @f1(i32 %a) {
6     %tmp = add i32 %a, 4095
7     ret i32 %tmp
8 }