Test 221067 in a fixed-target test so as not to fail on targets with different DWARF...
[oota-llvm.git] / test / CodeGen / AArch64 / eliminate-trunc.ll
index b8b47fd57870cdd61bb8c8ca8f1dfd7124a5e125..ea86a084cb42f5067f1c8a65d0ae18b6b6685e6a 100644 (file)
@@ -1,11 +1,12 @@
-; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s
+; RUN: llc -verify-machineinstrs -o - %s -mtriple=aarch64-none-apple-ios7.0 -mcpu=cyclone | FileCheck %s
 
 ; Check  trunc i64 operation is translated as a subregister access
 ; eliminating an i32 induction varible.
-; CHECK: add {{x[0-9]+}}, {{x[0-9]+}}, #1
-; CHECK-NOT: add {{w[0-9]+}}, {{w[0-9]+}}, #1
-; CHECK-NEXT: cmp {{w[0-9]+}}, {{w[0-9]+}}, uxtw
-define void @test1_signed([8 x i8]* nocapture %a, i8* nocapture readonly %box, i8 %limit) {
+
+; CHECK-NOT: add {{x[0-9]+}}, {{x[0-9]+}}, #1
+; CHECK: add {{w[0-9]+}}, {{w[0-9]+}}, #1
+; CHECK-NEXT: cmp {{w[0-9]+}}, {{w[0-9]+}}
+define void @test1_signed([8 x i8]* nocapture %a, i8* nocapture readonly %box, i8 %limit) minsize {
 entry:
   %conv = zext i8 %limit to i32
   %cmp223 = icmp eq i8 %limit, 0