Fix typo in flag to opt, and also a CHECK-NEXT that doesn't follow a
authorKaelyn Uhrain <rikka@google.com>
Wed, 23 May 2012 20:21:36 +0000 (20:21 +0000)
committerKaelyn Uhrain <rikka@google.com>
Wed, 23 May 2012 20:21:36 +0000 (20:21 +0000)
CHECK. The latter error was hidden by the former, and the test harness
used by e.g. "make check" silently ignored that opt was printing an
error message about an unknown flag instead of running on the test file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157341 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/BoundsChecking/simple.ll

index 8f4aa5935abcbb2892208dd52e76f20edf300e0f..7cfe6ecfd22c6a29afae1924d7dfe8d09e04c814 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -boundschecking -S | FileCheck %s
+; RUN: opt < %s -bounds-checking -S | FileCheck %s
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
 
 @.str = private constant [8 x i8] c"abcdefg\00"   ; <[8 x i8]*>
@@ -32,7 +32,7 @@ define void @f3(i64 %x) nounwind {
   %1 = tail call i8* @calloc(i64 4, i64 %x)
   %2 = bitcast i8* %1 to i32*
   %idx = getelementptr inbounds i32* %2, i64 8
-; CHECK-NEXT: mul i64 4, %
+; CHECK: mul i64 4, %
 ; CHECK-NEXT: sub i64 {{.*}}, 32
 ; CHECK-NEXT: icmp ult i64 {{.*}}, 32
 ; CHECK-NEXT: icmp ult i64 {{.*}}, 4