[NVPTX] Add missing patterns for div.approx with immediate denominator
[oota-llvm.git] / test / CodeGen / Thumb2 / thumb2-add3.ll
index 9b75b407092a387bbecc63326289f925dc19d843..bb7788f2b76ccccd7ea03f941d1242a9e7186038 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 < %s -march=thumb -mcpu=arm1156t2-s -mattr=+thumb2 | FileCheck %s
 
 define i32 @f1(i32 %a) {
     %tmp = add i32 %a, 4095
     ret i32 %tmp
 }
+
+; CHECK-LABEL: f1:
+; CHECK:       addw    r0, r0, #4095