Fix the remaining TCL-style quotes found in the testsuite. This is
authorChandler Carruth <chandlerc@gmail.com>
Mon, 2 Jul 2012 19:09:46 +0000 (19:09 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 2 Jul 2012 19:09:46 +0000 (19:09 +0000)
another mechanical change accomplished though the power of terrible Perl
scripts.

I have manually switched some "s to 's to make escaping simpler.

While I started this to fix tests that aren't run in all configurations,
the massive number of tests is due to a really frustrating fragility of
our testing infrastructure: things like 'grep -v', 'not grep', and
'expected failures' can mask broken tests all too easily.

Essentially, I'm deeply disturbed that I can change the testsuite so
radically without causing any change in results for most platforms. =/

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

124 files changed:
test/Analysis/ScalarEvolution/2008-11-18-Stride2.ll
test/Analysis/ScalarEvolution/2008-12-14-StrideAndSigned.ll
test/Analysis/ScalarEvolution/2008-12-15-DontUseSDiv.ll
test/Analysis/ScalarEvolution/2009-01-02-SignedNegativeStride.ll
test/Assembler/2004-01-11-getelementptrfolding.ll
test/Bindings/Ocaml/vmcore.ml
test/CodeGen/ARM/2007-04-03-PEIBug.ll
test/CodeGen/ARM/2007-05-23-BadPreIndexedStore.ll
test/CodeGen/ARM/call_nolink.ll
test/CodeGen/Mips/2008-07-23-fpcmp.ll
test/CodeGen/Mips/2008-07-29-icmp.ll
test/CodeGen/PowerPC/2006-01-11-darwin-fp-argument.ll
test/CodeGen/PowerPC/long-compare.ll
test/CodeGen/PowerPC/rlwimi-commute.ll
test/CodeGen/Thumb/frame_thumb.ll
test/CodeGen/Thumb2/2010-01-06-TailDuplicateLabels.ll
test/CodeGen/Thumb2/thumb2-rev16.ll
test/CodeGen/X86/2003-11-03-GlobalBool.ll
test/CodeGen/X86/2004-03-30-Select-Max.ll
test/CodeGen/X86/2006-03-01-InstrSchedBug.ll
test/CodeGen/X86/2006-05-01-SchedCausingSpills.ll
test/CodeGen/X86/2006-05-08-InstrSched.ll
test/CodeGen/X86/2006-08-21-ExtraMovInst.ll
test/CodeGen/X86/2007-04-27-InlineAsm-IntMemInput.ll
test/CodeGen/X86/2007-05-07-InvokeSRet.ll
test/CodeGen/X86/2007-09-05-InvalidAsm.ll
test/CodeGen/X86/2008-02-20-InlineAsmClobber.ll
test/CodeGen/X86/2008-03-23-DarwinAsmComments.ll
test/CodeGen/X86/2008-04-16-ReMatBug.ll
test/CodeGen/X86/2008-04-28-CoalescerBug.ll
test/CodeGen/X86/2008-10-24-FlippedCompare.ll
test/CodeGen/X86/2009-03-12-CPAlignBug.ll
test/CodeGen/X86/2009-03-23-MultiUseSched.ll
test/CodeGen/X86/2009-04-16-SpillerUnfold.ll
test/CodeGen/X86/2009-05-30-ISelBug.ll
test/CodeGen/X86/20090313-signext.ll
test/CodeGen/X86/2012-03-26-PostRALICMBug.ll
test/CodeGen/X86/overlap-shift.ll
test/CodeGen/X86/pr3522.ll
test/CodeGen/X86/regpressure.ll
test/CodeGen/X86/remat-scalar-zero.ll
test/CodeGen/X86/subreg-to-reg-4.ll
test/CodeGen/X86/uint_to_fp.ll
test/CodeGen/X86/umul-with-carry.ll
test/MC/Disassembler/ARM/invalid-LDR_POST-arm.txt
test/MC/Disassembler/ARM/invalid-VLD1DUPq8_UPD-arm.txt
test/MC/Disassembler/ARM/invalid-VQADD-arm.txt
test/MC/Disassembler/ARM/invalid-VST2b32_UPD-arm.txt
test/MC/Disassembler/ARM/invalid-t2LDREXD-thumb.txt
test/MC/Disassembler/ARM/invalid-t2STRD_PRE-thumb.txt
test/MC/Disassembler/ARM/invalid-t2STREXB-thumb.txt
test/Other/2008-10-15-MissingSpace.ll
test/Transforms/ArgumentPromotion/control-flow.ll
test/Transforms/ConstProp/2002-05-03-NotOperator.ll
test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll
test/Transforms/DeadArgElim/2007-10-18-VarargsReturn.ll
test/Transforms/GVN/2007-07-25-InfiniteLoop.ll
test/Transforms/GVN/2007-07-31-RedundantPhi.ll
test/Transforms/GVN/basic.ll
test/Transforms/IndVarSimplify/2007-01-06-TripCount.ll
test/Transforms/IndVarSimplify/2009-04-14-shorten_iv_vars.ll
test/Transforms/IndVarSimplify/2009-04-15-shorten-iv-vars-2.ll
test/Transforms/IndVarSimplify/loop_evaluate10.ll
test/Transforms/IndVarSimplify/loop_evaluate9.ll
test/Transforms/Inline/2007-04-15-InlineEH.ll
test/Transforms/Inline/inline-invoke-tail.ll
test/Transforms/Inline/invoke_test-1.ll
test/Transforms/InstCombine/2004-09-20-BadLoadCombine.ll
test/Transforms/InstCombine/2004-09-20-BadLoadCombine2.ll
test/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll
test/Transforms/InstCombine/2007-12-10-ConstFoldCompare.ll
test/Transforms/InstCombine/2008-01-29-AddICmp.ll
test/Transforms/InstCombine/2008-07-09-SubAndError.ll
test/Transforms/InstCombine/2008-07-16-sse2_storel_dq.ll
test/Transforms/InstCombine/2009-02-20-InstCombine-SROA.ll
test/Transforms/InstCombine/CPP_min_max.ll
test/Transforms/InstCombine/and-or-and.ll
test/Transforms/InstCombine/and-or-not.ll
test/Transforms/InstCombine/apint-and-or-and.ll
test/Transforms/InstCombine/apint-and1.ll
test/Transforms/InstCombine/apint-and2.ll
test/Transforms/InstCombine/apint-sub.ll
test/Transforms/InstCombine/apint-xor1.ll
test/Transforms/InstCombine/apint-xor2.ll
test/Transforms/InstCombine/bit-checks.ll
test/Transforms/InstCombine/bittest.ll
test/Transforms/InstCombine/memmove.ll
test/Transforms/InstCombine/memset.ll
test/Transforms/InstCombine/setcc-strength-reduce.ll
test/Transforms/InstCombine/shufflemask-undef.ll
test/Transforms/InstCombine/xor.ll
test/Transforms/JumpThreading/compare.ll
test/Transforms/LICM/2003-02-27-PreheaderProblem.ll
test/Transforms/LoopRotate/PhiRename-1.ll
test/Transforms/LoopStrengthReduce/dont-hoist-simple-loop-constants.ll
test/Transforms/LoopStrengthReduce/invariant_value_first.ll
test/Transforms/LoopStrengthReduce/invariant_value_first_arg.ll
test/Transforms/LoopStrengthReduce/var_stride_used_by_compare.ll
test/Transforms/MemCpyOpt/2008-02-24-MultipleUseofSRet.ll
test/Transforms/MemCpyOpt/2008-03-13-ReturnSlotBitcast.ll
test/Transforms/MemCpyOpt/sret.ll
test/Transforms/MergeFunc/fold-weak.ll
test/Transforms/MergeFunc/phi-speculation1.ll
test/Transforms/PruneEH/simplenoreturntest.ll
test/Transforms/SCCP/2008-05-23-UndefCallFold.ll
test/Transforms/SCCP/apint-ipsccp2.ll
test/Transforms/ScalarRepl/memset-aggregate-byte-leader.ll
test/Transforms/SimplifyCFG/2003-08-17-BranchFold.ll
test/Transforms/SimplifyCFG/2003-08-17-BranchFoldOrdering.ll
test/Transforms/SimplifyCFG/BrUnwind.ll
test/Transforms/SimplifyCFG/DeadSetCC.ll
test/Transforms/SimplifyCFG/UncondBranchToReturn.ll
test/Transforms/SimplifyCFG/branch-phi-thread.ll
test/Transforms/SimplifyCFG/switch_thread.ll
test/Transforms/SimplifyLibCalls/FFS.ll
test/Transforms/SimplifyLibCalls/FPrintF.ll
test/Transforms/SimplifyLibCalls/FPuts.ll
test/Transforms/SimplifyLibCalls/MemCpy.ll
test/Transforms/SimplifyLibCalls/SPrintF.ll
test/Transforms/SimplifyLibCalls/StrLen.ll
test/Transforms/SimplifyLibCalls/StrNCpy.ll
test/Transforms/SimplifyLibCalls/ToAscii.ll
test/Transforms/SimplifyLibCalls/pow2.ll
test/Verifier/2006-07-11-StoreStruct.ll

index db157ee56357769a817a7a14e1725aec4428fceb..aaf6770676bd1610d22b5fb979d75ca8803c9649 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -analyze -scalar-evolution 2>&1 | grep {/u 3}
+; RUN: opt < %s -analyze -scalar-evolution 2>&1 | grep "/u 3"
 ; XFAIL: *
 
 ; This is a tricky testcase for unsigned wrap detection which ScalarEvolution
index de72c4c5ed9265a4811638b32dfdd074eff4a179..bb149193a0f4cba4bd4f339fdb0675dc2c1c107d 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -analyze -scalar-evolution 2>&1 | \
-; RUN: grep {(((-1 \\* %i0) + (100005 smax %i0)) /u 5)}
+; RUN: grep "(((-1 * %i0) + (100005 smax %i0)) /u 5)"
 ; XFAIL: *
 
 define i32 @foo0(i32 %i0) nounwind {
index 36a37759fd5b7a33d6a4ed6a46665509bd86ee82..70006260cb9e9c6998dfae9bbac2fb66f6091957 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -analyze -scalar-evolution 2>&1 | grep {/u 5}
+; RUN: opt < %s -analyze -scalar-evolution 2>&1 | grep "/u 5"
 ; XFAIL: *
 
 define i8 @foo0(i8 %i0) nounwind {
index cc2a2e42bc9f143696c13dcee1940a0c60bd92dd..82f2608e57471cfc4d5beab43b7e49f615ba53c9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -analyze -scalar-evolution | not grep {/u -1}
+; RUN: opt < %s -analyze -scalar-evolution | not grep "/u -1"
 ; PR3275
 
 @g_16 = external global i16            ; <i16*> [#uses=3]
index c22aede5df4b5a78334f1fe0177effe2b8bf9481..5249d0e5bcc0508fadda08f5e1a02bf85f2a2663 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llvm-as < %s | llvm-dis | \
-; RUN:   not grep {getelementptr.*getelementptr}
+; RUN:   not grep "getelementptr.*getelementptr"
 
 %struct.TTriangleItem = type { i8*, i8*, [3 x %struct.TUVVertex] }
 %struct.TUVVertex = type { i16, i16, i16, i16 }
index 9329286286608d71aea517c054e048c0c295855f..b8eb6d3e3dd1d6dc9083b0702b0e5d29a6e7e1c3 100644 (file)
@@ -84,7 +84,7 @@ let test_target () =
 (*===-- Constants ---------------------------------------------------------===*)
 
 let test_constants () =
-  (* RUN: grep {const_int.*i32.*-1} < %t.ll
+  (* RUN: grep "const_int.*i32.*-1" < %t.ll
    *)
   group "int";
   let c = const_int i32_type (-1) in
@@ -92,44 +92,44 @@ let test_constants () =
   insist (i32_type = type_of c);
   insist (is_constant c);
 
-  (* RUN: grep {const_sext_int.*i64.*-1} < %t.ll
+  (* RUN: grep "const_sext_int.*i64.*-1" < %t.ll
    *)
   group "sext int";
   let c = const_int i64_type (-1) in
   ignore (define_global "const_sext_int" c m);
   insist (i64_type = type_of c);
 
-  (* RUN: grep {const_zext_int64.*i64.*4294967295} < %t.ll
+  (* RUN: grep "const_zext_int64.*i64.*4294967295" < %t.ll
    *)
   group "zext int64";
   let c = const_of_int64 i64_type (Int64.of_string "4294967295") false in
   ignore (define_global "const_zext_int64" c m);
   insist (i64_type = type_of c);
 
-  (* RUN: grep {const_int_string.*i32.*-1} < %t.ll
+  (* RUN: grep "const_int_string.*i32.*-1" < %t.ll
    *)
   group "int string";
   let c = const_int_of_string i32_type "-1" 10 in
   ignore (define_global "const_int_string" c m);
   insist (i32_type = type_of c);
 
-  (* RUN: grep {const_string.*"cruel\\\\00world"} < %t.ll
+  (* RUN: grep 'const_string.*"cruel\00world"' < %t.ll
    *)
   group "string";
   let c = const_string context "cruel\000world" in
   ignore (define_global "const_string" c m);
   insist ((array_type i8_type 11) = type_of c);
 
-  (* RUN: grep {const_stringz.*"hi\\\\00again\\\\00"} < %t.ll
+  (* RUN: grep 'const_stringz.*"hi\00again\00"' < %t.ll
    *)
   group "stringz";
   let c = const_stringz context "hi\000again" in
   ignore (define_global "const_stringz" c m);
   insist ((array_type i8_type 9) = type_of c);
 
-  (* RUN: grep {const_single.*2.75} < %t.ll
-   * RUN: grep {const_double.*3.1459} < %t.ll
-   * RUN: grep {const_double_string.*1.25} < %t.ll
+  (* RUN: grep "const_single.*2.75" < %t.ll
+   * RUN: grep "const_double.*3.1459" < %t.ll
+   * RUN: grep "const_double_string.*1.25" < %t.ll
    *)
   begin group "real";
     let cs = const_float float_type 2.75 in
@@ -150,14 +150,14 @@ let test_constants () =
   let three = const_int i32_type 3 in
   let four = const_int i32_type 4 in
   
-  (* RUN: grep {const_array.*\\\[i32 3, i32 4\\\]} < %t.ll
+  (* RUN: grep "const_array.*[i32 3, i32 4]" < %t.ll
    *)
   group "array";
   let c = const_array i32_type [| three; four |] in
   ignore (define_global "const_array" c m);
   insist ((array_type i32_type 2) = (type_of c));
   
-  (* RUN: grep {const_vector.*<i16 1, i16 2.*>} < %t.ll
+  (* RUN: grep "const_vector.*<i16 1, i16 2.*>" < %t.ll
    *)
   group "vector";
   let c = const_vector [| one; two; one; two;
@@ -165,7 +165,7 @@ let test_constants () =
   ignore (define_global "const_vector" c m);
   insist ((vector_type i16_type 8) = (type_of c));
 
-  (* RUN: grep {const_structure.*.i16 1, i16 2, i32 3, i32 4} < %t.ll
+  (* RUN: grep "const_structure.*.i16 1, i16 2, i32 3, i32 4" < %t.ll
    *)
   group "structure";
   let c = const_struct context [| one; two; three; four |] in
@@ -173,27 +173,27 @@ let test_constants () =
   insist ((struct_type context [| i16_type; i16_type; i32_type; i32_type |])
         = (type_of c));
 
-  (* RUN: grep {const_null.*zeroinit} < %t.ll
+  (* RUN: grep "const_null.*zeroinit" < %t.ll
    *)
   group "null";
   let c = const_null (packed_struct_type context [| i1_type; i8_type; i64_type;
                                                     double_type |]) in
   ignore (define_global "const_null" c m);
   
-  (* RUN: grep {const_all_ones.*-1} < %t.ll
+  (* RUN: grep "const_all_ones.*-1" < %t.ll
    *)
   group "all ones";
   let c = const_all_ones i64_type in
   ignore (define_global "const_all_ones" c m);
 
   group "pointer null"; begin
-    (* RUN: grep {const_pointer_null = global i64\\* null} < %t.ll
+    (* RUN: grep "const_pointer_null = global i64* null" < %t.ll
      *)
     let c = const_pointer_null (pointer_type i64_type) in
     ignore (define_global "const_pointer_null" c m);
   end;
   
-  (* RUN: grep {const_undef.*undef} < %t.ll
+  (* RUN: grep "const_undef.*undef" < %t.ll
    *)
   group "undef";
   let c = undef i1_type in
@@ -202,35 +202,35 @@ let test_constants () =
   insist (is_undef c);
   
   group "constant arithmetic";
-  (* RUN: grep {@const_neg = global i64 sub} < %t.ll
-   * RUN: grep {@const_nsw_neg = global i64 sub nsw } < %t.ll
-   * RUN: grep {@const_nuw_neg = global i64 sub nuw } < %t.ll
-   * RUN: grep {@const_fneg = global double fsub } < %t.ll
-   * RUN: grep {@const_not = global i64 xor } < %t.ll
-   * RUN: grep {@const_add = global i64 add } < %t.ll
-   * RUN: grep {@const_nsw_add = global i64 add nsw } < %t.ll
-   * RUN: grep {@const_nuw_add = global i64 add nuw } < %t.ll
-   * RUN: grep {@const_fadd = global double fadd } < %t.ll
-   * RUN: grep {@const_sub = global i64 sub } < %t.ll
-   * RUN: grep {@const_nsw_sub = global i64 sub nsw } < %t.ll
-   * RUN: grep {@const_nuw_sub = global i64 sub nuw } < %t.ll
-   * RUN: grep {@const_fsub = global double fsub } < %t.ll
-   * RUN: grep {@const_mul = global i64 mul } < %t.ll
-   * RUN: grep {@const_nsw_mul = global i64 mul nsw } < %t.ll
-   * RUN: grep {@const_nuw_mul = global i64 mul nuw } < %t.ll
-   * RUN: grep {@const_fmul = global double fmul } < %t.ll
-   * RUN: grep {@const_udiv = global i64 udiv } < %t.ll
-   * RUN: grep {@const_sdiv = global i64 sdiv } < %t.ll
-   * RUN: grep {@const_exact_sdiv = global i64 sdiv exact } < %t.ll
-   * RUN: grep {@const_fdiv = global double fdiv } < %t.ll
-   * RUN: grep {@const_urem = global i64 urem } < %t.ll
-   * RUN: grep {@const_srem = global i64 srem } < %t.ll
-   * RUN: grep {@const_frem = global double frem } < %t.ll
-   * RUN: grep {@const_and = global i64 and } < %t.ll
-   * RUN: grep {@const_or = global i64 or } < %t.ll
-   * RUN: grep {@const_xor = global i64 xor } < %t.ll
-   * RUN: grep {@const_icmp = global i1 icmp sle } < %t.ll
-   * RUN: grep {@const_fcmp = global i1 fcmp ole } < %t.ll
+  (* RUN: grep "@const_neg = global i64 sub" < %t.ll
+   * RUN: grep "@const_nsw_neg = global i64 sub nsw " < %t.ll
+   * RUN: grep "@const_nuw_neg = global i64 sub nuw " < %t.ll
+   * RUN: grep "@const_fneg = global double fsub " < %t.ll
+   * RUN: grep "@const_not = global i64 xor " < %t.ll
+   * RUN: grep "@const_add = global i64 add " < %t.ll
+   * RUN: grep "@const_nsw_add = global i64 add nsw " < %t.ll
+   * RUN: grep "@const_nuw_add = global i64 add nuw " < %t.ll
+   * RUN: grep "@const_fadd = global double fadd " < %t.ll
+   * RUN: grep "@const_sub = global i64 sub " < %t.ll
+   * RUN: grep "@const_nsw_sub = global i64 sub nsw " < %t.ll
+   * RUN: grep "@const_nuw_sub = global i64 sub nuw " < %t.ll
+   * RUN: grep "@const_fsub = global double fsub " < %t.ll
+   * RUN: grep "@const_mul = global i64 mul " < %t.ll
+   * RUN: grep "@const_nsw_mul = global i64 mul nsw " < %t.ll
+   * RUN: grep "@const_nuw_mul = global i64 mul nuw " < %t.ll
+   * RUN: grep "@const_fmul = global double fmul " < %t.ll
+   * RUN: grep "@const_udiv = global i64 udiv " < %t.ll
+   * RUN: grep "@const_sdiv = global i64 sdiv " < %t.ll
+   * RUN: grep "@const_exact_sdiv = global i64 sdiv exact " < %t.ll
+   * RUN: grep "@const_fdiv = global double fdiv " < %t.ll
+   * RUN: grep "@const_urem = global i64 urem " < %t.ll
+   * RUN: grep "@const_srem = global i64 srem " < %t.ll
+   * RUN: grep "@const_frem = global double frem " < %t.ll
+   * RUN: grep "@const_and = global i64 and " < %t.ll
+   * RUN: grep "@const_or = global i64 or " < %t.ll
+   * RUN: grep "@const_xor = global i64 xor " < %t.ll
+   * RUN: grep "@const_icmp = global i1 icmp sle " < %t.ll
+   * RUN: grep "@const_fcmp = global i1 fcmp ole " < %t.ll
    *)
   let void_ptr = pointer_type i8_type in
   let five = const_int i64_type 5 in
@@ -269,18 +269,18 @@ let test_constants () =
   ignore (define_global "const_fcmp" (const_fcmp Fcmp.Ole ffoldbomb ffive) m);
   
   group "constant casts";
-  (* RUN: grep {const_trunc.*trunc} < %t.ll
-   * RUN: grep {const_sext.*sext} < %t.ll
-   * RUN: grep {const_zext.*zext} < %t.ll
-   * RUN: grep {const_fptrunc.*fptrunc} < %t.ll
-   * RUN: grep {const_fpext.*fpext} < %t.ll
-   * RUN: grep {const_uitofp.*uitofp} < %t.ll
-   * RUN: grep {const_sitofp.*sitofp} < %t.ll
-   * RUN: grep {const_fptoui.*fptoui} < %t.ll
-   * RUN: grep {const_fptosi.*fptosi} < %t.ll
-   * RUN: grep {const_ptrtoint.*ptrtoint} < %t.ll
-   * RUN: grep {const_inttoptr.*inttoptr} < %t.ll
-   * RUN: grep {const_bitcast.*bitcast} < %t.ll
+  (* RUN: grep "const_trunc.*trunc" < %t.ll
+   * RUN: grep "const_sext.*sext" < %t.ll
+   * RUN: grep "const_zext.*zext" < %t.ll
+   * RUN: grep "const_fptrunc.*fptrunc" < %t.ll
+   * RUN: grep "const_fpext.*fpext" < %t.ll
+   * RUN: grep "const_uitofp.*uitofp" < %t.ll
+   * RUN: grep "const_sitofp.*sitofp" < %t.ll
+   * RUN: grep "const_fptoui.*fptoui" < %t.ll
+   * RUN: grep "const_fptosi.*fptosi" < %t.ll
+   * RUN: grep "const_ptrtoint.*ptrtoint" < %t.ll
+   * RUN: grep "const_inttoptr.*inttoptr" < %t.ll
+   * RUN: grep "const_bitcast.*bitcast" < %t.ll
    *)
   let i128_type = integer_type context 128 in
   ignore (define_global "const_trunc" (const_trunc (const_add foldbomb five)
@@ -302,12 +302,12 @@ let test_constants () =
   ignore (define_global "const_bitcast" (const_bitcast ffoldbomb i64_type) m);
   
   group "misc constants";
-  (* RUN: grep {const_size_of.*getelementptr.*null} < %t.ll
-   * RUN: grep {const_gep.*getelementptr} < %t.ll
-   * RUN: grep {const_select.*select} < %t.ll
-   * RUN: grep {const_extractelement.*extractelement} < %t.ll
-   * RUN: grep {const_insertelement.*insertelement} < %t.ll
-   * RUN: grep {const_shufflevector = global <4 x i32> <i32 0, i32 1, i32 1, i32 0>} < %t.ll
+  (* RUN: grep "const_size_of.*getelementptr.*null" < %t.ll
+   * RUN: grep "const_gep.*getelementptr" < %t.ll
+   * RUN: grep "const_select.*select" < %t.ll
+   * RUN: grep "const_extractelement.*extractelement" < %t.ll
+   * RUN: grep "const_insertelement.*insertelement" < %t.ll
+   * RUN: grep "const_shufflevector = global <4 x i32> <i32 0, i32 1, i32 1, i32 0>" < %t.ll
    *)
   ignore (define_global "const_size_of" (size_of (pointer_type i8_type)) m);
   ignore (define_global "const_gep" (const_gep foldbomb_gv [| five |]) m);
@@ -356,7 +356,7 @@ let test_global_values () =
   let (++) x f = f x; x in
   let zero32 = const_null i32_type in
 
-  (* RUN: grep {GVal01} < %t.ll
+  (* RUN: grep "GVal01" < %t.ll
    *)
   group "naming";
   let g = define_global "TEMPORARY" zero32 m in
@@ -364,28 +364,28 @@ let test_global_values () =
   set_value_name "GVal01" g;
   insist ("GVal01" = value_name g);
 
-  (* RUN: grep {GVal02.*linkonce} < %t.ll
+  (* RUN: grep "GVal02.*linkonce" < %t.ll
    *)
   group "linkage";
   let g = define_global "GVal02" zero32 m ++
           set_linkage Linkage.Link_once in
   insist (Linkage.Link_once = linkage g);
 
-  (* RUN: grep {GVal03.*Hanalei} < %t.ll
+  (* RUN: grep "GVal03.*Hanalei" < %t.ll
    *)
   group "section";
   let g = define_global "GVal03" zero32 m ++
           set_section "Hanalei" in
   insist ("Hanalei" = section g);
   
-  (* RUN: grep {GVal04.*hidden} < %t.ll
+  (* RUN: grep "GVal04.*hidden" < %t.ll
    *)
   group "visibility";
   let g = define_global "GVal04" zero32 m ++
           set_visibility Visibility.Hidden in
   insist (Visibility.Hidden = visibility g);
   
-  (* RUN: grep {GVal05.*align 128} < %t.ll
+  (* RUN: grep "GVal05.*align 128" < %t.ll
    *)
   group "alignment";
   let g = define_global "GVal05" zero32 m ++
@@ -400,7 +400,7 @@ let test_global_variables () =
   let fourty_two32 = const_int i32_type 42 in
 
   group "declarations"; begin
-    (* RUN: grep {GVar01.*external} < %t.ll
+    (* RUN: grep "GVar01.*external" < %t.ll
      *)
     insist (None == lookup_global "GVar01" m);
     let g = declare_global i32_type "GVar01" m in
@@ -422,8 +422,8 @@ let test_global_variables () =
   end;
   
   group "definitions"; begin
-    (* RUN: grep {GVar02.*42} < %t.ll
-     * RUN: grep {GVar03.*42} < %t.ll
+    (* RUN: grep "GVar02.*42" < %t.ll
+     * RUN: grep "GVar03.*42" < %t.ll
      *)
     let g = define_global "GVar02" fourty_two32 m in
     let g2 = declare_global i32_type "GVar03" m ++
@@ -440,20 +440,20 @@ let test_global_variables () =
     insist ((global_initializer g) == (global_initializer g2));
   end;
 
-  (* RUN: grep {GVar04.*thread_local} < %t.ll
+  (* RUN: grep "GVar04.*thread_local" < %t.ll
    *)
   group "threadlocal";
   let g = define_global "GVar04" fourty_two32 m ++
           set_thread_local true in
   insist (is_thread_local g);
 
-  (* RUN: grep -v {GVar05} < %t.ll
+  (* RUN: grep -v "GVar05" < %t.ll
    *)
   group "delete";
   let g = define_global "GVar05" fourty_two32 m in
   delete_global g;
 
-  (* RUN: grep -v {ConstGlobalVar.*constant} < %t.ll
+  (* RUN: grep -v "ConstGlobalVar.*constant" < %t.ll
    *)
   group "constant";
   let g = define_global "ConstGlobalVar" fourty_two32 m in
@@ -542,7 +542,7 @@ let test_users () =
 (*===-- Aliases -----------------------------------------------------------===*)
 
 let test_aliases () =
-  (* RUN: grep {@alias = alias i32\\* @aliasee} < %t.ll
+  (* RUN: grep "@alias = alias i32* @aliasee" < %t.ll
    *)
   let v = declare_global i32_type "aliasee" m in
   ignore (add_alias m (pointer_type i32_type) v "alias")
@@ -554,7 +554,7 @@ let test_functions () =
   let ty = function_type i32_type [| i32_type; i64_type |] in
   let ty2 = function_type i8_type [| i8_type; i64_type |] in
   
-  (* RUN: grep {declare i32 @Fn1\(i32, i64\)} < %t.ll
+  (* RUN: grep "declare i32 @Fn1\(i32, i64\)" < %t.ll
    *)
   begin group "declare";
     insist (None = lookup_function "Fn1" m);
@@ -570,13 +570,13 @@ let test_functions () =
     insist (m == global_parent fn)
   end;
   
-  (* RUN: grep -v {Fn2} < %t.ll
+  (* RUN: grep -v "Fn2" < %t.ll
    *)
   group "delete";
   let fn = declare_function "Fn2" ty m in
   delete_function fn;
   
-  (* RUN: grep {define.*Fn3} < %t.ll
+  (* RUN: grep "define.*Fn3" < %t.ll
    *)
   group "define";
   let fn = define_function "Fn3" ty m in
@@ -584,7 +584,7 @@ let test_functions () =
   insist (1 = Array.length (basic_blocks fn));
   ignore (build_unreachable (builder_at_end context (entry_block fn)));
   
-  (* RUN: grep {define.*Fn4.*Param1.*Param2} < %t.ll
+  (* RUN: grep "define.*Fn4.*Param1.*Param2" < %t.ll
    *)
   group "params";
   let fn = define_function "Fn4" ty m in
@@ -598,7 +598,7 @@ let test_functions () =
   set_value_name "Param2" params.(1);
   ignore (build_unreachable (builder_at_end context (entry_block fn)));
   
-  (* RUN: grep {fastcc.*Fn5} < %t.ll
+  (* RUN: grep "fastcc.*Fn5" < %t.ll
    *)
   group "callconv";
   let fn = define_function "Fn5" ty m in
@@ -608,7 +608,7 @@ let test_functions () =
   ignore (build_unreachable (builder_at_end context (entry_block fn)));
   
   begin group "gc";
-    (* RUN: grep {Fn6.*gc.*shadowstack} < %t.ll
+    (* RUN: grep "Fn6.*gc.*shadowstack" < %t.ll
      *)
     let fn = define_function "Fn6" ty m in
     insist (None = gc fn);
@@ -694,7 +694,7 @@ let test_params () =
 let test_basic_blocks () =
   let ty = function_type void_type [| |] in
   
-  (* RUN: grep {Bb1} < %t.ll
+  (* RUN: grep "Bb1" < %t.ll
    *)
   group "entry";
   let fn = declare_function "X" ty m in
@@ -825,7 +825,7 @@ let test_builder () =
   
   group "ret void";
   begin
-    (* RUN: grep {ret void} < %t.ll
+    (* RUN: grep "ret void" < %t.ll
      *)
     let fty = function_type void_type [| |] in
     let fn = declare_function "X6" fty m in
@@ -835,7 +835,7 @@ let test_builder () =
 
   group "ret aggregate";
   begin
-      (* RUN: grep {ret \{ i8, i64 \} \{ i8 4, i64 5 \}} < %t.ll
+      (* RUN: grep "ret { i8, i64 } { i8 4, i64 5 }" < %t.ll
        *)
       let sty = struct_type context [| i8_type; i64_type |] in
       let fty = function_type sty [| |] in
@@ -895,14 +895,14 @@ let test_builder () =
   end;
 
   group "ret"; begin
-    (* RUN: grep {ret.*P1} < %t.ll
+    (* RUN: grep "ret.*P1" < %t.ll
      *)
     let ret = build_ret p1 atentry in
     position_before ret atentry
   end;
   
   group "br"; begin
-    (* RUN: grep {br.*Bb02} < %t.ll
+    (* RUN: grep "br.*Bb02" < %t.ll
      *)
     let bb02 = append_block context "Bb02" fn in
     let b = builder_at_end context bb02 in
@@ -910,7 +910,7 @@ let test_builder () =
   end;
   
   group "cond_br"; begin
-    (* RUN: grep {br.*build_br.*Bb03.*Bb00} < %t.ll
+    (* RUN: grep "br.*build_br.*Bb03.*Bb00" < %t.ll
      *)
     let bb03 = append_block context "Bb03" fn in
     let b = builder_at_end context bb03 in
@@ -919,8 +919,8 @@ let test_builder () =
   end;
   
   group "switch"; begin
-    (* RUN: grep {switch.*P1.*SwiBlock3} < %t.ll
-     * RUN: grep {2,.*SwiBlock2} < %t.ll
+    (* RUN: grep "switch.*P1.*SwiBlock3" < %t.ll
+     * RUN: grep "2,.*SwiBlock2" < %t.ll
      *)
     let bb1 = append_block context "SwiBlock1" fn in
     let bb2 = append_block context "SwiBlock2" fn in
@@ -934,9 +934,9 @@ let test_builder () =
   end;
 
   group "malloc/free"; begin
-      (* RUN: grep {call.*@malloc(i32 ptrtoint} < %t.ll
-       * RUN: grep {call.*@free(i8\*} < %t.ll
-       * RUN: grep {call.*@malloc(i32 %} < %t.ll
+      (* RUN: grep "call.*@malloc(i32 ptrtoint" < %t.ll
+       * RUN: grep "call.*@free(i8*" < %t.ll
+       * RUN: grep "call.*@malloc(i32 %" < %t.ll
        *)
       let bb1 = append_block context "MallocBlock1" fn in
       let m1 = (build_malloc (pointer_type i32_type) "m1"
@@ -947,7 +947,7 @@ let test_builder () =
   end;
 
   group "indirectbr"; begin
-    (* RUN: grep {indirectbr i8\\* blockaddress(@X7, %IBRBlock2), \\\[label %IBRBlock2, label %IBRBlock3\\\]} < %t.ll
+    (* RUN: grep "indirectbr i8* blockaddress(@X7, %IBRBlock2), [label %IBRBlock2, label %IBRBlock3]" < %t.ll
      *)
     let bb1 = append_block context "IBRBlock1" fn in
 
@@ -964,8 +964,8 @@ let test_builder () =
   end;
   
   group "invoke"; begin
-    (* RUN: grep {build_invoke.*invoke.*P1.*P2} < %t.ll
-     * RUN: grep {to.*Bb04.*unwind.*Bblpad} < %t.ll
+    (* RUN: grep "build_invoke.*invoke.*P1.*P2" < %t.ll
+     * RUN: grep "to.*Bb04.*unwind.*Bblpad" < %t.ll
      *)
     let bb04 = append_block context "Bb04" fn in
     let b = builder_at_end context bb04 in
@@ -973,7 +973,7 @@ let test_builder () =
   end;
   
   group "unreachable"; begin
-    (* RUN: grep {unreachable} < %t.ll
+    (* RUN: grep "unreachable" < %t.ll
      *)
     let bb06 = append_block context "Bb06" fn in
     let b = builder_at_end context bb06 in
@@ -984,36 +984,36 @@ let test_builder () =
     let bb07 = append_block context "Bb07" fn in
     let b = builder_at_end context bb07 in
     
-    (* RUN: grep {%build_add = add i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_nsw_add = add nsw i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_nuw_add = add nuw i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_fadd = fadd float %F1, %F2} < %t.ll
-     * RUN: grep {%build_sub = sub i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_nsw_sub = sub nsw i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_nuw_sub = sub nuw i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_fsub = fsub float %F1, %F2} < %t.ll
-     * RUN: grep {%build_mul = mul i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_nsw_mul = mul nsw i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_nuw_mul = mul nuw i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_fmul = fmul float %F1, %F2} < %t.ll
-     * RUN: grep {%build_udiv = udiv i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_sdiv = sdiv i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_exact_sdiv = sdiv exact i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_fdiv = fdiv float %F1, %F2} < %t.ll
-     * RUN: grep {%build_urem = urem i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_srem = srem i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_frem = frem float %F1, %F2} < %t.ll
-     * RUN: grep {%build_shl = shl i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_lshl = lshr i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_ashl = ashr i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_and = and i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_or = or i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_xor = xor i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_neg = sub i32 0, %P1} < %t.ll
-     * RUN: grep {%build_nsw_neg = sub nsw i32 0, %P1} < %t.ll
-     * RUN: grep {%build_nuw_neg = sub nuw i32 0, %P1} < %t.ll
-     * RUN: grep {%build_fneg = fsub float .*0.*, %F1} < %t.ll
-     * RUN: grep {%build_not = xor i32 %P1, -1} < %t.ll
+    (* RUN: grep "%build_add = add i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_nsw_add = add nsw i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_nuw_add = add nuw i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_fadd = fadd float %F1, %F2" < %t.ll
+     * RUN: grep "%build_sub = sub i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_nsw_sub = sub nsw i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_nuw_sub = sub nuw i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_fsub = fsub float %F1, %F2" < %t.ll
+     * RUN: grep "%build_mul = mul i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_nsw_mul = mul nsw i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_nuw_mul = mul nuw i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_fmul = fmul float %F1, %F2" < %t.ll
+     * RUN: grep "%build_udiv = udiv i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_sdiv = sdiv i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_exact_sdiv = sdiv exact i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_fdiv = fdiv float %F1, %F2" < %t.ll
+     * RUN: grep "%build_urem = urem i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_srem = srem i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_frem = frem float %F1, %F2" < %t.ll
+     * RUN: grep "%build_shl = shl i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_lshl = lshr i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_ashl = ashr i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_and = and i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_or = or i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_xor = xor i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_neg = sub i32 0, %P1" < %t.ll
+     * RUN: grep "%build_nsw_neg = sub nsw i32 0, %P1" < %t.ll
+     * RUN: grep "%build_nuw_neg = sub nuw i32 0, %P1" < %t.ll
+     * RUN: grep "%build_fneg = fsub float .*0.*, %F1" < %t.ll
+     * RUN: grep "%build_not = xor i32 %P1, -1" < %t.ll
      *)
     ignore (build_add p1 p2 "build_add" b);
     ignore (build_nsw_add p1 p2 "build_nsw_add" b);
@@ -1052,13 +1052,13 @@ let test_builder () =
     let bb08 = append_block context "Bb08" fn in
     let b = builder_at_end context bb08 in
 
-    (* RUN: grep {%build_alloca = alloca i32} < %t.ll
-     * RUN: grep {%build_array_alloca = alloca i32, i32 %P2} < %t.ll
-     * RUN: grep {%build_load = load i32\\* %build_array_alloca} < %t.ll
-     * RUN: grep {store i32 %P2, i32\\* %build_alloca} < %t.ll
-     * RUN: grep {%build_gep = getelementptr i32\\* %build_array_alloca, i32 %P2} < %t.ll
-     * RUN: grep {%build_in_bounds_gep = getelementptr inbounds i32\\* %build_array_alloca, i32 %P2} < %t.ll
-     * RUN: grep {%build_struct_gep = getelementptr inbounds.*%build_alloca2, i32 0, i32 1} < %t.ll
+    (* RUN: grep "%build_alloca = alloca i32" < %t.ll
+     * RUN: grep "%build_array_alloca = alloca i32, i32 %P2" < %t.ll
+     * RUN: grep "%build_load = load i32* %build_array_alloca" < %t.ll
+     * RUN: grep "store i32 %P2, i32* %build_alloca" < %t.ll
+     * RUN: grep "%build_gep = getelementptr i32* %build_array_alloca, i32 %P2" < %t.ll
+     * RUN: grep "%build_in_bounds_gep = getelementptr inbounds i32* %build_array_alloca, i32 %P2" < %t.ll
+     * RUN: grep "%build_struct_gep = getelementptr inbounds.*%build_alloca2, i32 0, i32 1" < %t.ll
      *)
     let alloca = build_alloca i32_type "build_alloca" b in
     let array_alloca = build_array_alloca i32_type p2 "build_array_alloca" b in
@@ -1090,30 +1090,30 @@ let test_builder () =
   group "casts"; begin
     let void_ptr = pointer_type i8_type in
     
-    (* RUN: grep {%build_trunc = trunc i32 %P1 to i8} < %t.ll
-     * RUN: grep {%build_trunc2 = trunc i32 %P1 to i8} < %t.ll
-     * RUN: grep {%build_trunc3 = trunc i32 %P1 to i8} < %t.ll
-     * RUN: grep {%build_zext = zext i8 %build_trunc to i32} < %t.ll
-     * RUN: grep {%build_zext2 = zext i8 %build_trunc to i32} < %t.ll
-     * RUN: grep {%build_sext = sext i32 %build_zext to i64} < %t.ll
-     * RUN: grep {%build_sext2 = sext i32 %build_zext to i64} < %t.ll
-     * RUN: grep {%build_sext3 = sext i32 %build_zext to i64} < %t.ll
-     * RUN: grep {%build_uitofp = uitofp i64 %build_sext to float} < %t.ll
-     * RUN: grep {%build_sitofp = sitofp i32 %build_zext to double} < %t.ll
-     * RUN: grep {%build_fptoui = fptoui float %build_uitofp to i32} < %t.ll
-     * RUN: grep {%build_fptosi = fptosi double %build_sitofp to i64} < %t.ll
-     * RUN: grep {%build_fptrunc = fptrunc double %build_sitofp to float} < %t.ll
-     * RUN: grep {%build_fptrunc2 = fptrunc double %build_sitofp to float} < %t.ll
-     * RUN: grep {%build_fpext = fpext float %build_fptrunc to double} < %t.ll
-     * RUN: grep {%build_fpext2 = fpext float %build_fptrunc to double} < %t.ll
-     * RUN: grep {%build_inttoptr = inttoptr i32 %P1 to i8\\*} < %t.ll
-     * RUN: grep {%build_ptrtoint = ptrtoint i8\\* %build_inttoptr to i64} < %t.ll
-     * RUN: grep {%build_ptrtoint2 = ptrtoint i8\\* %build_inttoptr to i64} < %t.ll
-     * RUN: grep {%build_bitcast = bitcast i64 %build_ptrtoint to double} < %t.ll
-     * RUN: grep {%build_bitcast2 = bitcast i64 %build_ptrtoint to double} < %t.ll
-     * RUN: grep {%build_bitcast3 = bitcast i64 %build_ptrtoint to double} < %t.ll
-     * RUN: grep {%build_bitcast4 = bitcast i64 %build_ptrtoint to double} < %t.ll
-     * RUN: grep {%build_pointercast = bitcast i8\\* %build_inttoptr to i16\\*} < %t.ll
+    (* RUN: grep "%build_trunc = trunc i32 %P1 to i8" < %t.ll
+     * RUN: grep "%build_trunc2 = trunc i32 %P1 to i8" < %t.ll
+     * RUN: grep "%build_trunc3 = trunc i32 %P1 to i8" < %t.ll
+     * RUN: grep "%build_zext = zext i8 %build_trunc to i32" < %t.ll
+     * RUN: grep "%build_zext2 = zext i8 %build_trunc to i32" < %t.ll
+     * RUN: grep "%build_sext = sext i32 %build_zext to i64" < %t.ll
+     * RUN: grep "%build_sext2 = sext i32 %build_zext to i64" < %t.ll
+     * RUN: grep "%build_sext3 = sext i32 %build_zext to i64" < %t.ll
+     * RUN: grep "%build_uitofp = uitofp i64 %build_sext to float" < %t.ll
+     * RUN: grep "%build_sitofp = sitofp i32 %build_zext to double" < %t.ll
+     * RUN: grep "%build_fptoui = fptoui float %build_uitofp to i32" < %t.ll
+     * RUN: grep "%build_fptosi = fptosi double %build_sitofp to i64" < %t.ll
+     * RUN: grep "%build_fptrunc = fptrunc double %build_sitofp to float" < %t.ll
+     * RUN: grep "%build_fptrunc2 = fptrunc double %build_sitofp to float" < %t.ll
+     * RUN: grep "%build_fpext = fpext float %build_fptrunc to double" < %t.ll
+     * RUN: grep "%build_fpext2 = fpext float %build_fptrunc to double" < %t.ll
+     * RUN: grep "%build_inttoptr = inttoptr i32 %P1 to i8*" < %t.ll
+     * RUN: grep "%build_ptrtoint = ptrtoint i8* %build_inttoptr to i64" < %t.ll
+     * RUN: grep "%build_ptrtoint2 = ptrtoint i8* %build_inttoptr to i64" < %t.ll
+     * RUN: grep "%build_bitcast = bitcast i64 %build_ptrtoint to double" < %t.ll
+     * RUN: grep "%build_bitcast2 = bitcast i64 %build_ptrtoint to double" < %t.ll
+     * RUN: grep "%build_bitcast3 = bitcast i64 %build_ptrtoint to double" < %t.ll
+     * RUN: grep "%build_bitcast4 = bitcast i64 %build_ptrtoint to double" < %t.ll
+     * RUN: grep "%build_pointercast = bitcast i8* %build_inttoptr to i16*" < %t.ll
      *)
     let inst28 = build_trunc p1 i8_type "build_trunc" atentry in
     let inst29 = build_zext inst28 i32_type "build_zext" atentry in
@@ -1143,13 +1143,13 @@ let test_builder () =
   end;
   
   group "comparisons"; begin
-    (* RUN: grep {%build_icmp_ne = icmp ne i32 %P1, %P2} < %t.ll
-     * RUN: grep {%build_icmp_sle = icmp sle i32 %P2, %P1} < %t.ll
-     * RUN: grep {%build_fcmp_false = fcmp false float %F1, %F2} < %t.ll
-     * RUN: grep {%build_fcmp_true = fcmp true float %F2, %F1} < %t.ll
-     * RUN: grep {%build_is_null.*= icmp eq.*%X0,.*null} < %t.ll
-     * RUN: grep {%build_is_not_null = icmp ne i8\\* %X1, null} < %t.ll
-     * RUN: grep {%build_ptrdiff} < %t.ll
+    (* RUN: grep "%build_icmp_ne = icmp ne i32 %P1, %P2" < %t.ll
+     * RUN: grep "%build_icmp_sle = icmp sle i32 %P2, %P1" < %t.ll
+     * RUN: grep "%build_fcmp_false = fcmp false float %F1, %F2" < %t.ll
+     * RUN: grep "%build_fcmp_true = fcmp true float %F2, %F1" < %t.ll
+     * RUN: grep "%build_is_null.*= icmp eq.*%X0,.*null" < %t.ll
+     * RUN: grep "%build_is_not_null = icmp ne i8* %X1, null" < %t.ll
+     * RUN: grep "%build_ptrdiff" < %t.ll
      *)
     ignore (build_icmp Icmp.Ne    p1 p2 "build_icmp_ne" atentry);
     ignore (build_icmp Icmp.Sle   p2 p1 "build_icmp_sle" atentry);
@@ -1165,14 +1165,14 @@ let test_builder () =
   end;
   
   group "miscellaneous"; begin
-    (* RUN: grep {%build_call = tail call cc63 i32 @.*(i32 signext %P2, i32 %P1)} < %t.ll
-     * RUN: grep {%build_select = select i1 %build_icmp, i32 %P1, i32 %P2} < %t.ll
-     * RUN: grep {%build_va_arg = va_arg i8\\*\\* null, i32} < %t.ll
-     * RUN: grep {%build_extractelement = extractelement <4 x i32> %Vec1, i32 %P2} < %t.ll
-     * RUN: grep {%build_insertelement = insertelement <4 x i32> %Vec1, i32 %P1, i32 %P2} < %t.ll
-     * RUN: grep {%build_shufflevector = shufflevector <4 x i32> %Vec1, <4 x i32> %Vec2, <4 x i32> <i32 1, i32 1, i32 0, i32 0>} < %t.ll
-     * RUN: grep {%build_insertvalue0 = insertvalue.*%bl, i32 1, 0} < %t.ll
-     * RUN: grep {%build_extractvalue = extractvalue.*%build_insertvalue1, 1} < %t.ll
+    (* RUN: grep "%build_call = tail call cc63 i32 @.*(i32 signext %P2, i32 %P1)" < %t.ll
+     * RUN: grep "%build_select = select i1 %build_icmp, i32 %P1, i32 %P2" < %t.ll
+     * RUN: grep "%build_va_arg = va_arg i8** null, i32" < %t.ll
+     * RUN: grep "%build_extractelement = extractelement <4 x i32> %Vec1, i32 %P2" < %t.ll
+     * RUN: grep "%build_insertelement = insertelement <4 x i32> %Vec1, i32 %P1, i32 %P2" < %t.ll
+     * RUN: grep "%build_shufflevector = shufflevector <4 x i32> %Vec1, <4 x i32> %Vec2, <4 x i32> <i32 1, i32 1, i32 0, i32 0>" < %t.ll
+     * RUN: grep "%build_insertvalue0 = insertvalue.*%bl, i32 1, 0" < %t.ll
+     * RUN: grep "%build_extractvalue = extractvalue.*%build_insertvalue1, 1" < %t.ll
      *)
     let ci = build_call fn [| p2; p1 |] "build_call" atentry in
     insist (CallConv.c = instruction_call_conv ci);
@@ -1215,8 +1215,8 @@ let test_builder () =
   end;
 
   group "metadata"; begin
-    (* RUN: grep {%metadata = add i32 %P1, %P2, !test !0} < %t.ll
-     * RUN: grep {!0 = metadata !\{i32 1, metadata !"metadata test"\}} < %t.ll
+    (* RUN: grep '%metadata = add i32 %P1, %P2, !test !0' < %t.ll
+     * RUN: grep '!0 = metadata !{i32 1, metadata !"metadata test"}' < %t.ll
      *)
     let i = build_add p1 p2 "metadata" atentry in
     insist ((has_metadata i) = false);
@@ -1240,8 +1240,8 @@ let test_builder () =
   end;
 
   group "dbg"; begin
-    (* RUN: grep {%dbg = add i32 %P1, %P2, !dbg !1} < %t.ll
-     * RUN: grep {!1 = metadata !\{i32 2, i32 3, metadata !2, metadata !2\}} < %t.ll
+    (* RUN: grep "%dbg = add i32 %P1, %P2, !dbg !1" < %t.ll
+     * RUN: grep "!1 = metadata !{i32 2, i32 3, metadata !2, metadata !2}" < %t.ll
      *)
     insist ((current_debug_location atentry) = None);
 
@@ -1261,7 +1261,7 @@ let test_builder () =
   end;
   
   group "phi"; begin
-    (* RUN: grep {PhiNode.*P1.*PhiBlock1.*P2.*PhiBlock2} < %t.ll
+    (* RUN: grep "PhiNode.*P1.*PhiBlock1.*P2.*PhiBlock2" < %t.ll
      *)
     let b1 = append_block context "PhiBlock1" fn in
     let b2 = append_block context "PhiBlock2" fn in
index b543c57e1a85e7840edbb8fa3f4382b33a6d2c3a..8d3337c29fcf820629f8842bd7d0ecff9fedac3c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm | not grep {add.*#0}
+; RUN: llc < %s -march=arm | not grep "add.*#0"
 
 define i32 @foo() {
 entry:
index d2eb85d356c53d5981f0196ea14072ce453961b6..670048bf25c415421093405f24282ec048337d3c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm | not grep {str.*\\!}
+; RUN: llc < %s -march=arm | not grep "str.*\!"
 
        %struct.shape_edge_t = type { %struct.shape_edge_t*, %struct.shape_edge_t*, i32, i32, i32, i32 }
        %struct.shape_path_t = type { %struct.shape_edge_t*, %struct.shape_edge_t*, i32, i32, i32, i32, i32, i32 }
index efe29d857d235547c5e208e3014902d94bd643f2..00b16888f38946104948e2d088d806d006658439 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \
-; RUN:   not grep {bx lr}
+; RUN:   not grep "bx lr"
 
        %struct.anon = type { i32 (i32, i32, i32)*, i32, i32, [3 x i32], i8*, i8*, i8* }
 @r = external global [14 x i32]                ; <[14 x i32]*> [#uses=4]
index 519e4b93a72b312b26e41c195aeb2834e13266ea..9c547f15c9a6b8074c85b8368b5250de96860a8d 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llc < %s -march=mips -o %t
-; RUN: grep {c\\..*\\.s} %t | count 3
-; RUN: grep {bc1\[tf\]} %t | count 3
+; RUN: grep "c\..*\.s" %t | count 3
+; RUN: grep "bc1[tf]" %t | count 3
 
 ; FIXME: Disabled because branch instructions are generated where
 ; conditional move instructions are expected.
index e85a749f7dcdbca7381270819cedc6987daf59b3..e88e3d3755c4b69b5c34ca1b270267e199cea4b8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=mips | grep {b\[ne\]\[eq\]} | count 1
+; RUN: llc < %s -march=mips | grep "b[ne][eq]" | count 1
 
 ; FIXME: Disabled because branch instructions are generated where
 ; conditional move instructions are expected.
index 97bb48e96e565d8e8fd2f48934a82ceda46ded86..aeb28af4be525268277e2cc4010d281e36352707 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s | not grep {, f1}
+; RUN: llc < %s | not grep ", f1"
 
 target datalayout = "E-p:32:32"
 target triple = "powerpc-apple-darwin8.2.0"
index 94c2526cf5b9fcce1a7345d2e279be64cfbb11f5..915595f6dbac726f79d23e94ea4037dbf98cf140 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llc < %s -march=ppc32 | grep cntlzw 
 ; RUN: llc < %s -march=ppc32 | not grep xori 
-; RUN: llc < %s -march=ppc32 | not grep {li }
-; RUN: llc < %s -march=ppc32 | not grep {mr }
+; RUN: llc < %s -march=ppc32 | not grep "li "
+; RUN: llc < %s -march=ppc32 | not grep "mr "
 
 define i1 @test(i64 %x) {
   %tmp = icmp ult i64 %x, 4294967296
index 6410c63234d2ecdbb773370c678c34727f704ce7..3f90008c006b5f87fd9791b87241ee85d7dccefd 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=ppc32 | grep rlwimi
-; RUN: llc < %s -march=ppc32 | not grep {or }
+; RUN: llc < %s -march=ppc32 | not grep "or "
 
 ; Make sure there is no register-register copies here.
 
index 0cac7554be03fd16eecf6a6a0d69e3524228d66c..6cc4dd12f6a7b4828498b65c0300426948a7738e 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llc < %s -mtriple=thumb-apple-darwin \
-; RUN:     -disable-fp-elim | not grep {r11}
+; RUN:     -disable-fp-elim | not grep "r11"
 ; RUN: llc < %s -mtriple=thumb-linux-gnueabi \
-; RUN:     -disable-fp-elim | not grep {r11}
+; RUN:     -disable-fp-elim | not grep "r11"
 
 define i32 @f() {
 entry:
index af7d716446b9a0874b88f92f3e146d1d2fabb769..348e9d3f20a731a7e0119ea60035578e5da498aa 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -relocation-model=pic < %s | grep {:$} | sort | uniq -d | count 0
+; RUN: llc -relocation-model=pic < %s | grep ":$" | sort | uniq -d | count 0
 target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32-n32"
 target triple = "thumbv7-apple-darwin10"
 
index 39b6ac3f0027a6525f4103186cc7f0aff9954858..10cd5391a48d69684480c7fe99238ce14f9d498e 100644 (file)
@@ -1,7 +1,7 @@
 ; XFAIL: *
 ; fixme rev16 pattern is not matching
 
-; RUN: llc < %s -march=thumb -mattr=+thumb2 | grep {rev16\\W*r\[0-9\]*,\\W*r\[0-9\]*} | count 1
+; RUN: llc < %s -march=thumb -mattr=+thumb2 | grep "rev16\W*r[0-9]*,\W*r[0-9]*" | count 1
 
 ; 0xff00ff00 = 4278255360
 ; 0x00ff00ff = 16711935
index 8b0a18550da15be7d0402aa3967865cb8deaa1dd..f201b981a87201a4e1cecf47799cbe8588cde74f 100644 (file)
@@ -1,4 +1,4 @@
 ; RUN: llc < %s -march=x86 | \
-; RUN:   not grep {.byte\[\[:space:\]\]*true}
+; RUN:   not grep ".byte[[:space:]]*true"
 
 @X = global i1 true             ; <i1*> [#uses=0]
index c44d10ac5b5a63977602d9b6f1145add67f84fde..526b0b206a55dbe1341cbc68e1b9527ecd9a6bba 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -mcpu=yonah | not grep {j\[lgbe\]}
+; RUN: llc < %s -march=x86 -mcpu=yonah | not grep "j[lgbe]"
 
 define i32 @max(i32 %A, i32 %B) nounwind {
         %gt = icmp sgt i32 %A, %B               ; <i1> [#uses=1]
index dc69ef83103f7a4626e1882473e384e0d3fdcbe8..f8bf0991fb148442ac716e3fcf903aeee74852d2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 | not grep {subl.*%esp}
+; RUN: llc < %s -march=x86 | not grep "subl.*%esp"
 
 define i32 @f(i32 %a, i32 %b) {
         %tmp.2 = mul i32 %a, %a         ; <i32> [#uses=1]
index bbc39eeb8be63974d4bb2b91ad0bef4cfb0dd6db..5cba3efeefb8704ce037697720b0a5965b42e0c7 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=x86 -mcpu=yonah -stats 2>&1 | \
-; RUN:   not grep {Number of register spills}
+; RUN:   not grep "Number of register spills"
 ; END.
 
 
index d58d638562c9ac3f50c79185a78c9d823583f2ae..3419d01fa0831c213c6430374451ebc88a4ab9ca 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -relocation-model=static | not grep {subl.*%esp}
+; RUN: llc < %s -march=x86 -relocation-model=static | not grep "subl.*%esp"
 
 @A = external global i16*              ; <i16**> [#uses=1]
 @B = external global i32               ; <i32*> [#uses=1]
index a19d8f7092c3487d63a2767c1d6d389988db71dd..56d5f2f3040a50eba897db1f9efdb16bfa03b203 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=x86 -mcpu=i386 | \
-; RUN:    not grep {movl %eax, %edx}
+; RUN:    not grep "movl %eax, %edx"
 
 define i32 @foo(i32 %t, i32 %C) {
 entry:
index 85a2ecc959ab76f83ce094b87b3eca5aa18b85de..cae68c9f3a1b1b41b29d4e955afdb3a9f760abb5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s | not grep {bsrl.*10}
+; RUN: llc < %s | not grep "bsrl.*10"
 ; PR1356
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
index deb39998a3ab901e7766a498853c917bffeef4d1..c3d7e8a054725f48f21dff14089dc5b4ef4c73df 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=i686-pc-linux-gnu -disable-fp-elim | not grep {addl .12, %esp}
+; RUN: llc < %s -mtriple=i686-pc-linux-gnu -disable-fp-elim | not grep "addl .12, %esp"
 ; PR1398
 
        %struct.S = type { i32, i32 }
index 5acb05134c7cba2b5a11169171fe6c7c18a07680..88186cd6fa1c0fbedfabf097f3c06b4d15b74459 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=x86_64-apple-darwin -x86-asm-syntax=intel | not grep {lea\[\[:space:\]\]R}
+; RUN: llc < %s -mtriple=x86_64-apple-darwin -x86-asm-syntax=intel | not grep "lea[[:space:]]R"
 
        %struct.AGenericCall = type { %struct.AGenericManager*, %struct.ComponentParameters*, i32* }
        %struct.AGenericManager = type <{ i8 }>
index 5115e48365fcc47985fd2762240d469aa2d0f68c..a52b36588a36347b2a2dd812b3bfa2e1ab86b110 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc < %s | grep {a:} | not grep ax
-; RUN: llc < %s | grep {b:} | not grep ax
+; RUN: llc < %s | grep "a:" | not grep ax
+; RUN: llc < %s | grep "b:" | not grep ax
 ; PR2078
 ; The clobber list says that "ax" is clobbered.  Make sure that eax isn't 
 ; allocated to the input/output register.
index 4dc3a10f46479999cfde7699941c3c337f38d811..5ca7e3ed3dbf028fbc10cee611f418ca373f4579 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=i386-apple-darwin -asm-verbose | grep {#} | not grep -v {##}
+; RUN: llc < %s -mtriple=i386-apple-darwin -asm-verbose | grep "#" | not grep -v "##"
 
        %struct.AGenericCall = type { %struct.AGenericManager*, %struct.ComponentParameters*, i32* }
        %struct.AGenericManager = type <{ i8 }>
index 109069e3536597f2967c1b7cc53b5a8b582ea966..3a1de11ea21bd3b7de7304dbf7f8247bb41465b7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=i386-apple-darwin -disable-cgp-branch-opts | grep movw | not grep {, %e}
+; RUN: llc < %s -mtriple=i386-apple-darwin -disable-cgp-branch-opts | grep movw | not grep ", %e"
 
        %struct.DBC_t = type { i32, i8*, i16, %struct.DBC_t*, i8*, i8*, i8*, i8*, i8*, %struct.DBC_t*, i32, i32, i32, i32, i8*, i8*, i8*, i8*, i8*, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32*, i8, i16, %struct.DRVOPT*, i16 }
        %struct.DRVOPT = type { i16, i32, i8, %struct.DRVOPT* }
index 5b97eb71cbfdf7273f8186d7a966d9f2aa5f459e..7c04206de72ff5db85644059ebebe2aacea4ca9a 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llc < %s -mtriple=x86_64-apple-darwin | grep movl > %t
-; RUN: not grep {r\[abcd\]x} %t
-; RUN: not grep {r\[ds\]i} %t
-; RUN: not grep {r\[bs\]p} %t
+; RUN: not grep "r[abcd]x" %t
+; RUN: not grep "r[ds]i" %t
+; RUN: not grep "r[bs]p" %t
 
        %struct.BITMAP = type { i16, i16, i32, i32, i32, i32, i32, i32, i8*, i8* }
        %struct.BltData = type { float, float, float, float }
index 421b931ecd5a2a7c64f8e024a4708200b0d058c8..e504bc3e776c531925c8b400301ed03ce8f12ad3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -mattr=+sse2 -o - | not grep {ucomiss\[^,\]*esp}
+; RUN: llc < %s -march=x86 -mattr=+sse2 -o - | not grep "ucomiss[^,]*esp"
 
 define void @f(float %wt) {
 entry:
index 3564f01a7c4330aa0251bfd0a5302302b8411e21..847a43fb06a1ef55ea2a999a60246e8d6823aff6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=i386-apple-darwin -mattr=+sse2 | not grep {.space}
+; RUN: llc < %s -mtriple=i386-apple-darwin -mattr=+sse2 | not grep ".space"
 ; rdar://6668548
 
 declare double @llvm.sqrt.f64(double) nounwind readonly
index 8bbdb0e82f784fb8c008a86fff3300821be88e45..d934ec9a88f8d2aedeadb1d86e0cec5359a30648 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static -o /dev/null -stats -info-output-file - > %t
 ; RUN: not grep spill %t
-; RUN: not grep {%rsp} %t
-; RUN: not grep {%rbp} %t
+; RUN: not grep "%rsp" %t
+; RUN: not grep "%rbp" %t
 
 ; The register-pressure scheduler should be able to schedule this in a
 ; way that does not require spills.
index 56eba9eb4689b7a2cec96beb37b8bb64ffced904..ad18a0c5b94d42b9ff51589f51a0057491821ed1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=x86_64-apple-darwin10.0 -relocation-model=pic -disable-fp-elim -stats 2>&1 | grep {Number of modref unfolded}
+; RUN: llc < %s -mtriple=x86_64-apple-darwin10.0 -relocation-model=pic -disable-fp-elim -stats 2>&1 | grep "Number of modref unfolded"
 ; XFAIL: *
 ; 69408 removed the opportunity for this optimization to work
 
index af552d4ce20d43df1fe4dc7052cdb74d19b58b4f..fe04272082c9ca7c38d0abb7797dfc3ae5513241 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86-64 | not grep {movzbl       %\[abcd\]h,}
+; RUN: llc < %s -march=x86-64 | not grep "movzbl       %[abcd]h,"
 
 define void @BZ2_bzDecompress_bb5_2E_outer_bb35_2E_i_bb54_2E_i(i32*, i32 %c_nblock_used.2.i, i32 %.reload51, i32* %.out, i32* %.out1, i32* %.out2, i32* %.out3) nounwind {
 newFuncRoot:
index de930d5126782bfbc8dde1352d085707cbb8c4e3..b8effa6773552aa913ca8e97f0f40312a161aaf4 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llc < %s -march=x86-64 -relocation-model=pic > %t
-; RUN: grep {movswl    %ax, %edi} %t
-; RUN: grep {movw      (%rax), %ax} %t
+; RUN: grep "movswl    %ax, %edi" %t
+; RUN: grep "movw      (%rax), %ax" %t
 ; XFAIL: *
 
 @x = common global i16 0
index d580b4f36db267359c33bcd1837608ec82c32cb2..18a3313773534df09aa2700f48d0a1a57efd51b9 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -mtriple=x86_64-apple-darwin10 -stats 2>&1 | \
-; RUN:   not grep {Number of machine instructions hoisted out of loops post regalloc}
+; RUN:   not grep "Number of machine instructions hoisted out of loops post regalloc"
 
 ; rdar://11095580
 
index d185af16b90bd732b5af3959b1d03cf42e51aea3..e987495f2c01ac186d2824c148d6d98e83b35bd2 100644 (file)
@@ -7,7 +7,7 @@
 ; Check that the shift gets turned into an LEA.
 
 ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \
-; RUN:   not grep {mov E.X, E.X}
+; RUN:   not grep "mov E.X, E.X"
 
 @G = external global i32                ; <i32*> [#uses=1]
 
index 42db26455a931f7cdf93db79e38f12bc2b6ebd40..d8f37781fc6e30ed0be9568dfdf6ce35846561e4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -stats 2>&1 | not grep {instructions sunk}
+; RUN: llc < %s -march=x86 -stats 2>&1 | not grep "instructions sunk"
 ; PR3522
 
 target triple = "i386-pc-linux-gnu"
index 4eaf00421ad12f354dec646510e6540cf8feebdc..52d7b56f182eccff46f8f5f354958791bc217871 100644 (file)
@@ -2,7 +2,7 @@
 ;; neither of them should require spilling anything to the stack.
 
 ; RUN: llc < %s -march=x86 -stats 2>&1 | \
-; RUN:   not grep {Number of register spills}
+; RUN:   not grep "Number of register spills"
 
 ;; This can be compiled to use three registers if the loads are not
 ;; folded into the multiplies, 2 registers otherwise.
index 75f438d26cd0c6cc6a47e8591ce974be0f45e1e6..f6095a75561c8fcad44e262144bbb4903451b998 100644 (file)
@@ -3,7 +3,7 @@
 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu > %t
 ; RUN: not grep xor %t
 ; RUN: not grep movap %t
-; RUN: grep {\\.quad.*0} %t
+; RUN: grep "\.quad.*0" %t
 
 ; Remat should be able to fold the zero constant into the div instructions
 ; as a constant-pool load.
index 0ea5541c89dcaaa4c6dd66fda646a38044bb31be..0693789fe5d5408a61b2da6aaa6d69d49d28248c 100644 (file)
@@ -5,7 +5,7 @@
 ; RUN: not grep negq %t
 ; RUN: not grep addq %t
 ; RUN: not grep subq %t
-; RUN: not grep {movl  %} %t
+; RUN: not grep "movl  %" %t
 
 ; Utilize implicit zero-extension on x86-64 to eliminate explicit
 ; zero-extensions. Shrink 64-bit adds to 32-bit when the high
index 41ee1947edc49a227fff966d6b6b907976c55ebc..0536eb05222c5880cdcb0e324f6077e0cd556667 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -mcpu=yonah | not grep {sub.*esp}
+; RUN: llc < %s -march=x86 -mcpu=yonah | not grep "sub.*esp"
 ; RUN: llc < %s -march=x86 -mcpu=yonah | grep cvtsi2ss
 ; rdar://6034396
 
index 7416051693be01885ac15009a8733d3f18a3a06b..56fdadbf937bcee11ff49e15ea4f9206c5de84a0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 | grep {jc} | count 1
+; RUN: llc < %s -march=x86 | grep "jc" | count 1
 ; XFAIL: *
 
 ; FIXME: umul-with-overflow not supported yet.
index 63b5dbf0c16638b4891287b09d85b8e3318bca6c..0cff28ad2b2b0d2906907d962b63b351cb151936 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
 # XFAIL: *
 
 # LDR_PRE/POST has encoding Inst{4} = 0.
index bce6b3bb6e6a77ef876b8cfa729cbd0905ff7d3b..5ba7d618bfd7cb086711d3049d3044b41cade21e 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=armv7-unknown-unknwon -mcpu=cortex-a8 2>&1 | grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=armv7-unknown-unknwon -mcpu=cortex-a8 2>&1 | grep "invalid instruction encoding"
 # XFAIL: *
 
 # Opcode=737 Name=VLD1DUPq8_UPD Format=ARM_FORMAT_NLdSt(30)
index 7f8541e4941aa3e5d5249aa53aa84770a13f16f6..f961c64f7d9988dd91800ee1cd73ac3c04ac65ce 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=armv7-unknown-unknwon -mcpu=cortex-a8 2>&1 | grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=armv7-unknown-unknwon -mcpu=cortex-a8 2>&1 | grep "invalid instruction encoding"
 # XFAIL: *
 
 # Opcode=1225 Name=VQADDsv16i8 Format=ARM_FORMAT_N3Reg(37)
index 911d7b325ff39c4ca852cc42dd9a240c973e09c6..07a1c7aac699f52aa6cdebfdada44e50d5b6e450 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=armv7-unknown-unknwon -mcpu=cortex-a8 2>&1 | grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=armv7-unknown-unknwon -mcpu=cortex-a8 2>&1 | grep "invalid instruction encoding"
 # XFAIL: *
 
 # Opcode=1641 Name=VST2b32_UPD Format=ARM_FORMAT_NLdSt(30)
index d16dcd71316aeba9e365d80a1b0aec885d02b3cd..6c13560a312795718319d2e5c338a229a22f8a7b 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep "invalid instruction encoding"
 # XFAIL: *
 
 # Opcode=1934 Name=t2LDREXD Format=ARM_FORMAT_THUMBFRM(25)
index 1877b538a17e8e2fe78cf59277374a31e4c29cd3..64ba3685cd9bcbdd67cad3e717d5171b24badff7 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep "invalid instruction encoding"
 # XFAIL: *
 
 # Opcode=2124 Name=t2STRD_PRE Format=ARM_FORMAT_THUMBFRM(25)
index 27b91db09fc0cd0fd2b7bc372cedc6b9f63e60af..243c11d56137c90698d3d463a433d0f95062a230 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep "invalid instruction encoding"
 # XFAIL: *
 
 # Opcode=2127 Name=t2STREXB Format=ARM_FORMAT_THUMBFRM(25)
index d16ea72c2bda9ec54b94de9738c7c2ee5528ca99..cac696ed6ff25519338155aa0fb5544556e0a0d0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llvm-dis | not grep {void@}
+; RUN: llvm-as < %s | llvm-dis | not grep "void@"
 ; PR2894
 declare void @g()
 define void @f() {
index 08ca6bccd632cd8b098887119224a658693a3c03..e4a61da45cf359f2456d035c3f8a922894508dc0 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -argpromotion -S | \
-; RUN:    not grep {load i32\* null}
+; RUN:    not grep "load i32* null"
 
 define internal i32 @callee(i1 %C, i32* %P) {
         br i1 %C, label %T, label %F
index b957220aa9cc74cd3d2b3889829438dd26b91062..ca1d6180c75876522c45c2138ed3ce5e69e9433b 100644 (file)
@@ -5,7 +5,7 @@
 ; Fix #2: The unary not instruction now no longer exists. Change to xor.
 
 ; RUN: opt < %s -constprop -S | \
-; RUN:   not grep {i32 0}
+; RUN:   not grep "i32 0"
 
 define i32 @test1() {
         %R = xor i32 123, -1            ; <i32> [#uses=1]
index 0b44b99f6a95dfc27406c0686a8f99603388c17e..d68cb26da348f943cdab736cbba97de0fdbc3b4f 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -constprop -S | \
-; RUN:    not grep {ret i1 false}
+; RUN:    not grep "ret i1 false"
 
 @b = external global [2 x {  }]         ; <[2 x {  }]*> [#uses=2]
 
index d4edce9baf655b78e1301c2af280d77e6606f464..cdd893faba26c7bcfd34139a05d0acde32d82786 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -deadargelim -S | not grep {ret i32 0}
+; RUN: opt < %s -deadargelim -S | not grep "ret i32 0"
 ; PR1735
 
 define internal i32 @test(i32 %A, ...) { 
index 9983374b154e3393fa47d383ad23a52e6cb99116..7e9c982de51c4812b616d51299ed3d7a8aa7d928 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -basicaa -gvn -S | not grep {tmp10 =}
+; RUN: opt < %s -basicaa -gvn -S | not grep "tmp10 ="
 
        %struct.INT2 = type { i32, i32 }
 @blkshifts = external global %struct.INT2*             ; <%struct.INT2**> [#uses=2]
index a570e3571ee0c434859e72f3e4464732c5b4b8de..13419d19e1d5aa358847c68678481e58aa4dead8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -basicaa -gvn -S | not grep {tmp701 =}
+; RUN: opt < %s -basicaa -gvn -S | not grep "tmp701 ="
 
 @img_width = external global i16               ; <i16*> [#uses=2]
 
index 1decafac8c4f2de73b37152e38b25923abec404c..6f4aace45fde86c0d236afe3aefbce3425029ca7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -gvn -S | not grep {%z2 =}
+; RUN: opt < %s -gvn -S | not grep "%z2 ="
 
 define i32 @main() {
 block1:
index 268b8d1a7e47642ab5b6490a6e0d9646c3c25ac2..6366c8c0516cf54cd7c2c3493dde95cc2a3ddf10 100644 (file)
@@ -1,5 +1,5 @@
 ; PR1015
-; RUN: opt < %s -indvars -S | not grep {ret i32 0}
+; RUN: opt < %s -indvars -S | not grep "ret i32 0"
 
 target datalayout = "e-p:32:32"
 target triple = "i686-apple-darwin8"
index dd400beaa5fa78aaf437ab1c760192865fb8a844..b4615668136bf6438fa44b58d7f6509f2d39c657 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -indvars -S | not grep {sext}
+; RUN: opt < %s -indvars -S | not grep "sext"
 ; ModuleID = '<stdin>'
 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-n32:64"
 target triple = "x86_64-apple-darwin9.6"
index 55e8a5073cf19be390bc89c94520cd57fe7ed4d8..0722d8958517bb69a408d1a8b0e2165fef92ca78 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -indvars -instcombine -S | not grep {\[sz\]ext}
+; RUN: opt < %s -indvars -instcombine -S | not grep "[sz]ext"
 ; ModuleID = '<stdin>'
 ;extern int *a, *b, *c, *d, *e, *f;  /* 64 bit */
 ;extern int K[256];
index c3619f640b339232b7a567dcd1b23945c74f0843..e51a3410e35ac403006036b50f5ab39531c557a9 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -indvars -S \
-; RUN:   | grep {%b.1 = phi i32 \\\[ 2, %bb \\\], \\\[ 1, %bb2 \\\]}
+; RUN:   | grep "%b.1 = phi i32 [ 2, %bb ], [ 1, %bb2 ]"
 ;
 ; This loop has multiple exits, and the value of %b1 depends on which
 ; exit is taken. Indvars should correctly compute the exit values.
index 9f3bcaf21bedbaa07b29db8d667b417e5499bb51..21fb7ef931674e6bd7d469c0b4724c7989a6cdea 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -indvars -S > %t
-; RUN: grep {\[%\]tmp7 = icmp eq i8 -28, -28} %t
-; RUN: grep {\[%\]tmp8 = icmp eq i8 63, 63} %t
+; RUN: grep "[%]tmp7 = icmp eq i8 -28, -28" %t
+; RUN: grep "[%]tmp8 = icmp eq i8 63, 63" %t
 ; PR4477
 ; Indvars should compute the exit values in loop.
 ;
index 8fbcf929d024f6be2462f419ca0b66d6ebb327e9..b114537490c8aaf10b14e94f6df5852830af3ee4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | not grep {invoke void asm}
+; RUN: opt < %s -inline -S | not grep "invoke void asm"
 ; PR1335
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
index 1f34113a180921b97c99dfbf27f9c54387a8595e..e07752396a3071f85a94c414d0c691a66d945f5d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | not grep {tail call void @llvm.memcpy.i32}
+; RUN: opt < %s -inline -S | not grep "tail call void @llvm.memcpy.i32"
 ; PR3550
 
 define internal void @foo(i32* %p, i32* %q) {
index e0e6d600bbb362257fcb87cd642d7934feb5754a..922351fd461c7f39dbe864b468c636570bdf0538 100644 (file)
@@ -2,7 +2,7 @@
 ; instructions
 
 ; RUN: opt < %s -inline -S | \
-; RUN:   not grep {call\[^e\]}
+; RUN:   not grep "call[^e]"
 
 declare void @might_throw()
 
index 8169d2127f7faa99add6603ed154fa68f87565b7..d17db8d7eac2083e54bb4072498d88a05fa36f26 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -instcombine -mem2reg -S | \
-; RUN:   not grep {i32 1}
+; RUN:   not grep "i32 1"
 
 ; When propagating the load through the select, make sure that the load is
 ; inserted where the original load was, not where the select is.  Not doing
index e646edf0296c77db0e5ce42bb79383db7105c557..0d5fc810a8ae1b3ca95ac37941a07c93fe4b7d9d 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -instcombine -mem2reg -simplifycfg | \
-; RUN:   llvm-dis | grep -v store | not grep {i32 1}
+; RUN:   llvm-dis | grep -v store | not grep "i32 1"
 
 ; Test to make sure that instcombine does not accidentally propagate the load
 ; into the PHI, which would break the program.
index 38553d798810722d7798263d905c742258c4bcc5..02bc043da0db78cbeba43f7cef8a6668522d16f5 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -instcombine -S | \
-; RUN:   not grep {ret i1 false}
+; RUN:   not grep "ret i1 false"
 
 define i1 @test(i64 %tmp.169) {
         %tmp.1710 = lshr i64 %tmp.169, 1                ; <i64> [#uses=1]
index 6420537b9de7f1852369ceca79676abc4ec0b693..89f867252bf918729926d58cb3a730ce1184646c 100644 (file)
@@ -1,6 +1,6 @@
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
 target triple = "i686-pc-linux-gnu"
-; RUN: opt < %s -instcombine -S | not grep {ret i1 0}
+; RUN: opt < %s -instcombine -S | not grep "ret i1 0"
 ; PR1850
 
 define i1 @test() {
index 28a94ce07ad2080269c1a23bafdfda61c92f0297..1f9c47c4f1ee5c1766aa530cf030c677f297496c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | not grep {a.off}
+; RUN: opt < %s -instcombine -S | not grep "a.off"
 ; PR1949
 
 define i1 @test1(i32 %a) {
index 47a7590076c7b94d6669487a2dabe9b0a84be836..ed0141403bbe71777e73263c468fd9f97e8ede2f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | not grep {sub i32 0}
+; RUN: opt < %s -instcombine -S | not grep "sub i32 0"
 ; PR2330
 
 define i32 @foo(i32 %a) nounwind {
index 501d8a66c3e64340c1c5a6dc9ae565e20695d004..b469887ba25c933e431faa9a9dc5eeec29056263 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | not grep {store }
+; RUN: opt < %s -instcombine -S | not grep "store "
 ; PR2296
 
 @G = common global double 0.000000e+00, align 16
index a51c47d42373dd6ee24195f82099661603aa4381..9146a8ee011789d64c88bc2dc23b19229be2519c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -scalarrepl -S | not grep { = alloca}
+; RUN: opt < %s -instcombine -scalarrepl -S | not grep " = alloca"
 ; rdar://6417724
 ; Instcombine shouldn't do anything to this function that prevents promoting the allocas inside it.
 
index 531ce2b07b30614b9e5e42e25375c7e3b2779128..b3d081b613a663f054ee81ab35d6fcd96317bb36 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -instcombine -S | \
-; RUN:   grep select | not grep {i32\\*}
+; RUN:   grep select | not grep 'i32\*'
 
 ; This testcase corresponds to PR362, which notices that this horrible code
 ; is generated by the C++ front-end and LLVM optimizers, which has lots of
index 216cd46775a5ff61e2a7485d29927f4b9f3554e1..34cad82f4f1995099e8aad93f468834195e5aa3f 100644 (file)
@@ -10,7 +10,7 @@
 ; Which corresponds to test1.
 
 ; RUN: opt < %s -instcombine -S | \
-; RUN:   not grep {or }
+; RUN:   not grep "or "
 
 define i32 @test1(i32 %X, i32 %Y) {
         %A = and i32 %X, 7              ; <i32> [#uses=1]
index bd878b04a35034ef4c1361e889e3f46ddd36ae9a..cc661d50c896cfe4dc9b37ad3cc38dd6c4c87a1f 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -instcombine -S | grep xor | count 4
 ; RUN: opt < %s -instcombine -S | not grep and
-; RUN: opt < %s -instcombine -S | not grep { or}
+; RUN: opt < %s -instcombine -S | not grep " or"
 
 ; PR1510
 
index 17d29b601e69e65f5553e588e2797dc26a74d660..43536d72e9ba6764a807cedaf508654d3a646ca0 100644 (file)
@@ -11,7 +11,7 @@
 ; 
 ; This tests arbitrary precision integers.
 
-; RUN: opt < %s -instcombine -S | not grep {or }
+; RUN: opt < %s -instcombine -S | not grep "or "
 ; END.
 
 define i17 @test1(i17 %X, i17 %Y) {
index cd4cbb9cf45449bfd23d12000cc246767e956b1a..fcd2dcd23ad15b8e90bda7e5402a9a0052b30efe 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that and instructions are properly eliminated.
 ; This test is for Integer BitWidth <= 64 && BitWidth % 8 != 0.
 
-; RUN: opt < %s -instcombine -S | not grep {and }
+; RUN: opt < %s -instcombine -S | not grep "and "
 ; END.
 
 define i39 @test0(i39 %A) {
index ae74472b3d086a0db068e022a0dbd98e39f627ee..78dc8f990d08f488843adc4386e8deef17e43267 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that and instructions are properly eliminated.
 ; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
 
-; RUN: opt < %s -instcombine -S | not grep {and }
+; RUN: opt < %s -instcombine -S | not grep "and "
 ; END.
 
 
index 8b9ff143ea4e2fe83a25d09b61b55cfa29037ef5..df8ec52b5abd85e4c0185c3a89e699084b314489 100644 (file)
@@ -3,7 +3,7 @@
 ;
 
 ; RUN: opt < %s -instcombine -S | \
-; RUN:   grep -v {sub i19 %Cok, %Bok} | grep -v {sub i25 0, %Aok} | not grep sub
+; RUN:   grep -v "sub i19 %Cok, %Bok" | grep -v "sub i25 0, %Aok" | not grep sub
 ; END.
 
 define i23 @test1(i23 %A) {
index 849c6598332824215cc8ffaf9c24be03554a0278..01cbcf158cd9860de2f04c91c5a805108c28b3db 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that xor instructions are properly eliminated.
 ; This test is for Integer BitWidth <= 64 && BitWidth % 8 != 0.
 
-; RUN: opt < %s -instcombine -S | not grep {xor }
+; RUN: opt < %s -instcombine -S | not grep "xor "
 
 
 define i47 @test1(i47 %A, i47 %B) {
index cacc17958eb9dc5b5cf9ccd26c64e4cc1123545b..ab93c92381528547a893f7a198a478692ecf3662 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that xor instructions are properly eliminated.
 ; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
 
-; RUN: opt < %s -instcombine -S | not grep {xor }
+; RUN: opt < %s -instcombine -S | not grep "xor "
 ; END.
 
 
index 79a096ff0f195b5368afa1a846e65324066c1570..62c9ddc8c3aae5dca4feee6039efe29918c6edb1 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 ; RUN: opt < %s -instcombine -S | \
-; RUN:    not grep {tobool}
+; RUN:    not grep "tobool"
 ; END.
 define i32 @main(i32 %argc, i8** %argv) nounwind ssp {
 entry:
index 92863d59470aace14dd9c0756fa1ea1b12735adf..84ee7dd602d5c9e9f0354c0f168f9060593c7324 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -instcombine -simplifycfg -S |\
-; RUN:    not grep {call void @abort}
+; RUN:    not grep "call void @abort"
 
 @b_rec.0 = external global i32          ; <i32*> [#uses=2]
 
index 4602c12680397d7de4c2bb857a07ab596f47e68a..9d51ea0e70bb4f7680488436ddbaf05e2e78e13f 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that memmove instructions are properly eliminated.
 ;
-; RUN: opt < %s -instcombine -S | not grep {call void @llvm.memmove}
+; RUN: opt < %s -instcombine -S | not grep "call void @llvm.memmove"
 
 @S = internal constant [33 x i8] c"panic: restorelist inconsistency\00"                ; <[33 x i8]*> [#uses=1]
 @h = constant [2 x i8] c"h\00"         ; <[2 x i8]*> [#uses=1]
index 7f7bc9f86e1f0edd1387a950d6b8196c071cb7d7..7f02dad58a7a01d0c67b490c3f4b1a24006e2ced 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | not grep {call.*llvm.memset}
+; RUN: opt < %s -instcombine -S | not grep "call.*llvm.memset"
 
 define i32 @main() {
   %target = alloca [1024 x i8]
index 62ab116367fe09b3e3ac9c6a21a9799c225c8a63..138712e5a9b632baffeaaddedf0c6a0cc4c07e16 100644 (file)
@@ -3,7 +3,7 @@
 ; into equivalent setne,eq instructions.
 ;
 ; RUN: opt < %s -instcombine -S | \
-; RUN:    grep -v {icmp eq} | grep -v {icmp ne} | not grep icmp
+; RUN:    grep -v "icmp eq" | grep -v "icmp ne" | not grep icmp
 ; END.
 
 define i1 @test1(i32 %A) {
index cf87aef7df465e3a5551a5936158e00488d19516..aa6baa989bfc102c210961909bb39410013f9cfc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | not grep {shufflevector.\*i32 8}
+; RUN: opt < %s -instcombine -S | not grep "shufflevector.*i32 8"
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
 target triple = "i386-apple-darwin9"
index a7bcdac08bd89c43dd87971d45e0385757f0ab7a..3722697f9892cb87123c2976616a9e7714365169 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 ; RUN: opt < %s -instcombine -S | \
-; RUN:    not grep {xor }
+; RUN:    not grep "xor "
 ; END.
 @G1 = global i32 0             ; <i32*> [#uses=1]
 @G2 = global i32 0             ; <i32*> [#uses=1]
index 581785c45f5173f299bba242f14173998f24614d..9b05b4496b0c5c7e724a9abdf1a4196dabda8228 100644 (file)
@@ -1,5 +1,5 @@
 ; There should be no phi nodes left.
-; RUN: opt < %s -jump-threading  -S | not grep {phi i32}
+; RUN: opt < %s -jump-threading  -S | not grep "phi i32"
 
 declare i32 @f1()
 declare i32 @f2()
index 70a04c73b1d3e2d09ccee6f2d8ed202ead361207..b54d520a91f76b724c504d62b30b6b27e7dc6cab 100644 (file)
@@ -4,7 +4,7 @@
 ; case... bad.
 
 ; RUN: opt < %s -licm -loop-deletion -simplifycfg -S | \
-; RUN:   not grep {br }
+; RUN:   not grep "br "
 
 define i32 @main(i32 %argc) {
 ; <label>:0
index 9cb55b41193282df0c2cabc3ea0c17db377671b6..0666e0f06a9c93d883d64ab1208bfc5a0f062737 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -loop-rotate -verify-dom-info -verify-loop-info -S | not grep {\\\[ .tmp224} 
+; RUN: opt < %s -loop-rotate -verify-dom-info -verify-loop-info -S | not grep "[ .tmp224" 
 ; END.
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
 
index 4136486fef45189fa008d70e25a8c3a4352bad45..f7a82f6616d2055b7e54563688ac3f765d0478d0 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -loop-reduce -S | \
-; RUN:   not grep {bitcast i32 1 to i32}
+; RUN:   not grep "bitcast i32 1 to i32"
 ; END.
 ; The setlt wants to use a value that is incremented one more than the dominant
 ; IV.  Don't insert the 1 outside the loop, preventing folding it into the add.
index 2ca678761feda069e3dd1065b2e768d4554f983a..5c18809e59c2f93b8726be98eabbc38a99caebf2 100644 (file)
@@ -1,6 +1,6 @@
 ; Check that the index of 'P[outer]' is pulled out of the loop.
 ; RUN: opt < %s -loop-reduce -S | \
-; RUN:   not grep {getelementptr.*%outer.*%INDVAR}
+; RUN:   not grep "getelementptr.*%outer.*%INDVAR"
 
 target datalayout = "e-p:32:32:32-n8:16:32"
 declare i1 @pred()
index 86c4d915a00d18393a4bb36eb716a59219e68a04..8eb8f05a8a1fe229f36b12e488b15f530aaaa52e 100644 (file)
@@ -1,6 +1,6 @@
 ; Check that the index of 'P[outer]' is pulled out of the loop.
 ; RUN: opt < %s -loop-reduce -S | \
-; RUN:   not grep {getelementptr.*%outer.*%INDVAR}
+; RUN:   not grep "getelementptr.*%outer.*%INDVAR"
 
 target datalayout = "e-p:32:32:32-n32"
 declare i1 @pred()
index 64ef4f951f2b1da6eb090f1ff3d513c92cf9b4e3..3405b26f1f3839e089e9fe122ff183c0e68bc748 100644 (file)
@@ -1,10 +1,10 @@
 ; Base should not be i*3, it should be i*2.
 ; RUN: opt < %s -loop-reduce -S | \
-; RUN:   not grep {mul.*%i, 3}
+; RUN:   not grep "mul.*%i, 3"
 
 ; Indvar should not start at zero:
 ; RUN: opt < %s -loop-reduce -S | \
-; RUN:   not grep {phi i32 .* 0}
+; RUN:   not grep "phi i32 .* 0"
 ; END.
 
 ; mul uint %i, 3
index b95ad91a361a34a3bd8c6cfef8eb639c85af1da1..d124be5f9029cb682156e81c1f793966327c38fc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -basicaa -memcpyopt -dse -S | grep {call.*initialize} | not grep memtmp
+; RUN: opt < %s -basicaa -memcpyopt -dse -S | grep "call.*initialize" | not grep memtmp
 ; PR2077
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
index 24cf576a08bae5c7001d5e5d06906479d5989e1c..61ba3c7e6cc550e19d238bb2a8d1436b975c50b1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -basicaa -memcpyopt -S | not grep {call.*memcpy.}
+; RUN: opt < %s -basicaa -memcpyopt -S | not grep "call.*memcpy."
 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 
 %a = type { i32 }
index 8eac7da7986b0602d350021634c7694eb81f774f..1bbb5fe8651bd97aed616a3b9281f9735af2606e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -basicaa -memcpyopt -S | not grep {call.*memcpy}
+; RUN: opt < %s -basicaa -memcpyopt -S | not grep "call.*memcpy"
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
 target triple = "i686-apple-darwin9"
index 23e4d33c3a9f5462917b45a07e753d68182a5940..4df6e39c1256585147f531286af43ae7bcc8bdc4 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -mergefunc -S > %t
-; RUN: grep {define weak} %t | count 2
-; RUN: grep {call} %t | count 2
+; RUN: grep "define weak" %t | count 2
+; RUN: grep "call" %t | count 2
 ; XFAIL: *
 
 ; This test is off for a bit as we change this particular sort of folding to
index d05d028728d50c410d9bc7995463408bc72cbf69..fd0baffb31081b0faff0b40f32f51dc132a2967d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -mergefunc -stats -disable-output 2>&1 | not grep {functions merged}
+; RUN: opt < %s -mergefunc -stats -disable-output 2>&1 | not grep "functions merged"
 
 define i32 @foo1(i32 %x) {
 entry:
index 61e2f15c0d0a13b66bece0120cec35223177eb51..ec5d100d751388ecaa31375fd11c6fd4f52d5628 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -prune-eh -S | not grep {ret i32}
+; RUN: opt < %s -prune-eh -S | not grep "ret i32"
 
 declare void @noreturn() noreturn
 
index 63f41dbc024030bb46989d834884d7316320ef4a..4688643ebd545bbc0ab76e1fd1837006f394745d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -sccp -S | not grep {ret i32 undef}
+; RUN: opt < %s -sccp -S | not grep "ret i32 undef"
 ; PR2358
 target datalayout =
 "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
index 3c02e05548db8ac8d75bd6b0f4a7f0ca7073705c..834cca488484e95fc575b444ba8710475636f576 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt < %s -ipsccp -S | grep -v {ret i101 0} | \
-; RUN:    grep -v {ret i101 undef} | not grep ret
+; RUN: opt < %s -ipsccp -S | grep -v "ret i101 0" | \
+; RUN:    grep -v "ret i101 undef" | not grep ret
 
 
 define internal i101 @bar(i101 %A) {
index 0d61e5aab6c7776017ba7daf6df99f65c75a5e39..3510dfc24d9a15ff37d2aa294930f57110ae63d1 100644 (file)
@@ -1,6 +1,6 @@
 ; PR1226
 ; RUN: opt < %s -scalarrepl -S | \
-; RUN:   not grep {call void @llvm.memcpy.i32}
+; RUN:   not grep "call void @llvm.memcpy.i32"
 ; RUN: opt < %s -scalarrepl -S | grep getelementptr
 ; END.
 
index 8ac9ae4437285268867a0c8575aa7c26a1406c16..fc89b165f85b12fd51a105d04cd40f46c36a4226 100644 (file)
@@ -2,7 +2,7 @@
 ; 'br Dest'
 
 ; RUN: opt < %s -simplifycfg -S | \
-; RUN:   not grep {br i1 %c2}
+; RUN:   not grep "br i1 %c2"
 
 declare void @noop()
 
index 888e187b6b4de770084a3b0be4df30cab9d2eb65..c1b032fb8b3952baf90f57cce8419f0628e5d447 100644 (file)
@@ -4,7 +4,7 @@
 ; the ConstantFoldTerminator function.
 
 ; RUN: opt < %s -simplifycfg -S | \
-; RUN:   not grep {br i1 %c2}
+; RUN:   not grep "br i1 %c2"
 
 declare void @noop()
 
index 7ab8faa2cea9871de3d8f0c24564962bfcb4bc50..14853642c09a74b3acc67de93dc88fa6b8561d3d 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -simplifycfg -S | \
-; RUN: not grep {br label}
+; RUN: not grep "br label"
 
 define void @test(i1 %C) {
         br i1 %C, label %A, label %B
index 83394628cc4470fb9e006e39d51adf6919760e66..c62560000caec512cb5d181c865a34b073252bb7 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -simplifycfg -S | \
-; RUN:   not grep {icmp eq}
+; RUN:   not grep "icmp eq"
 
 ; Check that simplifycfg deletes a dead 'seteq' instruction when it
 ; folds a conditional branch into a switch instruction.
index bf9d9535d63653ea1b6aa41b4d9cd63f7f5428d4..b6d54d32566b558756adfd113633c991ceb092c5 100644 (file)
@@ -3,7 +3,7 @@
 ; important case.  This is basically the most trivial form of tail-duplication.
 
 ; RUN: opt < %s -simplifycfg -S | \
-; RUN:    not grep {br label}
+; RUN:    not grep "br label"
 
 define i32 @test(i1 %B, i32 %A, i32 %B.upgrd.1) {
         br i1 %B, label %T, label %F
index f52d979ecd390520d175fa3fde05c3f3f654fc3f..c19ba69866b46e8938249a4e631f1c84c6823e60 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -simplifycfg -adce -S | \
-; RUN:   not grep {call void @f1}
+; RUN:   not grep "call void @f1"
 ; END.
 
 declare void @f1()
index bd85fccd5273b0e1a193978aa5c19108f6044340..93966841a425aa1998fbda6db3d20c14def6f86e 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -simplifycfg -S | \
-; RUN:   not grep {call void @DEAD}
+; RUN:   not grep "call void @DEAD"
 
 ; Test that we can thread a simple known condition through switch statements.
 
index ab45f1819b291898c74db3f8702546ac0a140b02..e38d78349d43b603e08921e69b2a74cbda210050 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that the ToAsciiOptimizer works correctly
 ; RUN: opt < %s -simplify-libcalls -S | \
-; RUN:   not grep {call.*@ffs}
+; RUN:   not grep "call.*@ffs"
 
 @non_const = external global i32               ; <i32*> [#uses=1]
 
index 4a0d232dac3bacb6073a9c38172dbf594c5caed9..51733e4a1ef681db1e12e919236f6b051c9a4131 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that the FPrintFOptimizer works correctly
 ; RUN: opt < %s -simplify-libcalls -S | \
-; RUN:   not grep {call.*fprintf}
+; RUN:   not grep "call.*fprintf"
 
 ; This transformation requires the pointer size, as it assumes that size_t is
 ; the size of a pointer.
index 1f72ede79614e0d2d2885fe2d9849723f5b087a4..aa01aba2656c78e5aa5ab523ff3110d36c4e2faa 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that the FPutsOptimizer works correctly
 ; RUN: opt < %s -simplify-libcalls -S | \
-; RUN:   not grep {call.*fputs}
+; RUN:   not grep "call.*fputs"
 
 ; This transformation requires the pointer size, as it assumes that size_t is
 ; the size of a pointer.
index c711178fa1b7ee68aaceb16f199fab4269c9f9f7..1faad036a865acdefe1b40e2abeb167780063135 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -constprop -instcombine -S | not grep {call.*llvm.memcpy.i32}
+; RUN: opt < %s -constprop -instcombine -S | not grep "call.*llvm.memcpy.i32"
 
 @h = constant [2 x i8] c"h\00"         ; <[2 x i8]*> [#uses=1]
 @hel = constant [4 x i8] c"hel\00"             ; <[4 x i8]*> [#uses=1]
index 847e363f52c11c47e75a31b3785234f6d6babb75..514a7d9f6eeef7e91d4afff221ac16bc8c7b7228 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that the SPrintFOptimizer works correctly
 ; RUN: opt < %s -simplify-libcalls -S | \
-; RUN:   not grep {call.*sprintf}
+; RUN:   not grep "call.*sprintf"
 
 ; This transformation requires the pointer size, as it assumes that size_t is
 ; the size of a pointer.
index acd8aaf6e543ded760d6c7e8385322c3523fbe87..4a20bbd2ce81dfdd9df376cf841821ba15eac40c 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that the StrCatOptimizer works correctly
 ; RUN: opt < %s -simplify-libcalls -S | \
-; RUN:    not grep {call.*strlen}
+; RUN:    not grep "call.*strlen"
 
 target datalayout = "e-p:32:32"
 @hello = constant [6 x i8] c"hello\00"         ; <[6 x i8]*> [#uses=3]
index c8af3ca8c3e279e3f3f824cd46fe3df172a5133c..4e47b31a6afa986129f18cf078689a6f7bbe9b00 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that the StrNCpyOptimizer works correctly
 ; RUN: opt < %s -simplify-libcalls -S | \
-; RUN:   not grep {call.*strncpy}
+; RUN:   not grep "call.*strncpy"
 
 ; This transformation requires the pointer size, as it assumes that size_t is
 ; the size of a pointer.
index e2b5683d9d73eb205c215dac513ced56bbe77ece..aef47333b3c387b6cb2a5cb1653eae8c99d3ea8f 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that the ToAsciiOptimizer works correctly
 ; RUN: opt < %s -simplify-libcalls -S | \
-; RUN:   not grep {call.*toascii}
+; RUN:   not grep "call.*toascii"
 
 declare i32 @toascii(i32)
 
index f8364f740b2285346bb842478320bd17580b3107..f0964e7d6daa2380f0a5ec0bdbec3f09b86855a9 100644 (file)
@@ -1,6 +1,6 @@
 ; Testcase for calls to the standard C "pow" function
 ;
-; RUN: opt < %s -simplify-libcalls -S | not grep {call .pow}
+; RUN: opt < %s -simplify-libcalls -S | not grep "call .pow"
 
 
 declare double @pow(double, double)
index 96d978d1dc0cb967f6c6f8504d0e85f8dae924f3..65b229d1ca9df1550b26717a066f2d7ca501e317 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s 2>&1 | not grep {Instruction operands must be first-class}
+; RUN: llvm-as < %s 2>&1 | not grep "Instruction operands must be first-class"
 
 ; This previously was for PR826, but structs are now first-class so
 ; the following is now valid.