ARM: mark branch-like instructions with correct flags.
[oota-llvm.git] / test / CodeGen / Thumb2 / thumb2-add3.ll
index 9b75b407092a387bbecc63326289f925dc19d843..03a817003afd4c488a2c7d700c5bb8047fa219c8 100644 (file)
@@ -1,8 +1,9 @@
-; 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"
+; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s
 
 define i32 @f1(i32 %a) {
     %tmp = add i32 %a, 4095
     ret i32 %tmp
 }
+
+; CHECK-LABEL: f1:
+; CHECK:       addw    r0, r0, #4095