Convert all tests using TCL-style quoting to use shell-style quoting.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 2 Jul 2012 12:47:22 +0000 (12:47 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 2 Jul 2012 12:47:22 +0000 (12:47 +0000)
This was done through the aid of a terrible Perl creation. I will not
paste any of the horrors here. Suffice to say, it require multiple
staged rounds of replacements, state carried between, and a few
nested-construct-parsing hacks that I'm not proud of. It happens, by
luck, to be able to deal with all the TCL-quoting patterns in evidence
in the LLVM test suite.

If anyone is maintaining large out-of-tree test trees, feel free to poke
me and I'll send you the steps I used to convert things, as well as
answer any painful questions etc. IRC works best for this type of thing
I find.

Once converted, switch the LLVM lit config to use ShTests the same as
Clang. In addition to being able to delete large amounts of Python code
from 'lit', this will also simplify the entire test suite and some of
lit's architecture.

Finally, the test suite runs 33% faster on Linux now. ;]
For my 16-hardware-thread (2x 4-core xeon e5520): 36s -> 24s

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

443 files changed:
test/Analysis/LoopInfo/2003-05-15-NestingProblem.ll
test/Analysis/ScalarEvolution/2007-07-15-NegativeStride.ll
test/Analysis/ScalarEvolution/2007-08-06-Unsigned.ll
test/Analysis/ScalarEvolution/2007-09-27-LargeStepping.ll
test/Analysis/ScalarEvolution/2008-02-11-ReversedCondition.ll
test/Analysis/ScalarEvolution/2008-05-25-NegativeStepToZero.ll
test/Analysis/ScalarEvolution/2008-07-19-WrappingIV.ll
test/Analysis/ScalarEvolution/2008-11-18-LessThanOrEqual.ll
test/Analysis/ScalarEvolution/2008-11-18-Stride1.ll
test/Analysis/ScalarEvolution/2008-12-08-FiniteSGE.ll
test/Analysis/ScalarEvolution/2009-04-22-TruncCast.ll
test/Analysis/ScalarEvolution/2009-05-09-PointerEdgeCount.ll
test/Analysis/ScalarEvolution/and-xor.ll
test/Analysis/ScalarEvolution/avoid-smax-0.ll
test/Analysis/ScalarEvolution/div-overflow.ll
test/Analysis/ScalarEvolution/sext-inreg.ll
test/Analysis/ScalarEvolution/sext-iv-1.ll
test/Analysis/ScalarEvolution/smax.ll
test/Analysis/ScalarEvolution/trip-count.ll
test/Analysis/ScalarEvolution/trip-count2.ll
test/Analysis/ScalarEvolution/trip-count3.ll
test/Analysis/ScalarEvolution/trip-count4.ll
test/Analysis/ScalarEvolution/trip-count5.ll
test/Analysis/ScalarEvolution/trip-count6.ll
test/Analysis/ScalarEvolution/trip-count7.ll
test/Analysis/ScalarEvolution/trip-count8.ll
test/Analysis/ScalarEvolution/xor-and.ll
test/Assembler/2003-11-12-ConstantExprCast.ll
test/Assembler/2003-11-24-SymbolTableCrash.ll
test/Assembler/2004-03-30-UnclosedFunctionCrash.ll
test/Assembler/2004-11-28-InvalidTypeCrash.ll
test/Assembler/2007-01-02-Undefined-Arg-Type.ll
test/Assembler/2007-01-16-CrashOnBadCast.ll
test/Assembler/2007-01-16-CrashOnBadCast2.ll
test/Assembler/2007-03-19-NegValue.ll
test/Assembler/2007-04-20-AlignedLoad.ll
test/Assembler/2007-04-20-AlignedStore.ll
test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll
test/Assembler/2007-09-29-GC.ll
test/Assembler/2007-12-11-AddressSpaces.ll
test/Assembler/2008-02-18-IntPointerCrash.ll
test/Assembler/ConstantExprFold.ll
test/CodeGen/ARM/2009-04-06-AsmModifier.ll
test/CodeGen/ARM/aliases.ll
test/CodeGen/ARM/cse-libcalls.ll
test/CodeGen/ARM/lsr-scale-addr-mode.ll
test/CodeGen/ARM/str_pre.ll
test/CodeGen/ARM/thread_pointer.ll
test/CodeGen/ARM/tls1.ll
test/CodeGen/ARM/tls3.ll
test/CodeGen/CellSPU/shift_ops.ll
test/CodeGen/CellSPU/stores.ll
test/CodeGen/CellSPU/trunc.ll
test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll
test/CodeGen/PowerPC/2006-04-05-splat-ish.ll
test/CodeGen/PowerPC/2007-04-24-InlineAsm-I-Modifier.ll
test/CodeGen/PowerPC/2007-05-30-dagcombine-miscomp.ll
test/CodeGen/PowerPC/Frames-leaf.ll
test/CodeGen/PowerPC/Frames-small.ll
test/CodeGen/PowerPC/LargeAbsoluteAddr.ll
test/CodeGen/PowerPC/and-imm.ll
test/CodeGen/PowerPC/big-endian-actual-args.ll
test/CodeGen/PowerPC/big-endian-call-result.ll
test/CodeGen/PowerPC/branch-opt.ll
test/CodeGen/PowerPC/calls.ll
test/CodeGen/PowerPC/compare-simm.ll
test/CodeGen/PowerPC/constants.ll
test/CodeGen/PowerPC/darwin-labels.ll
test/CodeGen/PowerPC/fabs.ll
test/CodeGen/PowerPC/fma.ll
test/CodeGen/PowerPC/fsqrt.ll
test/CodeGen/PowerPC/iabs.ll
test/CodeGen/PowerPC/ispositive.ll
test/CodeGen/PowerPC/no-dead-strip.ll
test/CodeGen/PowerPC/retaddr.ll
test/CodeGen/PowerPC/rlwimi3.ll
test/CodeGen/PowerPC/seteq-0.ll
test/CodeGen/PowerPC/small-arguments.ll
test/CodeGen/PowerPC/stack-protector.ll
test/CodeGen/PowerPC/trampoline.ll
test/CodeGen/Thumb/asmprinter-bug.ll
test/CodeGen/Thumb/iabs.ll
test/CodeGen/Thumb2/thumb2-ldr_pre.ll
test/CodeGen/Thumb2/tls1.ll
test/CodeGen/X86/2004-02-13-FrameReturnAddress.ll
test/CodeGen/X86/2006-04-27-ISelFoldingBug.ll
test/CodeGen/X86/2006-05-11-InstrSched.ll
test/CodeGen/X86/2006-07-31-SingleRegClass.ll
test/CodeGen/X86/2006-11-17-IllegalMove.ll
test/CodeGen/X86/2007-01-13-StackPtrIndex.ll
test/CodeGen/X86/2007-03-24-InlineAsmPModifier.ll
test/CodeGen/X86/2007-03-24-InlineAsmVectorOp.ll
test/CodeGen/X86/2007-08-10-SignExtSubreg.ll
test/CodeGen/X86/2007-11-04-rip-immediate-constant.ll
test/CodeGen/X86/2007-12-18-LoadCSEBug.ll
test/CodeGen/X86/2008-02-18-TailMergingBug.ll
test/CodeGen/X86/2008-04-17-CoalescerBug.ll
test/CodeGen/X86/2008-08-06-CmpStride.ll
test/CodeGen/X86/2008-12-23-crazy-address.ll
test/CodeGen/X86/2009-01-31-BigShift2.ll
test/CodeGen/X86/2009-02-26-MachineLICMBug.ll
test/CodeGen/X86/2009-04-24.ll
test/CodeGen/X86/2009-04-29-IndirectDestOperands.ll
test/CodeGen/X86/MachineSink-PHIUse.ll
test/CodeGen/X86/addr-label-difference.ll
test/CodeGen/X86/aligned-comm.ll
test/CodeGen/X86/break-anti-dependencies.ll
test/CodeGen/X86/call-imm.ll
test/CodeGen/X86/coalesce-esp.ll
test/CodeGen/X86/epilogue.ll
test/CodeGen/X86/extractps.ll
test/CodeGen/X86/fast-cc-merge-stack-adj.ll
test/CodeGen/X86/fast-isel-constpool.ll
test/CodeGen/X86/fast-isel-gv.ll
test/CodeGen/X86/fastcc-byval.ll
test/CodeGen/X86/fp-immediate-shorten.ll
test/CodeGen/X86/fp_load_fold.ll
test/CodeGen/X86/full-lsr.ll
test/CodeGen/X86/h-register-addressing-32.ll
test/CodeGen/X86/h-register-addressing-64.ll
test/CodeGen/X86/h-registers-1.ll
test/CodeGen/X86/illegal-vector-args-return.ll
test/CodeGen/X86/inline-asm-modifier-n.ll
test/CodeGen/X86/isel-sink2.ll
test/CodeGen/X86/ispositive.ll
test/CodeGen/X86/label-redefinition.ll
test/CodeGen/X86/lea-2.ll
test/CodeGen/X86/peep-vector-extract-insert.ll
test/CodeGen/X86/phi-immediate-factoring.ll
test/CodeGen/X86/pr2656.ll
test/CodeGen/X86/rotate.ll
test/CodeGen/X86/shift-coalesce.ll
test/CodeGen/X86/shift-double.ll
test/CodeGen/X86/shl_elim.ll
test/CodeGen/X86/stack-protector-linux.ll
test/CodeGen/X86/subreg-to-reg-1.ll
test/CodeGen/X86/tailcallbyval.ll
test/CodeGen/X86/twoaddr-coalesce-2.ll
test/CodeGen/X86/twoaddr-pass-sink.ll
test/CodeGen/X86/vec_call.ll
test/CodeGen/X86/vec_ins_extract-1.ll
test/CodeGen/X86/vec_set-9.ll
test/CodeGen/X86/x86-64-arg.ll
test/CodeGen/X86/x86-64-pic-1.ll
test/CodeGen/X86/x86-64-pic-10.ll
test/CodeGen/X86/x86-64-pic-11.ll
test/CodeGen/X86/x86-64-pic-2.ll
test/CodeGen/X86/x86-64-pic-3.ll
test/CodeGen/X86/x86-64-pic-4.ll
test/CodeGen/X86/x86-64-pic-5.ll
test/CodeGen/X86/x86-64-pic-6.ll
test/CodeGen/X86/x86-64-pic-7.ll
test/CodeGen/X86/x86-64-pic-8.ll
test/CodeGen/X86/x86-64-pic-9.ll
test/Feature/globalredefinition3.ll
test/Feature/packed_struct.ll
test/Feature/vector-cast-constant-exprs.ll
test/Integer/packed_struct_bt.ll
test/Linker/2003-01-30-LinkerRename.ll
test/Linker/2003-01-30-LinkerTypeRename.ll
test/Linker/2003-04-23-LinkOnceLost.ll
test/Linker/2003-04-26-NullPtrLinkProblem.ll
test/Linker/2003-05-15-TypeProblem.ll
test/Linker/2003-05-31-LinkerRename.ll
test/Linker/2003-06-02-TypeResolveProblem.ll
test/Linker/2003-06-02-TypeResolveProblem2.ll
test/Linker/2003-08-20-OpaqueTypeResolve.ll
test/Linker/2003-08-23-GlobalVarLinking.ll
test/Linker/2003-08-24-InheritPtrSize.ll
test/Linker/2004-12-03-DisagreeingType.ll
test/Linker/2005-02-12-ConstantGlobals-2.ll
test/Linker/2005-02-12-ConstantGlobals.ll
test/Linker/2005-12-06-AppendingZeroLengthArrays.ll
test/Linker/2006-06-15-GlobalVarAlignment.ll
test/Linker/2008-06-13-LinkOnceRedefinition.ll
test/Linker/2008-06-26-AddressSpace.ll
test/Linker/AppendingLinkage.ll
test/Linker/AppendingLinkage2.ll
test/Linker/ConstantGlobals1.ll
test/Linker/ConstantGlobals2.ll
test/Linker/ConstantGlobals3.ll
test/Linker/link-global-to-func.ll
test/Linker/redefinition.ll
test/Linker/weakextern.ll
test/MC/Disassembler/ARM/invalid-BFI-arm.txt
test/MC/Disassembler/ARM/invalid-Bcc-thumb.txt
test/MC/Disassembler/ARM/invalid-CPS2p-arm.txt
test/MC/Disassembler/ARM/invalid-CPS3p-arm.txt
test/MC/Disassembler/ARM/invalid-DMB-thumb.txt
test/MC/Disassembler/ARM/invalid-DSB-arm.txt
test/MC/Disassembler/ARM/invalid-IT-CBNZ-thumb.txt
test/MC/Disassembler/ARM/invalid-IT-thumb.txt
test/MC/Disassembler/ARM/invalid-LDC-form-arm.txt
test/MC/Disassembler/ARM/invalid-LDM-thumb.txt
test/MC/Disassembler/ARM/invalid-LDRB_POST-arm.txt
test/MC/Disassembler/ARM/invalid-LDRD_PRE-thumb.txt
test/MC/Disassembler/ARM/invalid-LDR_PRE-arm.txt
test/MC/Disassembler/ARM/invalid-LDRrs-arm.txt
test/MC/Disassembler/ARM/invalid-MCR-arm.txt
test/MC/Disassembler/ARM/invalid-MOVTi16-arm.txt
test/MC/Disassembler/ARM/invalid-MOVr-arm.txt
test/MC/Disassembler/ARM/invalid-MOVs-LSL-arm.txt
test/MC/Disassembler/ARM/invalid-MOVs-arm.txt
test/MC/Disassembler/ARM/invalid-MSRi-arm.txt
test/MC/Disassembler/ARM/invalid-RFEorLDMIA-arm.txt
test/MC/Disassembler/ARM/invalid-SBFX-arm.txt
test/MC/Disassembler/ARM/invalid-SMLAD-arm.txt
test/MC/Disassembler/ARM/invalid-SRS-arm.txt
test/MC/Disassembler/ARM/invalid-STMIA_UPD-thumb.txt
test/MC/Disassembler/ARM/invalid-SXTB-arm.txt
test/MC/Disassembler/ARM/invalid-UMAAL-arm.txt
test/MC/Disassembler/ARM/invalid-VLD3DUPd32_UPD-thumb.txt
test/MC/Disassembler/ARM/invalid-VLDMSDB_UPD-arm.txt
test/MC/Disassembler/ARM/invalid-VST1d8Twb_register-thumb.txt
test/MC/Disassembler/ARM/invalid-t2Bcc-thumb.txt
test/MC/Disassembler/ARM/invalid-t2LDRBT-thumb.txt
test/MC/Disassembler/ARM/invalid-t2LDRSHi12-thumb.txt
test/MC/Disassembler/ARM/invalid-t2LDRSHi8-thumb.txt
test/MC/Disassembler/ARM/invalid-t2PUSH-thumb.txt
test/MC/Disassembler/ARM/invalid-t2STREXD-thumb.txt
test/MC/Disassembler/ARM/invalid-t2STR_POST-thumb.txt
test/MC/Disassembler/X86/invalid-VEX-vvvv.txt
test/MC/Disassembler/X86/invalid-cmp-imm.txt
test/Other/2003-02-19-LoopInfoNestingBug.ll
test/Other/invalid-commandline-option.ll
test/TableGen/DefmInherit.td
test/TableGen/LazyChange.td
test/TableGen/ListOfList.td
test/TableGen/MultiClass.td
test/TableGen/MultiClassInherit.td
test/TableGen/Slice.td
test/TableGen/TargetInstrSpec.td
test/TableGen/cast.td
test/TableGen/foreach.td
test/TableGen/lisp.td
test/TableGen/subst.td
test/Transforms/ArgumentPromotion/2008-07-02-array-indexing.ll
test/Transforms/ArgumentPromotion/byval-2.ll
test/Transforms/ArgumentPromotion/control-flow2.ll
test/Transforms/ConstProp/2006-11-30-vector-cast.ll
test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll
test/Transforms/ConstProp/2006-12-01-bool-casts.ll
test/Transforms/ConstProp/2007-02-23-sdiv.ll
test/Transforms/ConstProp/2007-11-23-cttz.ll
test/Transforms/ConstProp/div-zero.ll
test/Transforms/DeadArgElim/2007-02-07-FuncRename.ll
test/Transforms/DeadArgElim/canon.ll
test/Transforms/DeadArgElim/keepalive.ll
test/Transforms/FunctionAttrs/2009-01-02-LocalStores.ll
test/Transforms/GVN/2007-07-31-NoDomInherit.ll
test/Transforms/GVN/2008-07-02-Unreachable.ll
test/Transforms/GVN/calls-readonly.ll
test/Transforms/GVN/load-constant-mem.ll
test/Transforms/GVN/local-pre.ll
test/Transforms/GVN/nonescaping-malloc.ll
test/Transforms/GVN/pre-basic-add.ll
test/Transforms/GVN/rle-must-alias.ll
test/Transforms/GVN/rle-semidominated.ll
test/Transforms/GlobalOpt/2008-01-13-OutOfRangeSROA.ll
test/Transforms/GlobalOpt/2008-01-29-VolatileGlobal.ll
test/Transforms/GlobalOpt/2008-04-26-SROA-Global-Align.ll
test/Transforms/GlobalOpt/2009-01-13-phi-user.ll
test/Transforms/GlobalOpt/2009-03-07-PromotePtrToBool.ll
test/Transforms/GlobalOpt/constantexpr-dangle.ll
test/Transforms/GlobalOpt/globalsra-unknown-index.ll
test/Transforms/GlobalOpt/heap-sra-phi.ll
test/Transforms/GlobalOpt/integer-bool.ll
test/Transforms/GlobalOpt/memcpy.ll
test/Transforms/GlobalOpt/storepointer-compare.ll
test/Transforms/IPConstantProp/2008-06-09-WeakProp.ll
test/Transforms/IPConstantProp/return-argument.ll
test/Transforms/IPConstantProp/return-constant.ll
test/Transforms/IPConstantProp/return-constants.ll
test/Transforms/IndVarSimplify/2005-02-26-ExitValueCompute.ll
test/Transforms/IndVarSimplify/2006-03-31-NegativeStride.ll
test/Transforms/IndVarSimplify/eliminate-max.ll
test/Transforms/IndVarSimplify/loop_evaluate_3.ll
test/Transforms/IndVarSimplify/loop_evaluate_4.ll
test/Transforms/IndVarSimplify/loop_evaluate_5.ll
test/Transforms/IndVarSimplify/shrunk-constant.ll
test/Transforms/Inline/casts.ll
test/Transforms/Inline/delete-call.ll
test/Transforms/Inline/externally_available.ll
test/Transforms/Inline/inline_prune.ll
test/Transforms/InstCombine/2004-08-10-BoolSetCC.ll
test/Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll
test/Transforms/InstCombine/2006-12-08-Phi-ICmp-Op-Fold.ll
test/Transforms/InstCombine/2006-12-15-Range-Test.ll
test/Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll
test/Transforms/InstCombine/2007-01-14-FcmpSelf.ll
test/Transforms/InstCombine/2007-01-27-AndICmp.ll
test/Transforms/InstCombine/2007-02-01-LoadSinkAlloca.ll
test/Transforms/InstCombine/2007-03-13-CompareMerge.ll
test/Transforms/InstCombine/2007-03-21-SignedRangeTest.ll
test/Transforms/InstCombine/2007-03-25-BadShiftMask.ll
test/Transforms/InstCombine/2007-03-26-BadShiftMask.ll
test/Transforms/InstCombine/2007-05-18-CastFoldBug.ll
test/Transforms/InstCombine/2007-06-06-AshrSignBit.ll
test/Transforms/InstCombine/2007-06-21-DivCompareMiscomp.ll
test/Transforms/InstCombine/2007-10-28-stacksave.ll
test/Transforms/InstCombine/2007-11-15-CompareMiscomp.ll
test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll
test/Transforms/InstCombine/2008-02-16-SDivOverflow.ll
test/Transforms/InstCombine/2008-02-16-SDivOverflow2.ll
test/Transforms/InstCombine/2008-03-13-IntToPtr.ll
test/Transforms/InstCombine/2008-04-28-VolatileStore.ll
test/Transforms/InstCombine/2008-04-29-VolatileLoadDontMerge.ll
test/Transforms/InstCombine/2008-04-29-VolatileLoadMerge.ll
test/Transforms/InstCombine/2008-05-08-LiveStoreDelete.ll
test/Transforms/InstCombine/2008-05-18-FoldIntToPtr.ll
test/Transforms/InstCombine/2008-05-23-CompareFold.ll
test/Transforms/InstCombine/2008-05-31-AddBool.ll
test/Transforms/InstCombine/2008-05-31-Bools.ll
test/Transforms/InstCombine/2008-06-08-ICmpPHI.ll
test/Transforms/InstCombine/2008-06-13-InfiniteLoopStore.ll
test/Transforms/InstCombine/2008-06-13-ReadOnlyCallStore.ll
test/Transforms/InstCombine/2008-06-21-CompareMiscomp.ll
test/Transforms/InstCombine/2008-06-24-StackRestore.ll
test/Transforms/InstCombine/2008-07-08-ShiftOneAndOne.ll
test/Transforms/InstCombine/2008-07-08-SubAnd.ll
test/Transforms/InstCombine/2008-07-08-VolatileLoadMerge.ll
test/Transforms/InstCombine/2008-07-10-CastSextBool.ll
test/Transforms/InstCombine/2008-07-13-DivZero.ll
test/Transforms/InstCombine/2008-09-29-FoldingOr.ll
test/Transforms/InstCombine/2008-10-11-DivCompareFold.ll
test/Transforms/InstCombine/2008-11-01-SRemDemandedBits.ll
test/Transforms/InstCombine/2008-12-17-SRemNegConstVec.ll
test/Transforms/InstCombine/2009-01-08-AlignAlloca.ll
test/Transforms/InstCombine/2009-01-16-PointerAddrSpace.ll
test/Transforms/InstCombine/2009-01-19-fmod-constant-float-specials.ll
test/Transforms/InstCombine/2009-01-31-Pressure.ll
test/Transforms/InstCombine/2009-02-21-LoadCST.ll
test/Transforms/InstCombine/2009-03-20-AShrOverShift.ll
test/Transforms/InstCombine/2009-04-07-MulPromoteToI96.ll
test/Transforms/InstCombine/2009-06-11-StoreAddrSpace.ll
test/Transforms/InstCombine/JavaCompare.ll
test/Transforms/InstCombine/add-shrink.ll
test/Transforms/InstCombine/add-sitofp.ll
test/Transforms/InstCombine/addnegneg.ll
test/Transforms/InstCombine/adjust-for-sminmax.ll
test/Transforms/InstCombine/align-2d-gep.ll
test/Transforms/InstCombine/and-not-or.ll
test/Transforms/InstCombine/and-or.ll
test/Transforms/InstCombine/apint-shift-simplify.ll
test/Transforms/InstCombine/bitcount.ll
test/Transforms/InstCombine/bswap.ll
test/Transforms/InstCombine/dce-iterate.ll
test/Transforms/InstCombine/deadcode.ll
test/Transforms/InstCombine/enforce-known-alignment.ll
test/Transforms/InstCombine/fp-ret-bitcast.ll
test/Transforms/InstCombine/known_align.ll
test/Transforms/InstCombine/loadstore-alignment.ll
test/Transforms/InstCombine/memcpy-to-load.ll
test/Transforms/InstCombine/multi-use-or.ll
test/Transforms/InstCombine/narrow.ll
test/Transforms/InstCombine/odr-linkage.ll
test/Transforms/InstCombine/or-to-xor.ll
test/Transforms/InstCombine/phi-merge-gep.ll
test/Transforms/InstCombine/pr2645-0.ll
test/Transforms/InstCombine/select-load-call.ll
test/Transforms/InstCombine/shufflevec-constant.ll
test/Transforms/InstCombine/signed-comparison.ll
test/Transforms/InstCombine/srem-simplify-bug.ll
test/Transforms/InstCombine/stack-overalign.ll
test/Transforms/InstCombine/stacksaverestore.ll
test/Transforms/InstCombine/udiv-simplify-bug-0.ll
test/Transforms/InstCombine/urem-simplify-bug.ll
test/Transforms/InstCombine/vec_insertelt.ll
test/Transforms/InstCombine/vec_narrow.ll
test/Transforms/InstCombine/vector-srem.ll
test/Transforms/InstCombine/volatile_store.ll
test/Transforms/InstCombine/zeroext-and-reduce.ll
test/Transforms/InstCombine/zext-fold.ll
test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll
test/Transforms/JumpThreading/no-irreducible-loops.ll
test/Transforms/LCSSA/2006-06-03-IncorrectIDFPhis.ll
test/Transforms/LCSSA/2006-06-12-MultipleExitsSameBlock.ll
test/Transforms/LCSSA/basictest.ll
test/Transforms/LCSSA/unreachable-use.ll
test/Transforms/LICM/2007-05-22-VolatileSink.ll
test/Transforms/LoopSimplify/indirectbr.ll
test/Transforms/LoopSimplify/merge-exits.ll
test/Transforms/LoopSimplify/preserve-scev.ll
test/Transforms/LoopStrengthReduce/dont_reverse.ll
test/Transforms/LoopStrengthReduce/pr2570.ll
test/Transforms/LoopStrengthReduce/quadradic-exit-value.ll
test/Transforms/LoopStrengthReduce/use_postinc_value_outside_loop.ll
test/Transforms/MergeFunc/phi-speculation2.ll
test/Transforms/MergeFunc/vector.ll
test/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll
test/Transforms/Reassociate/shifttest.ll
test/Transforms/SCCP/2004-12-10-UndefBranchBug.ll
test/Transforms/SCCP/2006-12-19-UndefBug.ll
test/Transforms/SCCP/2008-04-22-multiple-ret-sccp.ll
test/Transforms/SCCP/2009-01-14-IPSCCP-Invoke.ll
test/Transforms/SCCP/apint-array.ll
test/Transforms/SCCP/apint-basictest4.ll
test/Transforms/SCCP/apint-ipsccp1.ll
test/Transforms/SCCP/logical-nuke.ll
test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll
test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll
test/Transforms/ScalarRepl/2008-01-29-PromoteBug.ll
test/Transforms/ScalarRepl/2008-06-22-LargeArray.ll
test/Transforms/ScalarRepl/2008-08-22-out-of-range-array-promote.ll
test/Transforms/ScalarRepl/2009-02-02-ScalarPromoteOutOfRange.ll
test/Transforms/ScalarRepl/2009-02-05-LoadFCA.ll
test/Transforms/ScalarRepl/2009-03-04-MemCpyAlign.ll
test/Transforms/ScalarRepl/memset-aggregate.ll
test/Transforms/ScalarRepl/not-a-vector.ll
test/Transforms/ScalarRepl/union-fp-int.ll
test/Transforms/ScalarRepl/union-pointer.ll
test/Transforms/ScalarRepl/vector_memcpy.ll
test/Transforms/ScalarRepl/volatile.ll
test/Transforms/SimplifyCFG/2002-05-05-EmptyBlockMerge.ll
test/Transforms/SimplifyCFG/2008-01-02-hoist-fp-add.ll
test/Transforms/SimplifyCFG/2008-05-16-PHIBlockMerge.ll
test/Transforms/SimplifyCFG/2008-07-13-InfLoopMiscompile.ll
test/Transforms/SimplifyCFG/duplicate-phis.ll
test/Transforms/SimplifyLibCalls/2007-04-06-strchr-miscompile.ll
test/Transforms/SimplifyLibCalls/2009-05-30-memcmp-byte.ll
test/Transforms/SimplifyLibCalls/StrCat.ll
test/Transforms/SimplifyLibCalls/StrNCat.ll
test/Transforms/SimplifyLibCalls/abs.ll
test/Transforms/SimplifyLibCalls/exp2.ll
test/Transforms/SimplifyLibCalls/memmove.ll
test/Transforms/SimplifyLibCalls/memset-64.ll
test/Transforms/SimplifyLibCalls/memset.ll
test/Transforms/TailCallElim/ackermann.ll
test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll
test/Transforms/TailCallElim/dup_tail.ll
test/Transforms/TailCallElim/trivial_codegen_tailcall.ll
test/Verifier/2002-04-13-RetTypes.ll
test/Verifier/2002-11-05-GetelementptrPointers.ll
test/Verifier/2006-12-12-IntrinsicDefine.ll
test/Verifier/2008-03-01-AllocaSized.ll
test/Verifier/2008-08-22-MemCpyAlignment.ll
test/Verifier/2008-11-15-RetVoid.ll
test/Verifier/2010-08-07-PointerIntrinsic.ll
test/Verifier/AmbiguousPhi.ll
test/Verifier/PhiGrouping.ll
test/Verifier/SelfReferential.ll
test/Verifier/aliasing-chain.ll
test/lit.cfg

index 9355aeea54968714efb5947c3c835b697fba8379..7119007ffde51fb8d1eba6fea3a93fc593a78add 100644 (file)
@@ -2,7 +2,7 @@
 ; not a child of the loopentry.6 loop.
 ;
 ; RUN: opt < %s -analyze -loops | \
-; RUN:   grep {^            Loop at depth 4 containing: %loopentry.7<header><latch><exiting>}
+; RUN:   grep "^            Loop at depth 4 containing: %loopentry.7<header><latch><exiting>"
 
 define void @getAndMoveToFrontDecode() {
        br label %endif.2
index 7ff130f201bd186fa5bad55d36a65a477558417f..e0c5583cbb97dfa6f78ccd4609cff671f92b2c5b 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -analyze -scalar-evolution \
-; RUN:   -scalar-evolution-max-iterations=0 | grep {Loop %bb: backedge-taken count is 100}
+; RUN:   -scalar-evolution-max-iterations=0 | grep "Loop %bb: backedge-taken count is 100"
 ; PR1533
 
 @array = weak global [101 x i32] zeroinitializer, align 32             ; <[100 x i32]*> [#uses=1]
index ab96243ef1fdffb139fee1e5c665ebdc7bf16d1f..036abf5b7c1661ef9019f696a5768be953e0907b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -scalar-evolution -analyze | grep {Loop %bb: backedge-taken count is (-1 + (-1 \\* %x) + %y)}
+; RUN: opt < %s -scalar-evolution -analyze | grep "Loop %bb: backedge-taken count is (-1 + (-1 \* %x) + %y)"
 ; PR1597
 
 define i32 @f(i32 %x, i32 %y) {
index b678fee22cba0552265311b55397fc95ea1a7eab..a3192b9c01fded11415aa6388227174bb6182e2e 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -analyze -scalar-evolution \
-; RUN:   -scalar-evolution-max-iterations=0 | grep {backedge-taken count is 13}
+; RUN:   -scalar-evolution-max-iterations=0 | grep "backedge-taken count is 13"
 ; PR1706
 
 define i32 @f() {
index fe3a7f4191da5f2b4a097c74bf0ad6e111483cf6..d0644f7b3f9da9bfacf398787811d5ef1d90c247 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -scalar-evolution -analyze | grep {Loop %header: backedge-taken count is (0 smax %n)}
+; RUN: opt < %s -scalar-evolution -analyze | grep "Loop %header: backedge-taken count is (0 smax %n)"
 
 define void @foo(i32 %n) {
 entry:
index bcc124d1ecd8bfce152a7c65f4d5bfd8a525d76e..41734d70f0717adf9644031ec0f30a8511e5fbe0 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -analyze -scalar-evolution \
-; RUN:   -scalar-evolution-max-iterations=0 | grep {backedge-taken count is 61}
+; RUN:   -scalar-evolution-max-iterations=0 | grep "backedge-taken count is 61"
 ; PR2364
 
 define i32 @func_6() nounwind  {
index 86e07ec41b9ce2fb2f9b3edba5a5756f7ce2bc14..cbf200e40f9bd167b25f1cadcd89c0a078dee293 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -analyze -scalar-evolution \
-; RUN:   -scalar-evolution-max-iterations=0 | grep {backedge-taken count is 113}
+; RUN:   -scalar-evolution-max-iterations=0 | grep "backedge-taken count is 113"
 ; PR2088
 
 define void @fun() {
index 335bbaf9ad0925ba250575e5a0792139d03a9956..251f8830cee0dab3cf722c2f556de5cc0043c5eb 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -analyze -scalar-evolution |& \
-; RUN: grep {Loop %bb: backedge-taken count is (7 + (-1 \\* %argc))}
+; RUN: grep "Loop %bb: backedge-taken count is (7 + (-1 \* %argc))"
 
 define i32 @main(i32 %argc, i8** %argv) nounwind {
 entry:
index db527fefa976b090c6907e29d98565ac1d965095..56a83438830e7c3d92c04b663d68e3dc035c4fd1 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -analyze -scalar-evolution \
-; RUN:  | grep {Loop %bb: Unpredictable backedge-taken count\\.}
+; RUN:  | grep "Loop %bb: Unpredictable backedge-taken count\."
 
 ; ScalarEvolution can't compute a trip count because it doesn't know if
 ; dividing by the stride will have a remainder. This could theoretically
index 25a0434b29e260669f90487b38163a7668f0bd10..a1b3b7191658c6b975ea834cd664becab78dde7f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -analyze -scalar-evolution | grep {backedge-taken count is 255}
+; RUN: opt < %s -analyze -scalar-evolution | grep "backedge-taken count is 255"
 
 define i32 @foo(i32 %x, i32 %y, i32* %lam, i32* %alp) nounwind {
 bb1.thread:
index c2e108aa9c049f02a022028b891bf6c081c751e3..ebd9f7377d0c95d871e1d8186344bd520251f317 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -analyze -scalar-evolution | grep {(trunc i} | not grep ext
+; RUN: opt < %s -analyze -scalar-evolution | grep "(trunc i" | not grep ext
 
 define i16 @test1(i8 %x) {
   %A = sext i8 %x to i32
index dc7bd29c57ee7fe8093c431389dad7f88c0a2861..8a780431345e273134b4598fd1569eee206ba7c1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -analyze -scalar-evolution | grep {count is 2}
+; RUN: opt < %s -analyze -scalar-evolution | grep "count is 2"
 ; PR3171
 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
 
index 17725735a7ce832c88025fd510cb90d6d9ec2f0e..06f4a8582fa19a07fccfd12dab0c523979f6fa97 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -scalar-evolution -analyze \
-; RUN:   | grep {\\-->  (zext} | count 2
+; RUN:   | grep "\-->  (zext" | count 2
 
 define i32 @foo(i32 %x) {
   %n = and i32 %x, 255
index 24275f9fc4a5a24b4eb3ba7e99239dd02b5aff99..3d15c787fcfe751ce34a6405f678d7eeb3a5b813 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -scalar-evolution -analyze | grep {Loop %bb3: backedge-taken count is (-1 + %n)}
+; RUN: opt < %s -scalar-evolution -analyze | grep "Loop %bb3: backedge-taken count is (-1 + %n)"
 
 ; We don't want to use a max in the trip count expression in
 ; this testcase.
index 4f6f1e2a300f63ff53878ec405ca4d71dcbf0184..28467975606f59d456b6da00218a6a368c8832df 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -scalar-evolution -analyze \
-; RUN:  | grep {\\-->  ((-128 \\* %a) /u -128)}
+; RUN:  | grep "\-->  ((-128 \* %a) /u -128)"
 
 ; Don't let ScalarEvolution fold this div away.
 
index 23e1210dba566901430affdc43683f7b5d01a3ab..8b3d641943dba0ba760dadba1345f66c30a75856 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -analyze -scalar-evolution > %t
-; RUN: grep {sext i57 \{0,+,199\}<%bb> to i64} %t | count 1
-; RUN: grep {sext i59 \{0,+,199\}<%bb> to i64} %t | count 1
+; RUN: grep "sext i57 {0,+,199}<%bb> to i64" %t | count 1
+; RUN: grep "sext i59 {0,+,199}<%bb> to i64" %t | count 1
 
 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.6"
index 9063cbb22a7c4107d97f41f596b733b3cbec7c18..c34596d35af04724c1831a300c357e6de56c6adc 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -scalar-evolution -analyze \
-; RUN:  | grep { -->  (sext i. \{.\*,+,.\*\}<%bb1> to i64)} | count 5
+; RUN:  | grep " -->  (sext i. {.*,+,.*}<%bb1> to i64)" | count 5
 
 ; Don't convert (sext {...,+,...}) to {sext(...),+,sext(...)} in cases
 ; where the trip count is not within range.
index 15dd744c8fd32e2483cac0b499b5ba093eec32bb..eceb4298fd50c5f6f5dd7dd26572405854090ddf 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -analyze -scalar-evolution | grep smax | count 2
 ; RUN: opt < %s -analyze -scalar-evolution | grep \
-; RUN:     {%. smax %. smax %.}
+; RUN:     "%. smax %. smax %."
 ; PR1614
 
 define i32 @x(i32 %a, i32 %b, i32 %c) {
index cb4e267dd29086ea2645eda13d338b9753cd8b86..94f6882c0c9149e60431fce8f3b72e6c3bbd2fcb 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -analyze -scalar-evolution \
-; RUN:   -scalar-evolution-max-iterations=0 | grep {backedge-taken count is 10000}
+; RUN:   -scalar-evolution-max-iterations=0 | grep "backedge-taken count is 10000"
 ; PR1101
 
 @A = weak global [1000 x i32] zeroinitializer, align 32         
index e26cbea73247f881c9b14f6ddd9ad06a3de699ab..d84e99f6e7ca9b865ba6b793baaf9ddbeabf6593 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -analyze -scalar-evolution | \
-; RUN:   grep {backedge-taken count is 4}
+; RUN:   grep "backedge-taken count is 4"
 ; PR1101
 
 @A = weak global [1000 x i32] zeroinitializer, align 32         
index 1bf86ae9be819d0689893da052a7537e3dff27e2..0cb6c952b89395e428cbae2aeda873712062a830 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -scalar-evolution -analyze \
-; RUN:  | grep {Loop %bb3\\.i: Unpredictable backedge-taken count\\.}
+; RUN:  | grep "Loop %bb3\.i: Unpredictable backedge-taken count\."
 
 ; ScalarEvolution can't compute a trip count because it doesn't know if
 ; dividing by the stride will have a remainder. This could theoretically
index 116f62dbdbfb359a41c32332877ac5c8f04d3cb9..c02ae145268f5f2adb6c08b425f399e29839b487 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -analyze -scalar-evolution \
-; RUN:   | grep {sext.*trunc.*Exits: 11}
+; RUN:   | grep "sext.*trunc.*Exits: 11"
 
 ; ScalarEvolution should be able to compute a loop exit value for %indvar.i8.
 
index 1194a1da66e63966590fa2b362549252f94ae6a0..68a1ae14a7ab60cf077db86409f4f9b3fcbaeb67 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -analyze -scalar-evolution > %t
 ; RUN: grep sext %t | count 2
-; RUN: not grep {(sext} %t
+; RUN: not grep "(sext" %t
 
 ; ScalarEvolution should be able to compute a maximum trip count
 ; value sufficient to fold away both sext casts.
index 956fb81b0ed733b8c2f1bab65b82a7f2ce0542de..882f5526da4c00bbdd5a7e0adc6156a628950681 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -analyze -scalar-evolution \
-; RUN:  | grep {max backedge-taken count is 1\$}
+; RUN:  | grep "max backedge-taken count is 1$"
 
 @mode_table = global [4 x i32] zeroinitializer          ; <[4 x i32]*> [#uses=1]
 
index a8b797e142f21f541212b2ff72ce93bad709eaf6..2bcb9e92abcceb41c21d709fdcf20a9e65502062 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -analyze -scalar-evolution \
-; RUN:   | grep {Loop %bb7.i: Unpredictable backedge-taken count\\.}
+; RUN:   | grep "Loop %bb7.i: Unpredictable backedge-taken count\."
 
 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"
 
index ac5ee607ec408e9aba627d961d870a567da14e24..005162b792127643b2e15032ba901e1e7155f323 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -analyze -scalar-evolution \
-; RUN:  | grep {Loop %for\\.body: backedge-taken count is (-1 + \[%\]ecx)}
+; RUN:  | grep "Loop %for\.body: backedge-taken count is (-1 + [%]ecx)"
 ; PR4599
 
 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"
index c0530bbc3cc01e2f40ba0b1780ecff1b1f27e856..4ab2f39a2810af43cb8d1a9d6a490fd7039ad4f1 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -scalar-evolution -analyze \
-; RUN:   | grep {\\-->  (zext i4 (-8 + (trunc i64 (8 \\* %x) to i4)) to i64)}
+; RUN:   | grep "\-->  (zext i4 (-8 + (trunc i64 (8 \* %x) to i4)) to i64)"
 
 ; ScalarEvolution shouldn't try to analyze %z into something like
 ;   -->  (zext i4 (-1 + (-1 * (trunc i64 (8 * %x) to i4))) to i64)
index 149fef2276e470903a0eeb1bdc990a92d3949610..47a53537f875ecbdae9426622e39d1d0d59f4f5c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llvm-dis | not grep { bitcast (}
+; RUN: llvm-as < %s | llvm-dis | not grep " bitcast ("
 
 @.Base64_1 = external constant [4 x i8]         ; <[4 x i8]*> [#uses=1]
 
index 041b0d94c413820dfa083a747d05ae220f8f6bb6..e402d61aebfc3b30b55f03fcf06d54164cabff68 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s |& grep {multiple definition}
+; RUN: not llvm-as < %s |& grep "multiple definition"
 
 define void @test() {
        %tmp.1 = add i32 0, 1
index 775b7558f3cefa460b906db15d19843a477f9953..22fa32ea0723482f4dab041175014f78a4c52f5e 100644 (file)
@@ -1,3 +1,3 @@
-; RUN: not llvm-as %s |& grep {found end of file when expecting more instructions}
+; RUN: not llvm-as %s |& grep "found end of file when expecting more instructions"
 
 define void @foo() {
index 40648fdbde6bc1c53784c9f93d106d464dea1378..e57f7d43a159ef8a367cf9dbf7e3f2b86622ec30 100644 (file)
@@ -1,4 +1,4 @@
 ; Test for PR463.  This program is erroneous, but should not crash llvm-as.
-; RUN: not llvm-as %s -o /dev/null |& grep {use of undefined type named 'struct.none'}
+; RUN: not llvm-as %s -o /dev/null |& grep "use of undefined type named 'struct.none'"
 
 @.FOO  = internal global %struct.none zeroinitializer
index a39de1cb6cba4fffeace3df3b14ba94b7937f6b2..9e08212e2937003ff188373e0e6f41792d8ccb9c 100644 (file)
@@ -1,5 +1,5 @@
 ; The assembler should catch an undefined argument type .
-; RUN: not llvm-as %s -o /dev/null |& grep {use of undefined type named 'typedef.bc_struct'}
+; RUN: not llvm-as %s -o /dev/null |& grep "use of undefined type named 'typedef.bc_struct'"
 
 ; %typedef.bc_struct = type opaque
 
index 81f5458b2ebec87110d397b037dfde4be7dbfba0..1653d68b848602ca91d0878b07e15e37c5e7c286 100644 (file)
@@ -1,5 +1,5 @@
 ; PR1117
-; RUN: not llvm-as %s -o /dev/null |& grep {invalid cast opcode for cast from}
+; RUN: not llvm-as %s -o /dev/null |& grep "invalid cast opcode for cast from"
 
 define i8* @nada(i64 %X) {
     %result = trunc i64 %X to i8*
index c05c60952c599290242c28e7a1b2af2ec1468e2d..64610505adffa08d7d8dab8c12eef9bac1184bb2 100644 (file)
@@ -1,4 +1,4 @@
 ; PR1117
-; RUN: not llvm-as %s -o /dev/null |& grep {invalid cast opcode for cast from}
+; RUN: not llvm-as %s -o /dev/null |& grep "invalid cast opcode for cast from"
 
 @X = constant i8* trunc (i64 0 to i8*)
index e90cf351e1d737595eb239c0d335c868f598511f..64eb3cb5903a20b1dbbf4923a6270ac9a78100e8 100644 (file)
@@ -1,5 +1,5 @@
 ; Test whether negative values > 64 bits retain their negativeness.
-; RUN: llvm-as < %s | llvm-dis | grep {add i65.*, -1}
+; RUN: llvm-as < %s | llvm-dis | grep "add i65.*, -1"
 
 define i65 @testConsts(i65 %N) {
   %a = add i65 %N, -1
index f0217aec2ced0c90e89149f4a6c42a5332139191..98a5428a97d8e489480e98f1115739551758bf96 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llvm-dis | grep {align 1024}
+; RUN: llvm-as < %s | llvm-dis | grep "align 1024"
 
 define i32 @test(i32* %arg) {
 entry:
index 1b08c48444c561e985be107f26a68353e47a249b..9e4dd9fd07b54d5a8b8f06f14fed4f2e793ffc90 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llvm-dis | grep {align 1024}
+; RUN: llvm-as < %s | llvm-dis | grep "align 1024"
 
 define void @test(i32* %arg) {
 entry:
index c26d9ebc26c16cc3a84dbe57a758b55ffb42d0b3..b0ca1aad86e7c344ec9956a917d6e8cf6d0b4d4e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llvm-dis | grep {icmp.*test_weak.*null}
+; RUN: llvm-as < %s | llvm-dis | grep "icmp.*test_weak.*null"
 ; PR1358
 @G = global i1 icmp ne (i32 (...)* @test_weak, i32 (...)* null)
 
index 789a0fe1edc0c5efe982bf442a19763922030eaf..9aefd0b0416634ad92971f26fd70683de400b92d 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llvm-dis | grep {@f.*gc.*shadowstack}
-; RUN: llvm-as < %s | llvm-dis | grep {@g.*gc.*java}
+; RUN: llvm-as < %s | llvm-dis | grep "@f.*gc.*shadowstack"
+; RUN: llvm-as < %s | llvm-dis | grep "@g.*gc.*java"
 
 define void @f() gc "shadowstack" {
 entry:
index 0eb4a797306d156b43456e18edd96c98ce63c28a..7c9b5b5298488ebab8aebb7d6f6a8d509a720f51 100644 (file)
@@ -1,8 +1,8 @@
-; RUN: llvm-as < %s | llvm-dis | grep {addrspace(33)} | count 7
-; RUN: llvm-as < %s | llvm-dis | grep {addrspace(42)} | count 2
-; RUN: llvm-as < %s | llvm-dis | grep {addrspace(66)} | count 2
-; RUN: llvm-as < %s | llvm-dis | grep {addrspace(11)} | count 6
-; RUN: llvm-as < %s | llvm-dis | grep {addrspace(22)} | count 5
+; RUN: llvm-as < %s | llvm-dis | grep "addrspace(33)" | count 7
+; RUN: llvm-as < %s | llvm-dis | grep "addrspace(42)" | count 2
+; RUN: llvm-as < %s | llvm-dis | grep "addrspace(66)" | count 2
+; RUN: llvm-as < %s | llvm-dis | grep "addrspace(11)" | count 6
+; RUN: llvm-as < %s | llvm-dis | grep "addrspace(22)" | count 5
 
        %struct.mystruct = type { i32, i32 addrspace(33)*, i32, i32 addrspace(33)* }
 @input = weak addrspace(42) global %struct.mystruct zeroinitializer            ; <%struct.mystruct addrspace(42)*> [#uses=1]
index 5a661ad9b99a2d76f915bbb56272305ad31892cc..a66fca70d8418712cc41792b6493a86391674fb9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as %s |& grep {integer constant must have integer type}
+; RUN: not llvm-as %s |& grep "integer constant must have integer type"
 ; PR2060
 
 define i8* @foo() {
index d3d374a07cf1f85870cff093b2e1a8aaabe749af..fc18ce708edceb521650c90f9e52342ecadc22bb 100644 (file)
@@ -1,7 +1,7 @@
 ; This test checks to make sure that constant exprs fold in some simple 
 ; situations
 
-; RUN: llvm-as < %s | llvm-dis | not grep {(}
+; RUN: llvm-as < %s | llvm-dis | not grep "("
 
 @A = global i64 0
 
index 352672274d20ad1a39b6ddcc292a574211dd22cf..7342f69631e684bc60925d12f09ef3734aa1ca08 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm | grep {swi 107}
+; RUN: llc < %s -march=arm | grep "swi 107"
 
 define i32 @_swilseek(i32) nounwind {
 entry:
index 31c500756c4ed5cf4970d4b520ed4631004b1ea8..d668334f8d6af3e62de13e36ac537a66a7311803 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -mtriple=arm-linux-gnueabi -o %t
-; RUN: grep { = } %t   | count 5
+; RUN: grep " = " %t   | count 5
 ; RUN: grep globl %t | count 4
 ; RUN: grep weak %t  | count 1
 
index 1d011be93c3c09b1b299cb4b53c9895fe8c4cb23..62b9e4380b2a730a686a7f2c8a6a9eea57dea9f9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm | grep {bl.\*__ltdf} | count 1
+; RUN: llc < %s -march=arm | grep "bl.*__ltdf" | count 1
 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-darwin8"
 
index 8130019cbfd952a52d575ccc0dadc7b949d30357..0c8d38748909b06a4edb7cda3b256599762c561b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm | grep lsl | grep -F {lsl #2\]}
+; RUN: llc < %s -march=arm | grep lsl | grep -F "lsl #2]"
 ; Should use scaled addressing mode.
 
 define void @sintzero(i32* %a) nounwind {
index e56e3f253e63a869554f28eeaec49c5781c5a4ec..d8b3f0e767b58e2cee5644dbb65df60029dbf8ec 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=arm | \
-; RUN:   grep {str.*\\!} | count 2
+; RUN:   grep "str.*\!" | count 2
 
 define void @test1(i32* %X, i32* %A, i32** %dest) {
         %B = load i32* %A               ; <i32> [#uses=1]
index 3143387ead65762a060bd5908db90f7910702c0c..c403fa5c4a2a5527f540b693f17237d36ec39dde 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \
-; RUN:     grep {__aeabi_read_tp}
+; RUN:     grep "__aeabi_read_tp"
 
 define i8* @test() {
 entry:
index 1087094e5798abf97dfdaef318fde3a3aa078d72..ec4278ce72f6b9abac69756398c9f449411920be 100644 (file)
@@ -1,9 +1,9 @@
 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \
-; RUN:     grep {i(tpoff)}
+; RUN:     grep "i(tpoff)"
 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \
-; RUN:     grep {__aeabi_read_tp}
+; RUN:     grep "__aeabi_read_tp"
 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi \
-; RUN:     -relocation-model=pic | grep {__tls_get_addr}
+; RUN:     -relocation-model=pic | grep "__tls_get_addr"
 
 
 @i = thread_local global i32 15                ; <i32*> [#uses=2]
index df7a4ca02db8e4934527e1caa05a821398d712cd..e0e944f70c5d689e61739ab7a29fe6ae364de450 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \
-; RUN:     grep {tbss}
+; RUN:     grep "tbss"
 
 %struct.anon = type { i32, i32 }
 @teste = internal thread_local global %struct.anon zeroinitializer             ; <%struct.anon*> [#uses=1]
index f4aad44ed650bb1e778b6f4202d0d386890510f6..1ccc356dcf5ac5f6f635e0e734d160380b8068e8 100644 (file)
@@ -1,20 +1,20 @@
 ; RUN: llc < %s -march=cellspu > %t1.s
-; RUN: grep {shlh      }  %t1.s | count 10
-; RUN: grep {shlhi     }  %t1.s | count 3
-; RUN: grep {shl       }  %t1.s | count 10
-; RUN: grep {shli      }  %t1.s | count 3
-; RUN: grep {xshw      }  %t1.s | count 5
-; RUN: grep {and       }  %t1.s | count 15
-; RUN: grep {andi      }  %t1.s | count 4
-; RUN: grep {rotmi     }  %t1.s | count 4
-; RUN: grep {rotqmbyi  }  %t1.s | count 1
-; RUN: grep {rotqmbii  }  %t1.s | count 2
-; RUN: grep {rotqmby   }  %t1.s | count 1
-; RUN: grep {rotqmbi   }  %t1.s | count 2
-; RUN: grep {rotqbyi   }  %t1.s | count 1
-; RUN: grep {rotqbii   }  %t1.s | count 2
-; RUN: grep {rotqbybi  }  %t1.s | count 1
-; RUN: grep {sfi       }  %t1.s | count 6
+; RUN: grep "shlh      "  %t1.s | count 10
+; RUN: grep "shlhi     "  %t1.s | count 3
+; RUN: grep "shl       "  %t1.s | count 10
+; RUN: grep "shli      "  %t1.s | count 3
+; RUN: grep "xshw      "  %t1.s | count 5
+; RUN: grep "and       "  %t1.s | count 15
+; RUN: grep "andi      "  %t1.s | count 4
+; RUN: grep "rotmi     "  %t1.s | count 4
+; RUN: grep "rotqmbyi  "  %t1.s | count 1
+; RUN: grep "rotqmbii  "  %t1.s | count 2
+; RUN: grep "rotqmby   "  %t1.s | count 1
+; RUN: grep "rotqmbi   "  %t1.s | count 2
+; RUN: grep "rotqbyi   "  %t1.s | count 1
+; RUN: grep "rotqbii   "  %t1.s | count 2
+; RUN: grep "rotqbybi  "  %t1.s | count 1
+; RUN: grep "sfi       "  %t1.s | count 6
 ; RUN: cat %t1.s | FileCheck %s
 
 target datalayout = "E-p:32:32:128-f64:64:128-f32:32:128-i64:32:128-i32:32:128-i16:16:128-i8:8:128-i1:8:128-a0:0:128-v128:128:128-s0:128:128"
index 6ca5b0892304f7fec76fa9e540059f4f016feda9..43f8776a3d46597c0bce46600e35aca9af1262d9 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llc < %s -march=cellspu > %t1.s
-; RUN: grep {stqd.*0(\$3)}      %t1.s | count 4
-; RUN: grep {stqd.*16(\$3)}     %t1.s | count 4
+; RUN: grep 'stqd.*0($3)'       %t1.s | count 4
+; RUN: grep 'stqd.*16($3)'      %t1.s | count 4
 ; RUN: grep 16256               %t1.s | count 2
 ; RUN: grep 16384               %t1.s | count 1
 ; RUN: grep 771                 %t1.s | count 4
@@ -8,7 +8,7 @@
 ; RUN: grep 1799                %t1.s | count 2
 ; RUN: grep 1543                %t1.s | count 5
 ; RUN: grep 1029                %t1.s | count 3
-; RUN: grep {shli.*, 4}         %t1.s | count 4
+; RUN: grep 'shli.*, 4'         %t1.s | count 4
 ; RUN: grep stqx                %t1.s | count 4
 ; RUN: grep ilhu                %t1.s | count 11
 ; RUN: grep iohl                %t1.s | count 8
index d16185238af097cdea3b6877cb1f232f5f914225..e4c8fb49a32cda932ff363849e3a4de162769811 100644 (file)
@@ -1,19 +1,19 @@
 ; RUN: llc < %s -march=cellspu > %t1.s
 ; RUN: grep shufb   %t1.s | count 19
-; RUN: grep {ilhu.*1799}  %t1.s | count 1
-; RUN: grep {ilhu.*771}  %t1.s | count 2
-; RUN: grep {ilhu.*1543}  %t1.s | count 1
-; RUN: grep {ilhu.*1029}  %t1.s | count 1
-; RUN: grep {ilhu.*515}  %t1.s | count 1
-; RUN: grep {ilhu.*3855}  %t1.s | count 1
-; RUN: grep {ilhu.*3599}  %t1.s | count 1
-; RUN: grep {ilhu.*3085}  %t1.s | count 1
-; RUN: grep {iohl.*3855}  %t1.s | count 1
-; RUN: grep {iohl.*3599}  %t1.s | count 2
-; RUN: grep {iohl.*1543}  %t1.s | count 2
-; RUN: grep {iohl.*771}  %t1.s | count 2
-; RUN: grep {iohl.*515}  %t1.s | count 1
-; RUN: grep {iohl.*1799}  %t1.s | count 1
+; RUN: grep "ilhu.*1799"  %t1.s | count 1
+; RUN: grep "ilhu.*771"  %t1.s | count 2
+; RUN: grep "ilhu.*1543"  %t1.s | count 1
+; RUN: grep "ilhu.*1029"  %t1.s | count 1
+; RUN: grep "ilhu.*515"  %t1.s | count 1
+; RUN: grep "ilhu.*3855"  %t1.s | count 1
+; RUN: grep "ilhu.*3599"  %t1.s | count 1
+; RUN: grep "ilhu.*3085"  %t1.s | count 1
+; RUN: grep "iohl.*3855"  %t1.s | count 1
+; RUN: grep "iohl.*3599"  %t1.s | count 2
+; RUN: grep "iohl.*1543"  %t1.s | count 2
+; RUN: grep "iohl.*771"  %t1.s | count 2
+; RUN: grep "iohl.*515"  %t1.s | count 1
+; RUN: grep "iohl.*1799"  %t1.s | count 1
 ; RUN: grep lqa  %t1.s | count 1
 ; RUN: grep cbd  %t1.s | count 4
 ; RUN: grep chd  %t1.s | count 3
index 5d1df468a66d4f3efbe43546977dd587191d0da3..43736601fe272937e65805aca744831caf01e722 100644 (file)
@@ -1,7 +1,7 @@
 ; This function should have exactly one call to fixdfdi, no more!
 
 ; RUN: llc < %s -march=ppc32 -mattr=-64bit | \
-; RUN:    grep {bl .*fixdfdi} | count 1
+; RUN:    grep "bl .*fixdfdi" | count 1
 
 define double @test2(double %tmp.7705) {
         %mem_tmp.2.0.in = fptosi double %tmp.7705 to i64                ; <i64> [#uses=1]
index 969772ee2bee9f63b66e77ea14e97bff48b41831..7e845382a8e8cc7224c5a63c128f663237f047b9 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
-; RUN:   grep {vspltish v.*, 10}
+; RUN:   grep "vspltish v.*, 10"
 
 define void @test(<8 x i16>* %P) {
         %tmp = load <8 x i16>* %P               ; <<8 x i16>> [#uses=1]
index 86fd9475029df2eb172aff4f8ae8917c96910098..73736c57fea6002d26b8d434f374024deb564ca1 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | grep {foo r3, r4}
-; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | grep {bari r3, 47}
+; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | grep "foo r3, r4"
+; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | grep "bari r3, 47"
 
 ; PR1351
 
index 72e93a9cced13472c6783ae45177471cc43934af..b85792c6f4f61a5f49efb2028fe55ad82739d291 100644 (file)
@@ -1,7 +1,7 @@
 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"
 target triple = "powerpc-apple-darwin8.8.0"
 
-; RUN: llc < %s -march=ppc32 | grep {rlwinm r3, r3, 23, 30, 30}
+; RUN: llc < %s -march=ppc32 | grep "rlwinm r3, r3, 23, 30, 30"
 ; PR1473
 
 define zeroext i8 @foo(i16 zeroext  %a)   {
index c2e1d6bddc5db59a595e7e7ef58b50a035866f2a..7b1c464f9e7d519ce9a91bbc7d017926625fbf36 100644 (file)
@@ -1,35 +1,35 @@
 ; RUN: llc < %s -march=ppc32 | \
-; RUN:   not grep {stw r31, 20(r1)}
+; RUN:   not grep "stw r31, 20(r1)"
 ; RUN: llc < %s -march=ppc32 | \
-; RUN:   not grep {stwu r1, -.*(r1)}
+; RUN:   not grep "stwu r1, -.*(r1)"
 ; RUN: llc < %s -march=ppc32 | \
-; RUN:   not grep {addi r1, r1, }
+; RUN:   not grep "addi r1, r1, "
 ; RUN: llc < %s -march=ppc32 | \
-; RUN:   not grep {lwz r31, 20(r1)}
+; RUN:   not grep "lwz r31, 20(r1)"
 ; RUN: llc < %s -march=ppc32 -disable-fp-elim | \
-; RUN:   not grep {stw r31, 20(r1)}
+; RUN:   not grep "stw r31, 20(r1)"
 ; RUN: llc < %s -march=ppc32 -disable-fp-elim | \
-; RUN:   not grep {stwu r1, -.*(r1)}
+; RUN:   not grep "stwu r1, -.*(r1)"
 ; RUN: llc < %s -march=ppc32 -disable-fp-elim | \
-; RUN:   not grep {addi r1, r1, }
+; RUN:   not grep "addi r1, r1, "
 ; RUN: llc < %s -march=ppc32 -disable-fp-elim | \
-; RUN:   not grep {lwz r31, 20(r1)}
+; RUN:   not grep "lwz r31, 20(r1)"
 ; RUN: llc < %s -march=ppc64 | \
-; RUN:   not grep {std r31, 40(r1)}
+; RUN:   not grep "std r31, 40(r1)"
 ; RUN: llc < %s -march=ppc64 | \
-; RUN:   not grep {stdu r1, -.*(r1)}
+; RUN:   not grep "stdu r1, -.*(r1)"
 ; RUN: llc < %s -march=ppc64 | \
-; RUN:   not grep {addi r1, r1, }
+; RUN:   not grep "addi r1, r1, "
 ; RUN: llc < %s -march=ppc64 | \
-; RUN:   not grep {ld r31, 40(r1)}
+; RUN:   not grep "ld r31, 40(r1)"
 ; RUN: llc < %s -march=ppc64 -disable-fp-elim | \
-; RUN:   not grep {stw r31, 40(r1)}
+; RUN:   not grep "stw r31, 40(r1)"
 ; RUN: llc < %s -march=ppc64 -disable-fp-elim | \
-; RUN:   not grep {stdu r1, -.*(r1)}
+; RUN:   not grep "stdu r1, -.*(r1)"
 ; RUN: llc < %s -march=ppc64 -disable-fp-elim | \
-; RUN:   not grep {addi r1, r1, }
+; RUN:   not grep "addi r1, r1, "
 ; RUN: llc < %s -march=ppc64 -disable-fp-elim | \
-; RUN:   not grep {ld r31, 40(r1)}
+; RUN:   not grep "ld r31, 40(r1)"
 
 define i32* @f1() {
         %tmp = alloca i32, i32 2                ; <i32*> [#uses=1]
index ecd5ecd2eca1421ac483ef2b428ab4bb990e3940..0f6bd1021f800758be9b54afb5180d649f686bfa 100644 (file)
@@ -1,26 +1,26 @@
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -o %t1
-; RUN: not grep {stw r31, -4(r1)} %t1
-; RUN: grep {stwu r1, -16448(r1)} %t1
-; RUN: grep {addi r1, r1, 16448} %t1
+; RUN: not grep "stw r31, -4(r1)" %t1
+; RUN: grep "stwu r1, -16448(r1)" %t1
+; RUN: grep "addi r1, r1, 16448" %t1
 ; RUN: llc < %s -march=ppc32 | \
-; RUN: not grep {lwz r31, -4(r1)}
+; RUN: not grep "lwz r31, -4(r1)"
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim \
 ; RUN:   -o %t2
-; RUN: grep {stw r31, -4(r1)} %t2
-; RUN: grep {stwu r1, -16448(r1)} %t2
-; RUN: grep {addi r1, r1, 16448} %t2
-; RUN: grep {lwz r31, -4(r1)} %t2
+; RUN: grep "stw r31, -4(r1)" %t2
+; RUN: grep "stwu r1, -16448(r1)" %t2
+; RUN: grep "addi r1, r1, 16448" %t2
+; RUN: grep "lwz r31, -4(r1)" %t2
 ; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin8 -o %t3
-; RUN: not grep {std r31, -8(r1)} %t3
-; RUN: grep {stdu r1, -16496(r1)} %t3
-; RUN: grep {addi r1, r1, 16496} %t3
-; RUN: not grep {ld r31, -8(r1)} %t3
+; RUN: not grep "std r31, -8(r1)" %t3
+; RUN: grep "stdu r1, -16496(r1)" %t3
+; RUN: grep "addi r1, r1, 16496" %t3
+; RUN: not grep "ld r31, -8(r1)" %t3
 ; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim \
 ; RUN:   -o %t4
-; RUN: grep {std r31, -8(r1)} %t4
-; RUN: grep {stdu r1, -16512(r1)} %t4
-; RUN: grep {addi r1, r1, 16512} %t4
-; RUN: grep {ld r31, -8(r1)} %t4
+; RUN: grep "std r31, -8(r1)" %t4
+; RUN: grep "stdu r1, -16512(r1)" %t4
+; RUN: grep "addi r1, r1, 16512" %t4
+; RUN: grep "ld r31, -8(r1)" %t4
 
 define i32* @f1() {
         %tmp = alloca i32, i32 4095             ; <i32*> [#uses=1]
index 7b0d69cb3bea69dcee1bbebaa8d833df641cea74..6f985c819fb676d1cb60cefe76097ec12f034569 100644 (file)
@@ -1,9 +1,9 @@
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin | \
-; RUN:   grep {stw r4, 32751}
+; RUN:   grep "stw r4, 32751"
 ; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin | \
-; RUN:   grep {stw r4, 32751}
+; RUN:   grep "stw r4, 32751"
 ; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin | \
-; RUN:   grep {std r4, 9024}
+; RUN:   grep "std r4, 9024"
 
 define void @test() nounwind {
        store i32 0, i32* inttoptr (i64 48725999 to i32*)
index 64a45e50c0a94bca9d03df7b02330e6a311e8329..6fd484b40b6ebe6cff00f821643b39d5cec104fd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=ppc32 | not grep {ori\\|lis}
+; RUN: llc < %s -march=ppc32 | not grep "ori\|lis"
 
 ; andi. r3, r3, 32769  
 define i32 @test(i32 %X) {
index 009f46811e78ce8e1ab78345a6be3d35d46d4cba..898ad7cb857d44b0f70983176b137755cd40a388 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
-; RUN:   grep {addc 4, 4, 6}
+; RUN:   grep "addc 4, 4, 6"
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
-; RUN:   grep {adde 3, 3, 5}
+; RUN:   grep "adde 3, 3, 5"
 
 define i64 @foo(i64 %x, i64 %y) {
   %z = add i64 %x, %y
index fe85404cb94f2d5603cbf08eaadbae9af5ca289d..760833ce20ff02e885f40d9ca83ea20592a9a678 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
-; RUN:   grep {addic 4, 4, 1}
+; RUN:   grep "addic 4, 4, 1"
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
-; RUN:   grep {addze 3, 3}
+; RUN:   grep "addze 3, 3"
 
 declare i64 @foo()
 
index cc02e406aa61bb69c8b55b137ac1ee637fddd5e4..dda1538f1cdfc665d77b9cb3bc310463ba1388ba 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=ppc32 | \
-; RUN:   grep {b LBB.*} | count 4
+; RUN:   grep "b LBB.*" | count 4
 
 target datalayout = "E-p:32:32"
 target triple = "powerpc-apple-darwin8.7.0"
index 29bcb2081188dada8339c1c0d422e464deed88a3..dcdda572146488843e8356881fa249e38e1d5bf9 100644 (file)
@@ -1,11 +1,11 @@
 ; Test various forms of calls.
 
 ; RUN: llc < %s -march=ppc32 | \
-; RUN:   grep {bl } | count 1
+; RUN:   grep "bl " | count 1
 ; RUN: llc < %s -march=ppc32 | \
-; RUN:   grep {bctrl} | count 1
+; RUN:   grep "bctrl" | count 1
 ; RUN: llc < %s -march=ppc32 | \
-; RUN:   grep {bla } | count 1
+; RUN:   grep "bla " | count 1
 
 declare void @foo()
 
index 92d1dbe902a10e209bc21f48ba0dfa3aae8bfe6a..94c5c0290f580c5a39565d998b4807969f63c425 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
-; RUN:   grep {cmpwi cr0, r3, -1}
+; RUN:   grep "cmpwi cr0, r3, -1"
 
 define i32 @test(i32 %x) nounwind {
         %c = icmp eq i32 %x, -1
index 8901e02d3b809b32d4ca64391c4b10950a15f626..9efca916d69c92969fe28b24e3b28f8a12011ae7 100644 (file)
@@ -4,7 +4,7 @@
 ; RUN: llc < %s -march=ppc32 | \
 ; RUN:   grep ori | count 3
 ; RUN: llc < %s -march=ppc32 | \
-; RUN:   grep {li } | count 4
+; RUN:   grep "li " | count 4
 
 define i32 @f1() {
 entry:
index af233697403d585e17665a1f1897c3af48b428a0..56f7782138a671a80b2fd44c79c26b7e325e5cec 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s | grep {foo bar":}
+; RUN: llc < %s | grep 'foo bar":'
 
 target datalayout = "E-p:32:32"
 target triple = "powerpc-apple-darwin8.2.0"
index 6ef740f835cbca158b14ae8b14ee0581523890ef..156e00b4e5772acef23ca1191fc37f971fb9a738 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin | grep {fabs f1, f1}
+; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin | grep "fabs f1, f1"
 
 define double @fabs(double %f) {
 entry:
index 48d9eb93c31e9f25237df94d35ceca207f61263a..27496f7937e6b60e7e38e4e59a14bcd8634de1a8 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=ppc32 -fp-contract=fast | \
-; RUN:   egrep {fn?madd|fn?msub} | count 8
+; RUN:   egrep "fn?madd|fn?msub" | count 8
 
 define double @test_FMADD1(double %A, double %B, double %C) {
        %D = fmul double %A, %B         ; <double> [#uses=1]
index 74a8725eb12e30a4e3ee2c3ad544b2d6e189bb1f..bf8c4a22c95f87e0c3efc98d2333fdc7069d7dd5 100644 (file)
@@ -2,13 +2,13 @@
 ; otherwise.
 
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=+fsqrt | \
-; RUN:   grep {fsqrt f1, f1}
+; RUN:   grep "fsqrt f1, f1"
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
-; RUN:   grep {fsqrt f1, f1}
+; RUN:   grep "fsqrt f1, f1"
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-fsqrt | \
-; RUN:   not grep {fsqrt f1, f1}
+; RUN:   not grep "fsqrt f1, f1"
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g4 | \
-; RUN:   not grep {fsqrt f1, f1}
+; RUN:   not grep "fsqrt f1, f1"
 
 declare double @llvm.sqrt.f64(double)
 
index a43f09c7d5618c4ced9b23b6faa1e317f56ee438..595e3556531edbe98b63d5d91920d8c1fc362b1b 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=ppc32 -stats |& \
-; RUN:   grep {4 .*Number of machine instrs printed}
+; RUN:   grep "4 .*Number of machine instrs printed"
 
 ;; Integer absolute value, should produce something as good as:
 ;;      srawi r2, r3, 31
index 4161e3438a4bae1db0197744db2ac405c43582fb..78cdf4a4d9027047e83b78ffd4e866f621f2fda5 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
-; RUN:   grep {srwi r3, r3, 31}
+; RUN:   grep "srwi r3, r3, 31"
 
 define i32 @test1(i32 %X) {
 entry:
index 34594132530dbc6bcfdda772720b3f2273c0ea19..6320e2812c1ba6f6f6c1bf0424adb4019b420aec 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s | grep {no_dead_strip.*_X}
+; RUN: llc < %s | grep "no_dead_strip.*_X"
 
 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"
 target triple = "powerpc-apple-darwin8.8.0"
index cf16b4c26f62e6419179decbae830ceaa0708804..c931dfe93575321c19e0dd2e6f8a03d483589680 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llc < %s -march=ppc32 | grep mflr
 ; RUN: llc < %s -march=ppc32 | grep lwz
-; RUN: llc < %s -march=ppc64 | grep {ld r., 16(r1)}
+; RUN: llc < %s -march=ppc64 | grep "ld r., 16(r1)"
 
 target triple = "powerpc-apple-darwin8"
 
index 05d37bf1625fbee48940d59319654607b01f5594..afeba49de943f1a449190bba248ea2d8df3c12f5 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=ppc32 -stats |& \
-; RUN:   grep {Number of machine instrs printed} | grep 12
+; RUN:   grep "Number of machine instrs printed" | grep 12
 
 define i16 @Trans16Bit(i32 %srcA, i32 %srcB, i32 %alpha) {
        %tmp1 = shl i32 %srcA, 15               ; <i32> [#uses=1]
index 688b29aa124f4bc21db48ce970210207396ea73e..731958374ee207c0cabf70038f4995e97370607b 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
-; RUN:   grep {srwi r., r., 5}
+; RUN:   grep "srwi r., r., 5"
 
 define i32 @eq0(i32 %a) {
         %tmp.1 = icmp eq i32 %a, 0              ; <i1> [#uses=1]
index b4767b0a291bae529a992092f977901042cfecd7..19ca0985eef1286cd858352dc15bff4c66c05a45 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=ppc32 | not grep {extsh\\|rlwinm}
+; RUN: llc < %s -march=ppc32 | not grep "extsh\|rlwinm"
 
 declare signext i16 @foo()  
 
index 20203612502654624b8d75a6142eae681bca047c..810630f6978f0f7ff27c406c87b31232c4bd5c01 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -march=ppc32 < %s -o - | grep {__stack_chk_guard}
-; RUN: llc -march=ppc32 < %s -o - | grep {__stack_chk_fail}
+; RUN: llc -march=ppc32 < %s -o - | grep "__stack_chk_guard"
+; RUN: llc -march=ppc32 < %s -o - | grep "__stack_chk_fail"
 
 @"\01LC" = internal constant [11 x i8] c"buf == %s\0A\00"              ; <[11 x i8]*> [#uses=1]
 
index 91b201146b6d89fdef10ab99d5b9f9d777994375..3ea46f50e0c07a5e79e4d2511feb04a26f732283 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=ppc32 | grep {__trampoline_setup}
+; RUN: llc < %s -march=ppc32 | grep "__trampoline_setup"
 
 module asm "\09.lazy_reference .objc_class_name_NSImageRep"
 module asm "\09.objc_class_name_NSBitmapImageRep=0"
index f73f93d919af1bf19c0553de0abe6a62a3b50e45..18e11baf444c1f5d1c570641fe5dfc0f40c8b351 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=thumbv6-apple-darwin10 | grep rsbs | grep {#0}
+; RUN: llc < %s -mtriple=thumbv6-apple-darwin10 | grep rsbs | grep "#0"
 
        %struct.FILE = type { i8*, i32, i32, i16, i16, %struct.__sbuf, i32, i8*, i32 (i8*)*, i32 (i8*, i8*, i32)*, i64 (i8*, i64, i32)*, i32 (i8*, i8*, i32)*, %struct.__sbuf, %struct.__sFILEX*, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64 }
        %struct.__sFILEX = type opaque
index d03b5b2e3beff86d9b102a320147ef812db470aa..d27db0d6f252d7ac2b68eccd6fb38ef208ffd5fe 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=thumb -stats |& \
-; RUN:   grep {4 .*Number of machine instrs printed}
+; RUN:   grep "4 .*Number of machine instrs printed"
 
 ;; Integer absolute value, should produce something as good as:
 ;; Thumb:
index 9cc3f4a2eda5e83486168419dcbbc3d3d71a831d..601c0b560800e705c09d45c46ffc848a30e203fa 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | \
-; RUN:   grep {ldr.*\\!} | count 3
+; RUN:   grep "ldr.*\!" | count 3
 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | \
-; RUN:   grep {ldrsb.*\\!} | count 1
+; RUN:   grep "ldrsb.*\!" | count 1
 
 define i32* @test1(i32* %X, i32* %dest) {
         %Y = getelementptr i32* %X, i32 4               ; <i32*> [#uses=2]
index 1e555571c054265340cc118206f25a9c551fbaf7..d91e3b32f9b7abb62ffe2f48eafbb37152160ac7 100644 (file)
@@ -1,9 +1,9 @@
 ; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi | \
-; RUN:     grep {i(tpoff)}
+; RUN:     grep "i(tpoff)"
 ; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi | \
-; RUN:     grep {__aeabi_read_tp}
+; RUN:     grep "__aeabi_read_tp"
 ; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi \
-; RUN:     -relocation-model=pic | grep {__tls_get_addr}
+; RUN:     -relocation-model=pic | grep "__tls_get_addr"
 
 
 @i = thread_local global i32 15                ; <i32*> [#uses=2]
index fea2b54d763053124fa845385d8d908e266e9065..dde210b776af79220537c933af300a8c1c0fc727 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc < %s -march=x86 | grep {(%esp}
-; RUN: llc < %s -march=x86 | grep {pushl       %ebp} | count 1
-; RUN: llc < %s -march=x86 | grep {popl        %ebp} | count 1
+; RUN: llc < %s -march=x86 | grep "(%esp"
+; RUN: llc < %s -march=x86 | grep "pushl       %ebp" | count 1
+; RUN: llc < %s -march=x86 | grep "popl        %ebp" | count 1
 
 declare i8* @llvm.returnaddress(i32)
 
index 8783a11c060b12752b1554c657c6edd0f4df4926..fb1262a372950960ff4c090a3e12a38a2af2f41c 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llc < %s -march=x86 -mtriple=i686-apple-darwin8 -relocation-model=static > %t
-; RUN: grep {movl      _last} %t | count 1
-; RUN: grep {cmpl.*_last} %t | count 1
+; RUN: grep "movl      _last" %t | count 1
+; RUN: grep "cmpl.*_last" %t | count 1
 
 @block = external global i8*            ; <i8**> [#uses=1]
 @last = external global i32             ; <i32*> [#uses=3]
index d47840e866d8408e0d3d50ef3935c38097f897cd..77228c5d1519b1e4d75f9f66f5d163e3e48cc46e 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=x86 -mtriple=i386-linux-gnu -mcpu=penryn -mattr=+sse2 -stats -realign-stack=0 |&\
-; RUN:     grep {asm-printer} | grep 35
+; RUN:     grep "asm-printer" | grep 35
 
 target datalayout = "e-p:32:32"
 define void @foo(i32* %mc, i32* %bp, i32* %ms, i32* %xmb, i32* %mpp, i32* %tpmm, i32* %ip, i32* %tpim, i32* %dpp, i32* %tpdm, i32* %bpi, i32 %M) nounwind {
index 3159cec8553e416a47d3153ddd67f93bd073e344..c5c74d104863b4d9c7ffd0d03a095a12ad9f406e 100644 (file)
@@ -1,7 +1,7 @@
 ; PR850
 ; RUN: llc < %s -march=x86 -x86-asm-syntax=att > %t
-; RUN: grep {movl 4(%eax),%ebp} %t
-; RUN: grep {movl 0(%eax), %ebx} %t
+; RUN: grep "movl 4(%eax),%ebp" %t
+; RUN: grep "movl 0(%eax), %ebx" %t
 
 define i32 @foo(i32 %__s.i.i, i32 %tmp5.i.i, i32 %tmp6.i.i, i32 %tmp7.i.i, i32 %tmp8.i.i) {
        %tmp9.i.i = call i32 asm sideeffect "push %ebp\0Apush %ebx\0Amovl 4($2),%ebp\0Amovl 0($2), %ebx\0Amovl $1,%eax\0Aint  $$0x80\0Apop  %ebx\0Apop %ebp", "={ax},i,0,{cx},{dx},{si},{di}"( i32 192, i32 %__s.i.i, i32 %tmp5.i.i, i32 %tmp6.i.i, i32 %tmp7.i.i, i32 %tmp8.i.i )              ; <i32> [#uses=1]
index affb7afb1c519f7783df5643fa8aed264a5b3e72..adc825c039b19bbac18816e1aee510fdccba21db 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llc < %s -march=x86-64 > %t
 ; RUN: grep movb %t | count 2
-; RUN: grep {movzb\[wl\]} %t
+; RUN: grep "movzb[wl]" %t
 
 
 define void @handle_vector_size_attribute() nounwind {
index a2288986362e5dc34924895fdb88326b8671b9c0..04d4b8ee57eb1612de702f5a321a3f6664112d56 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=x86-64 > %t
-; RUN: not grep {,%rsp)} %t
+; RUN: not grep ",%rsp)" %t
 ; PR1103
 
 target datalayout = "e-p:64:64"
index 3312e01b3d8ef3c8acd0b3cefb007999ab5b40c0..3b2e443d7d4ef48d82dfd324a76ec4a48443503e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 | grep {mov %gs:72, %eax}
+; RUN: llc < %s -march=x86 | grep "mov %gs:72, %eax"
 target datalayout = "e-p:32:32"
 target triple = "i686-apple-darwin9"
 
index c1b1ad1c730d86f7b2ee6961172c5f2fa6109965..18b06dc0857c699e7f34971431533ba3c9839bb4 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -mcpu=yonah -march=x86 | \
-; RUN:   grep {cmpltsd %xmm0, %xmm0}
+; RUN:   grep "cmpltsd %xmm0, %xmm0"
 target datalayout = "e-p:32:32"
 target triple = "i686-apple-darwin9"
 
index 77291f063b79f6e70af1362e74eb83bc9413d070..aa0ee5d0746290747be76fd6148ce89b4849b6cc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 | grep {movsbl}
+; RUN: llc < %s -march=x86 | grep "movsbl"
 
 @X = global i32 0               ; <i32*> [#uses=1]
 
index 228a915e3e5a088673fecfe8998a36bcfe918a05..56a109acfc79c61b857c315abb3e11e1a3d062d4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -relocation-model=static | grep {foo str$}
+; RUN: llc < %s -relocation-model=static | grep "foo str$"
 ; PR1761
 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"
 target triple = "x86_64-pc-linux"
index 2e95082afa9c1cf755674d7f567cd9cda395bac8..99df20da2510dcd606b50c805fb665e0faaf3499 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -mcpu=generic | grep {(%esp)} | count 2
+; RUN: llc < %s -march=x86 -mcpu=generic | grep "(%esp)" | count 2
 ; PR1872
 
        %struct.c34007g__designated___XUB = type { i32, i32, i32, i32 }
index bdacf507112892807c1a714699e39b9b086b63d4..9ff815a80c5be3c7362aff414ed15e095cb6ac24 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -mcpu=yonah -stats |& grep {Number of block tails merged} | grep 16
+; RUN: llc < %s -march=x86 -mcpu=yonah -stats |& grep "Number of block tails merged" | grep 16
 ; PR1909
 
 @.str = internal constant [48 x i8] c"transformed bounds: (%.2f, %.2f), (%.2f, %.2f)\0A\00"            ; <[48 x i8]*> [#uses=1]
index 859041eb81ff1b3eec22159f91462636a3539a3d..f244793e7a95d0979c93e973e66f7f95da21ab9e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=i386-apple-darwin | grep xorl | grep {%e}
+; RUN: llc < %s -mtriple=i386-apple-darwin | grep xorl | grep "%e"
 ; Make sure xorl operands are 32-bit registers.
 
        %struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8* }
index 99cb8569b3f4299f038de860ed6f853823533bd6..bdac8fd48422c327f52062c00e684a69784dc48c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -march=x86-64 < %s -o - | grep {cmpl        \\$\[1\], %}
+; RUN: llc -march=x86-64 < %s -o - | grep "cmpl        \$[1], %"
 
 @.str = internal constant [4 x i8] c"%d\0A\00"
 
index 2edcaea80ce702fa57d7c180933b46490d22b571..0e95c9e34e1cd0bd165534152c5226b2fd682d6f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -relocation-model=static | grep {lea.*X.*esp} | count 2
+; RUN: llc < %s -march=x86 -relocation-model=static | grep "lea.*X.*esp" | count 2
 
 @X = external global [0 x i32]
 
index 3e425536d1b947b862382b48e23627f654df7ca8..b478f27a95b955825cd98e7e72c5841c5a4e56d2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 | grep {mov.*56}
+; RUN: llc < %s -march=x86 | grep "mov.*56"
 ; PR3449
 
 define void @test(<8 x double>* %P, i64* %Q) nounwind {
index 8ac2b4e05167dfb08cc260b9e812409e1c4140f9..a6e9b8f11f79c46b412a032544483c0c979886c0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86-64 -mattr=+sse3,+sse41 -mcpu=penryn -stats |& grep {8 machine-licm}
+; RUN: llc < %s -march=x86-64 -mattr=+sse3,+sse41 -mcpu=penryn -stats |& grep "8 machine-licm"
 ; RUN: llc < %s -march=x86-64 -mattr=+sse3,+sse41 -mcpu=penryn | FileCheck %s
 ; rdar://6627786
 ; rdar://7792037
index 5f5bf06a2fb88a0f4b1cf2d6d8580beba9304197..08bf9e3f9f36c43900ad8fdcc3be15d1f07de5da 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llc < %s -march=x86-64 -mtriple=x86_64-linux-gnu -regalloc=fast -optimize-regalloc=0 -relocation-model=pic > %t2
-; RUN: grep {leaq.*TLSGD} %t2
-; RUN: grep {__tls_get_addr} %t2
+; RUN: grep "leaq.*TLSGD" %t2
+; RUN: grep "__tls_get_addr" %t2
 ; PR4004
 
 @i = thread_local global i32 15
index a2fd2e4c51c953ee4170c470eef7013e70ef023d..a6ed74ba2ee9a01541d9e8601ae1d3152e59bd47 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s | grep {movl.*%ebx, 8(%esi)}
+; RUN: llc < %s | grep "movl.*%ebx, 8(%esi)"
 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.0"
 
index 3758fd8ce500ce5bb40799f4771c38e271e6b3e6..6193865ce18e6ce010df887b23c9fd7cd762d06f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=x86_64-appel-darwin -disable-cgp-branch-opts -stats |& grep {machine-sink}
+; RUN: llc < %s -mtriple=x86_64-appel-darwin -disable-cgp-branch-opts -stats |& grep "machine-sink"
 
 define fastcc void @t() nounwind ssp {
 entry:
index 49abd8a92e6486d2513c55726e1dea16dad5c144..15fbec52e243785be19f1a70111c71e7545fca05 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc %s -o - | grep {__TEXT,__const}
+; RUN: llc %s -o - | grep "__TEXT,__const"
 ; PR5929
 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-n8:16:32"
 target triple = "i386-apple-darwin10.0"
index 7715869ed99cfb012b99268e8ae33ba3d6409a16..eab02cc1f9d577a7dc790d90d6f2b4a99354de8a 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llc < %s -march=x86
-; RUN: llc < %s -mtriple=i386-apple-darwin10 | grep {array,16512,7}
-; RUN: llc < %s -mtriple=i386-apple-darwin9 | grep {array,16512,7}
+; RUN: llc < %s -mtriple=i386-apple-darwin10 | grep "array,16512,7"
+; RUN: llc < %s -mtriple=i386-apple-darwin9 | grep "array,16512,7"
 
 ; Darwin 9+ should get alignment on common symbols.
 @array = common global [4128 x i32] zeroinitializer, align 128
index cf774591d8be6610a5d608f05a6de01f43e6301e..c94261467c9dbe27fa4cac590180b8282c715520 100644 (file)
@@ -2,11 +2,11 @@
 ; Use a subtarget that has post-RA scheduling enabled because the anti-dependency
 ; breaker requires liveness information to be kept.
 ; RUN: llc < %s -march=x86-64 -mcpu=atom -post-RA-scheduler -pre-RA-sched=list-burr -break-anti-dependencies=none > %t
-; RUN:   grep {%xmm0} %t | count 14
-; RUN:   not grep {%xmm1} %t
+; RUN:   grep "%xmm0" %t | count 14
+; RUN:   not grep "%xmm1" %t
 ; RUN: llc < %s -march=x86-64 -mcpu=atom -post-RA-scheduler -break-anti-dependencies=critical > %t
-; RUN:   grep {%xmm0} %t | count 7
-; RUN:   grep {%xmm1} %t | count 7
+; RUN:   grep "%xmm0" %t | count 7
+; RUN:   grep "%xmm1" %t | count 7
 
 define void @goo(double* %r, double* %p, double* %q) nounwind {
 entry:
index 3857fb157905fbfe846f618c72a870e0ae874c41..38cda4d14040532caebe3f4290ab2f3b2191352c 100644 (file)
@@ -1,11 +1,11 @@
-; RUN: llc < %s -mtriple=i386-apple-darwin -relocation-model=static | grep {call.*12345678}
-; RUN: llc < %s -mtriple=i386-apple-darwin -relocation-model=pic | not grep {call.*12345678}
-; RUN: llc < %s -mtriple=i386-pc-linux -relocation-model=dynamic-no-pic | grep {call.*12345678}
+; RUN: llc < %s -mtriple=i386-apple-darwin -relocation-model=static | grep "call.*12345678"
+; RUN: llc < %s -mtriple=i386-apple-darwin -relocation-model=pic | not grep "call.*12345678"
+; RUN: llc < %s -mtriple=i386-pc-linux -relocation-model=dynamic-no-pic | grep "call.*12345678"
 
 ; Call to immediate is not safe on x86-64 unless we *know* that the
 ; call will be within 32-bits pcrel from the dest immediate.
 
-; RUN: llc < %s -march=x86-64 | grep {call.*\\*%rax}
+; RUN: llc < %s -march=x86-64 | grep "call.*\*%rax"
 
 ; PR3666
 ; PR3773
index a5848763c98d58bc80f6653ca5661464ad4c5969..4004379938790c56d5e2c5123b047b1ee773bd91 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s | grep {movl   %esp, %ebp}
+; RUN: llc < %s | grep "movl   %esp, %ebp"
 ; PR4572
 
 ; Don't coalesce with %esp if it would end up putting %esp in
index 0f16a64ccd798602374fb9a0627e00784dfab5e3..7ab10a58860fbd4aa6f763f6f553bde30cfff02b 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -mcpu=generic -march=x86 | not grep lea
-; RUN: llc < %s -mcpu=generic -march=x86 | grep {movl  %ebp}
+; RUN: llc < %s -mcpu=generic -march=x86 | grep "movl  %ebp"
 
 declare void @bar(<2 x i64>* %n)
 
index 14778f097ef536eac991c173f8138bf589fa38c0..9e1a3754d0f0731a32679de3b05b07e0e9eaa0d2 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llc < %s -march=x86 -mcpu=penryn > %t
 ; RUN: not grep movd %t
-; RUN: grep {movss     %xmm} %t | count 1
-; RUN: grep {extractps \\\$1, %xmm0, } %t | count 1
+; RUN: grep "movss     %xmm" %t | count 1
+; RUN: grep "extractps \$1, %xmm0, " %t | count 1
 ; PR2647
 
 external global float, align 16         ; <float*>:0 [#uses=2]
index e4982f0549546c8b9aa757a91a8fca273886bd27..14cb136f89de6c535d56b405be24eb5cece21840 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -mcpu=generic -march=x86 -x86-asm-syntax=intel | \
-; RUN:   grep {add     ESP, 8}
+; RUN:   grep "add     ESP, 8"
 
 target triple = "i686-pc-linux-gnu"
 
index 323c8533cec2fa8c14f59f25dda581630eb5683c..b3adb802a8c57172a7d8979e1dbc820e9779c0d7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -fast-isel | grep {LCPI0_0(%rip)}
+; RUN: llc < %s -fast-isel | grep "LCPI0_0(%rip)"
 ; Make sure fast isel uses rip-relative addressing when required.
 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"
 target triple = "x86_64-apple-darwin9.0"
index 34f8b382522fce2297a400127d94efb76606e68c..cb2464e746b17a6b40da1413570603884c83af21 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -fast-isel | grep {_kill@GOTPCREL(%rip)}
+; RUN: llc < %s -fast-isel | grep "_kill@GOTPCREL(%rip)"
 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"
 target triple = "x86_64-apple-darwin10.0"
 @f = global i8 (...)* @kill            ; <i8 (...)**> [#uses=1]
index 52b3e57b96bc5f41cd5dd2fe9d2279c0a9c88a47..f1204d677a55b64a76a77558a766571985e08cdf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -tailcallopt=false | grep {movl\[\[:space:\]\]*8(%esp), %eax} | count 2
+; RUN: llc < %s -tailcallopt=false | grep "movl[[:space:]]*8(%esp), %eax" | count 2
 ; PR3122
 ; rdar://6400815
 
index cafc61a41ff2946c37209f9548dc7f06f1bc7847..62d81003a62d7f10f9bce7bc9d6874d7aabea76a 100644 (file)
@@ -1,7 +1,7 @@
 ;; Test that this FP immediate is stored in the constant pool as a float.
 
 ; RUN: llc < %s -march=x86 -mattr=-sse2,-sse3 | \
-; RUN:   grep {.long.1123418112}
+; RUN:   grep ".long.1123418112"
 
 define double @D() {
         ret double 1.230000e+02
index 0145069b8cd639c3cef4af4d88c15c7113d8a4bd..a2cea5e57f648529cc684da1f129f4e22304e0ab 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \
-; RUN:   grep -i ST | not grep {fadd\\|fsub\\|fdiv\\|fmul}
+; RUN:   grep -i ST | not grep "fadd\|fsub\|fdiv\|fmul"
 
 ; Test that the load of the memory location is folded into the operation.
 
index ff9b1b0b6a5a8b2c55215cc1fc61bc0e5a138e2a..655ab2912787265f126cd66e0a7f4a18aa4eeba8 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llc < %s -march=x86 >%t
 
-; RUN: grep {addl      \\\$4,} %t | count 3
-; RUN: not grep {,%} %t
+; RUN: grep "addl      \$4," %t | count 3
+; RUN: not grep ",%" %t
 
 define void @foo(float* nocapture %A, float* nocapture %B, float* nocapture %C, i32 %N) nounwind {
 entry:
index 76ffd66524b94fbbfbeea7fc4cc0677ae531a3ec..968a9e88c0e973e7b5bc3a7f6ba224abe6fb1f0a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 | grep {movzbl      %\[abcd\]h,} | count 7
+; RUN: llc < %s -march=x86 | grep "movzbl      %[abcd]h," | count 7
 
 ; Use h-register extract and zero-extend.
 
index 98817f3fb59f5daceda57a907c5b73111b8056fb..a19fca555811af1ae4b8aab5d375c6955393da36 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86-64 | grep {movzbl   %\[abcd\]h,} | count 7
+; RUN: llc < %s -march=x86-64 | grep "movzbl   %[abcd]h," | count 7
 
 ; Use h-register extract and zero-extend.
 
index 402cdfe413b5771678049ea8980c8a395f1cf51e..903c4538aba736248e911b3100348f2fec6179c3 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llc < %s -mtriple=x86_64-linux > %t
-; RUN: grep {movzbl    %\[abcd\]h,} %t | count 8
-; RUN: grep {%\[abcd\]h} %t | not grep {%r\[\[:digit:\]\]*d}
+; RUN: grep "movzbl    %[abcd]h," %t | count 8
+; RUN: grep "%[abcd]h" %t | not grep "%r[[:digit:]]*d"
 
 ; LLVM creates virtual registers for values live across blocks
 ; based on the type of the value. Make sure that the extracts
index b8a129d96378358b0cde52b86997644fb9293a07..62a21f4c5aadc6bbf355a22071374035956f0065 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=nehalem | grep {mulpd    %xmm3, %xmm1}
-; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=nehalem | grep {mulpd    %xmm2, %xmm0}
-; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=nehalem | grep {addps    %xmm3, %xmm1}
-; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=nehalem | grep {addps    %xmm2, %xmm0}
+; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=nehalem | grep "mulpd    %xmm3, %xmm1"
+; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=nehalem | grep "mulpd    %xmm2, %xmm0"
+; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=nehalem | grep "addps    %xmm3, %xmm1"
+; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=nehalem | grep "addps    %xmm2, %xmm0"
 
 define <4 x double> @foo(<4 x double> %x, <4 x double> %z) {
   %y = fmul <4 x double> %x, %z
index 5e76b6c0580e9dfcc5219da2e5aeffba351f2c40..b069c463189912a7b54084b8e0ce273cdf1554c1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 | grep { 37}
+; RUN: llc < %s -march=x86 | grep " 37"
 ; rdar://7008959
 
 define void @bork() nounwind {
index 5ed0e00fd8736a6781d847f8d3e46e274db1928b..b162666362aa7c882cd5b49c00a110fa26719b2e 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=x86 > %t
-; RUN: grep {movb.7(%...)} %t
+; RUN: grep "movb.7(%...)" %t
 ; RUN: not grep leal %t
 
 define i8 @test(i32 *%P) nounwind {
index 8adf723aabc387362ebb9c0f3fed1ec0849274da..b1d1a20c8eb69dbef5ad590deb54914f17fd146b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 | grep {shrl.*31}
+; RUN: llc < %s -march=x86 | grep "shrl.*31"
 
 define i32 @test1(i32 %X) {
 entry:
index 9ad33e0297667991469264d81699b90af2612836..dece27b843006837e5266f4bcba29cc3fa8150ce 100644 (file)
@@ -1,5 +1,5 @@
 ; PR7054
-; RUN: not llc %s -o - |& grep {'_foo' label emitted multiple times to assembly}
+; RUN: not llc %s -o - |& grep "'_foo' label emitted multiple times to assembly"
 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-n8:16:32"
 target triple = "i386-apple-darwin10.0.0"
 
index 69303507d6e6cedd12b4d20ebf88587dc9bfd718..43f69b0c6e93c7e473b27343a2c06f31946d72ab 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \
-; RUN:   grep {lea     EAX, DWORD PTR \\\[... + 4\\*... - 5\\\]}
+; RUN:   grep "lea     EAX, DWORD PTR \[... + 4\*... - 5\]"
 ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \
 ; RUN:   not grep add
 
index d48a3318262c1fcd0cd9368fef0a09f95e4358d7..f958b6b2c069058d66c93b7b746e8e495f958b1d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86-64 | grep {xorps    %xmm0, %xmm0} | count 2
+; RUN: llc < %s -march=x86-64 | grep "xorps    %xmm0, %xmm0" | count 2
 
 define float @foo(<4 x float> %a) {
   %b = insertelement <4 x float> %a, float 0.0, i32 3
index ef02af2d7851134b7601eddb92bc522e29a72f00..d53108485d55a72302482cd98b1cd7986897395a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -stats |& grep {Number of blocks eliminated} | grep 6
+; RUN: llc < %s -march=x86 -stats |& grep "Number of blocks eliminated" | grep 6
 ; PR1296
 
 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 afd71143c458880d99b44700b29fbfef736783ab..f0e31f7f5fdc60faaca3fa92c143216548dfc188 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -mattr=+sse2 | grep {xorps.\*sp} | count 1
+; RUN: llc < %s -march=x86 -mattr=+sse2 | grep "xorps.*sp" | count 1
 ; PR2656
 
 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 1e20273194d589d3fd4707f1814170b6fad0f7a8..117300110b411803ef7f3f9001b8cb2222501e5e 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \
-; RUN:   grep {ro\[rl\]} | count 12
+; RUN:   grep "ro[rl]" | count 12
 
 define i32 @rotl32(i32 %A, i8 %Amt) {
        %shift.upgrd.1 = zext i8 %Amt to i32            ; <i32> [#uses=1]
index d38f9a88fcd6c893d86fc6f37d3b6dc49067816b..4f27e97fb390bc5b31045d602b4f7d85706145aa 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \
-; RUN:   grep {shld.*CL}
+; RUN:   grep "shld.*CL"
 ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \
-; RUN:   not grep {mov CL, BL}
+; RUN:   not grep "mov CL, BL"
 
 ; PR687
 
index 5adee7c76941aa6ad7d173565b374a0d7ed4ec3e..8d2b2907c5a76d748b3dc182ae7ac5e438d89aab 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \
-; RUN:   grep {sh\[lr\]d} | count 5
+; RUN:   grep "sh[lr]d" | count 5
 
 define i64 @test1(i64 %X, i8 %C) {
         %shift.upgrd.1 = zext i8 %C to i64              ; <i64> [#uses=1]
index 0827221875b1dd6f8fc4243bb912006b80fe4bd3..83e1eb5c39e77f4235cfae020963f2a84b0b977f 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc < %s -march=x86 | grep {movl        8(.esp), %eax}
-; RUN: llc < %s -march=x86 | grep {shrl        .eax}
-; RUN: llc < %s -march=x86 | grep {movswl      .ax, .eax}
+; RUN: llc < %s -march=x86 | grep "movl        8(.esp), %eax"
+; RUN: llc < %s -march=x86 | grep "shrl        .eax"
+; RUN: llc < %s -march=x86 | grep "movswl      .ax, .eax"
 
 define i32 @test1(i64 %a) nounwind {
         %tmp29 = lshr i64 %a, 24                ; <i64> [#uses=1]
index fe2a9c5d57a1e0f2e1395bd753297719d93148ae..c07511443bceb5fdae24015610b78ce17d18e511 100644 (file)
@@ -1,8 +1,8 @@
 ; RUN: llc -mtriple=i386-pc-linux-gnu < %s -o - | grep %gs:
 ; RUN: llc -mtriple=x86_64-pc-linux-gnu < %s -o - | grep %fs:
 ; RUN: llc -code-model=kernel -mtriple=x86_64-pc-linux-gnu < %s -o - | grep %gs:
-; RUN: llc -mtriple=x86_64-apple-darwin < %s -o - | grep {__stack_chk_guard}
-; RUN: llc -mtriple=x86_64-apple-darwin < %s -o - | grep {__stack_chk_fail}
+; RUN: llc -mtriple=x86_64-apple-darwin < %s -o - | grep "__stack_chk_guard"
+; RUN: llc -mtriple=x86_64-apple-darwin < %s -o - | grep "__stack_chk_fail"
 
 @"\01LC" = internal constant [11 x i8] c"buf == %s\0A\00"              ; <[11 x i8]*> [#uses=1]
 
index a297728aee8975353b671f5dcdbe308203079b08..4f31ab5a92291dabf1d786d7c4ebf207dccd9d65 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86-64 | grep {leal     .*), %e.\*} | count 1
+; RUN: llc < %s -march=x86-64 | grep "leal     .*), %e.*" | count 1
 
 ; Don't eliminate or coalesce away the explicit zero-extension!
 ; This is currently using an leal because of a 3-addressification detail,
index 03d6f9411e68e4eb97fe98b2f1e9b43b7bd1eb67..118eee6ba6cd1cc09174276aae25bfffc454b7d9 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=x86 -tailcallopt | grep TAILCALL
-; RUN: llc < %s -march=x86 -tailcallopt | grep {movl\[\[:space:\]\]*4(%esp), %eax} | count 1
+; RUN: llc < %s -march=x86 -tailcallopt | grep "movl[[:space:]]*4(%esp), %eax" | count 1
 %struct.s = type {i32, i32, i32, i32, i32, i32, i32, i32,
                   i32, i32, i32, i32, i32, i32, i32, i32,
                   i32, i32, i32, i32, i32, i32, i32, i32 }
index 51ddc491aa21168e3ab8843de6245d06d051ee0c..e50e7c52d18eacbf7eb8be942a89d0415b65af26 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=penryn -stats |& \
-; RUN:   grep {twoaddrinstr} | grep {Number of instructions aggressively commuted}
+; RUN:   grep "twoaddrinstr" | grep "Number of instructions aggressively commuted"
 ; rdar://6480363
 
 target triple = "i386-apple-darwin9.6"
index 077fee077392603542760bf5e28060d248993248..f4ac09ab1d737dd9e0eebb91bc230c60783e6dc6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -mattr=+sse2 -stats |& grep {Number of 3-address instructions sunk}
+; RUN: llc < %s -march=x86 -mattr=+sse2 -stats |& grep "Number of 3-address instructions sunk"
 
 define void @t2(<2 x i64>* %vDct, <2 x i64>* %vYp, i8* %skiplist, <2 x i64> %a1) nounwind  {
 entry:
index f2fc7e7d9d5dc65c5a8c878b86e622e675417dd6..e0862ca8d1c4370c5aabf8318eeb4763ccfe41c8 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llc < %s -mcpu=generic -march=x86 -mattr=+sse2 -mtriple=i686-apple-darwin8 | \
-; RUN:   grep {subl.*60}
+; RUN:   grep "subl.*60"
 ; RUN: llc < %s -mcpu=generic -march=x86 -mattr=+sse2 -mtriple=i686-apple-darwin8 | \
-; RUN:   grep {movaps.*32}
+; RUN:   grep "movaps.*32"
 
 
 define void @test() {
index 29511934af0198908fbf6f6a9f11d089f2a0192c..565be7a6cc709fc51785b7418641d49e85176e31 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -mcpu=yonah | grep {(%esp,%eax,4)} | count 4
+; RUN: llc < %s -march=x86 -mcpu=yonah | grep "(%esp,%eax,4)" | count 4
 
 ; Inserts and extracts with variable indices must be lowered
 ; to memory accesses.
index 3656e5f6ca47b1972ef2ab4ea672faf18bdb1100..b8ec0cf080957052bdbab0c4b89974c2e471455d 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -march=x86-64 | grep movd | count 1
-; RUN: llc < %s -march=x86-64 | grep {movlhps.*%xmm0, %xmm0}
+; RUN: llc < %s -march=x86-64 | grep "movlhps.*%xmm0, %xmm0"
 
 define <2 x i64> @test3(i64 %A) nounwind {
 entry:
index ec8dd8edb6342b9df184d19dc098a874159922c0..9a959e839a954cf0228435c25c479d8b150fd921 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s | grep {movl   %edi, %eax}
+; RUN: llc < %s | grep "movl   %edi, %eax"
 ; The input value is already sign extended, don't re-extend it.
 ; This testcase corresponds to:
 ;   int test(short X) { return (int)X; }
index 46f6d335d05c7ae4ae1cec1ead680d2aaba2743c..46cd4f81bcf9d77a5e3ec4ae6ffefdf72f03303d 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
-; RUN: grep {callq     f@PLT} %t1
+; RUN: grep "callq     f@PLT" %t1
 
 define void @g() {
 entry:
index b6f82e23b7e7bf6bd67a95bbea6cd804276f939c..3ec172b2b656e144eeba664cbfbdd05f68a66ecc 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
-; RUN: grep {callq     g@PLT} %t1
+; RUN: grep "callq     g@PLT" %t1
 
 @g = alias weak i32 ()* @f
 
index 4db331cee43f744692a5503f597a1401141d1f6a..fd64beb696b252c79e9a1940d326318b296719fe 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
-; RUN: grep {callq     __fixunsxfti@PLT} %t1
+; RUN: grep "callq     __fixunsxfti@PLT" %t1
 
 define i128 @f(x86_fp80 %a) nounwind {
 entry:
index 1ce2de7209c4fef79dc117516612df03d6aafdc0..f3f7b1dffd1f0d6ff9dc1a8f332f6c7b5a64e238 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
-; RUN: grep {callq     f} %t1
-; RUN: not grep {callq f@PLT} %t1
+; RUN: grep "callq     f" %t1
+; RUN: not grep "callq f@PLT" %t1
 
 define void @g() {
 entry:
index aa3c888ed600eeafd34760ce4afbb67ba0bd2eaf..ba933788a3a5f8b1c0a97a5dc76a23e5515df7fc 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
-; RUN: grep {callq     f} %t1
-; RUN: not grep {callq f@PLT} %t1
+; RUN: grep "callq     f" %t1
+; RUN: not grep "callq f@PLT" %t1
 
 define void @g() {
 entry:
index 90fc1194a33bb7a320d635bd8b3db6cc268c78b2..33b08c4b4b04928226cbff059ee00e7f5a809bb9 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
-; RUN: grep {movq      a@GOTPCREL(%rip),} %t1
+; RUN: grep "movq      a@GOTPCREL(%rip)," %t1
 
 @a = global i32 0
 
index 6369bde6943da50e4c99575fc7301c55d80a3f20..234bc0d2f4f1fff5a8a55b702619a32a97e82d1b 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
-; RUN: grep {movl      a(%rip),} %t1
+; RUN: grep "movl      a(%rip)," %t1
 ; RUN: not grep GOTPCREL %t1
 
 @a = hidden global i32 0
index 6e19ad35bcf44329a74333985ced97dc004e3a18..ae5b5835928d43e548075300b028426f43f99cf7 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
-; RUN: grep {movl      a(%rip),} %t1
+; RUN: grep "movl      a(%rip)," %t1
 ; RUN: not grep GOTPCREL %t1
 
 @a = internal global i32 0
index 4d98ee614026d9bc7ee346eee28ab319cea75533..de240a38d63a4cb7f608c649ebaa953d4feccb97 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
-; RUN: grep {movq      f@GOTPCREL(%rip),} %t1
+; RUN: grep "movq      f@GOTPCREL(%rip)," %t1
 
 define void ()* @g() nounwind {
 entry:
index d3b567c610763eb607e542a84a0539e8362a14e4..db35c33623fec6ffd62f5bc7c1bc77b506202990 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
-; RUN: grep {leaq      f(%rip),} %t1
+; RUN: grep "leaq      f(%rip)," %t1
 ; RUN: not grep GOTPCREL %t1
 
 define void ()* @g() {
index 076103133fa96a282ab6f72efcbc36554e57e761..6daea84e1a73cc8877fc9db0651d7c2305639d23 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
-; RUN: grep {leaq      f(%rip),} %t1
+; RUN: grep "leaq      f(%rip)," %t1
 ; RUN: not grep GOTPCREL %t1
 
 define void ()* @g() nounwind {
index 5a5b3f1f89ad32bbc79907e1afbba3fd607cbc9d..3a159725a06e74bc76c114d54293194e5a7cb860 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as %s -o /dev/null |& grep {redefinition of global '@B'}
+; RUN: not llvm-as %s -o /dev/null |& grep "redefinition of global '@B'"
 
 @B = global i32 7
 @B = global i32 7
index 4d4ace9534d6bd303cd74c3983c23e0133a10218..07666491b130d85d1d461026df8d942066914474 100644 (file)
@@ -2,7 +2,7 @@
 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
 ; RUN: diff %t1.ll %t2.ll
 ; RUN: not grep cast %t2.ll
-; RUN: grep {\\}>} %t2.ll
+; RUN: grep "}>" %t2.ll
 ; END.
 
 %struct.anon = type <{ i8, i32, i32, i32 }>
index ffdc0f080fa6b669c5182647e9da93d1d9027f76..992987ca04cdc993c38acd43aca3b58d360040d1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llvm-dis | not grep {ret.*(}
+; RUN: llvm-as < %s | llvm-dis | not grep "ret.*("
 
 ; All of these constant expressions should fold.
 
index a4d01e7d84b5c58cc31748f8533d0c130c6fc666..257c1c66ebace9bec371c30e9cc9729e23e8fbf0 100644 (file)
@@ -2,7 +2,7 @@
 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
 ; RUN: diff %t1.ll %t2.ll
 ; RUN: not grep cast %t2.ll
-; RUN: grep {\\}>} %t2.ll
+; RUN: grep "}>" %t2.ll
 ; END.
 
 %struct.anon = type <{ i8, i35, i35, i35 }>
index cc34634b321b2b5414522b7c313702b117cef13d..e7431ec1588655ce5e6e8819a6cf1d526f464573 100644 (file)
@@ -1,9 +1,9 @@
 ; This fails because the linker renames the external symbol not the internal 
 ; one...
 
-; RUN: echo {define internal i32 @foo() \{ ret i32 7 \} } | llvm-as > %t.1.bc
+; RUN: echo "define internal i32 @foo() { ret i32 7 } " | llvm-as > %t.1.bc
 ; RUN: llvm-as %s -o %t.2.bc
-; RUN: llvm-link %t.1.bc %t.2.bc -S | grep {@foo()} | grep -v internal
+; RUN: llvm-link %t.1.bc %t.2.bc -S | grep "@foo()" | grep -v internal
 
 define i32 @foo() { ret i32 0 }
 
index 043457da3735f3b80245ac61f2e432fc79da7e51..94fb5e0826c5d49395ee5dbbd723c97e61e80014 100644 (file)
@@ -1,9 +1,9 @@
 ; This fails because the linker renames the non-opaque type not the opaque
 ; one...
 
-; RUN: echo {%%Ty = type opaque @GV = external global %%Ty*} | llvm-as > %t.1.bc
+; RUN: echo "%%Ty = type opaque @GV = external global %%Ty*" | llvm-as > %t.1.bc
 ; RUN: llvm-as < %s > %t.2.bc
-; RUN: llvm-link %t.1.bc %t.2.bc -S | grep {%%Ty } | not grep opaque
+; RUN: llvm-link %t.1.bc %t.2.bc -S | grep "%%Ty " | not grep opaque
 
 %Ty = type {i32}
 
index beaf6ec52176ed9d516002c80812b5c79dd13f09..98a943a5344bd2895f05e4d5a7f2c99928398461 100644 (file)
@@ -1,7 +1,7 @@
 ; This fails because the linker renames the non-opaque type not the opaque 
 ; one...
 
-; RUN: echo { define linkonce void @foo() \{ ret void \} } | \
+; RUN: echo " define linkonce void @foo() { ret void } " | \
 ; RUN:   llvm-as -o %t.2.bc
 ; RUN: llvm-as %s -o %t.1.bc
 ; RUN: llvm-link %t.1.bc %t.2.bc -S | grep foo | grep linkonce
index d23df1bb5912e2d69dd91cb29bd080d37cff0c96..5e8249b047577e9c304ddc6efd40e0be4aacf892 100644 (file)
@@ -1,7 +1,7 @@
 ; This one fails because the LLVM runtime is allowing two null pointers of
 ; the same type to be created!
 
-; RUN: echo {%%T = type i32} | llvm-as > %t.2.bc
+; RUN: echo "%%T = type i32" | llvm-as > %t.2.bc
 ; RUN: llvm-as %s -o %t.1.bc
 ; RUN: llvm-link %t.1.bc %t.2.bc
 
index 18fcea00a13c5406da3e056eee3bcbb4a56009df..c1fe334d151a00cb05b02ec9998b46e65dd85a80 100644 (file)
@@ -1,7 +1,7 @@
 ; This one fails because the LLVM runtime is allowing two null pointers of
 ; the same type to be created!
 
-; RUN: echo {%M = type \{ %N*\} %N = type opaque} | llvm-as > %t.2.bc
+; RUN: echo "%M = type { %N*} %N = type opaque" | llvm-as > %t.2.bc
 ; RUN: llvm-as < %s > %t.1.bc
 ; RUN: llvm-link %t.1.bc %t.2.bc
 
index 80e0a697697dc42915ab07e4bc2e1bc42f57329e..dff861dc4bb19568ab4e299f90c926f9e8a5a4dd 100644 (file)
@@ -4,9 +4,9 @@
 ; the function name, we must rename the internal function to something that 
 ; does not conflict.
 
-; RUN: echo { define internal i32 @foo() \{ ret i32 7 \} } | llvm-as > %t.1.bc
+; RUN: echo " define internal i32 @foo() { ret i32 7 } " | llvm-as > %t.1.bc
 ; RUN: llvm-as < %s > %t.2.bc
-; RUN: llvm-link %t.1.bc %t.2.bc -S | grep internal | not grep {@foo(}
+; RUN: llvm-link %t.1.bc %t.2.bc -S | grep internal | not grep "@foo("
 
 declare i32 @foo() 
 
index 0b0e9c19087a1920850e33c5f2ac11b9e49e63ea..fa24b6dbfb87b6748823f0428aac3bba515f6188 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: echo {%%T = type opaque} | llvm-as > %t.2.bc
+; RUN: echo "%%T = type opaque" | llvm-as > %t.2.bc
 ; RUN: llvm-as < %s > %t.1.bc
 ; RUN: llvm-link %t.1.bc %t.2.bc
 
index 3f9fd04ae34074221d240ea0c954efcb7393cd0f..3ae23a208042072dcb6d1b4fcb907efed78dc08d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: echo {%%T = type i32} | llvm-as > %t.1.bc
+; RUN: echo "%%T = type i32" | llvm-as > %t.1.bc
 ; RUN: llvm-as < %s > %t.2.bc
 ; RUN: llvm-link %t.1.bc %t.2.bc
 
index c0fc620cfa67d586ac0c8bc626612e9d4b32c827..175146f12212dcd399e4cf23626eac232042aacc 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llvm-as < %s > %t.out1.bc
-; RUN: echo {%M = type \{ i32, i32* \} } | llvm-as > %t.out2.bc
+; RUN: echo "%M = type { i32, i32* } " | llvm-as > %t.out2.bc
 ; RUN: llvm-link %t.out1.bc %t.out2.bc
 
 %M = type { i32, %N* }
index 255cb88daf43ce704b3b21ed49ababc3f94091a2..e934836a6135067ba6810358747382a2207598bf 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llvm-as < %s > %t.out1.bc
-; RUN: echo {%%T1 = type opaque %%T2 = type opaque @S = external global \{ i32, %%T1* \} declare void @F(%%T2*)}\
+; RUN: echo "%%T1 = type opaque %%T2 = type opaque @S = external global { i32, %%T1* } declare void @F(%%T2*)"\
 ; RUN:   | llvm-as > %t.out2.bc
 ; RUN: llvm-link %t.out1.bc %t.out2.bc -S | not grep opaque
 
index f93c054dec7bf266f379ba1eb8a8368cb3d7c94c..487172f88f03b88a38ceaffa25b63aded8968b51 100644 (file)
@@ -2,7 +2,7 @@
 ; specified pointer size should not cause a warning!
 
 ; RUN: llvm-as < %s > %t.out1.bc
-; RUN: echo {} | llvm-as > %t.out2.bc
+; RUN: echo "" | llvm-as > %t.out2.bc
 ; RUN: llvm-link %t.out1.bc %t.out2.bc |& not grep warning
 
 target datalayout = "e-p:64:64"
index 570bda87e2c0c31ea3b65363148b1cd2035da6d3..73d7a4055046db138c0618b9c8414d09c3deed40 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: echo {@G = weak global \{\{\{\{double\}\}\}\} zeroinitializer } | \
+; RUN: echo "@G = weak global {{{{double}}}} zeroinitializer " | \
 ; RUN:   llvm-as > %t.out2.bc
 ; RUN: llvm-as < %s > %t.out1.bc
-; RUN: llvm-link %t.out1.bc %t.out2.bc -S | not grep {\\}}
+; RUN: llvm-link %t.out1.bc %t.out2.bc -S | not grep "}"
 
 ; When linked, the global above should be eliminated, being merged with the 
 ; global below.
index 2ceae3146f273c982a663d0ab7e1944dc9e0c09c..30bfafeb13b52af8eee3fe7c1f477a778943b8af 100644 (file)
@@ -1,8 +1,8 @@
 ; Test that a prototype can be marked const, and the definition is allowed
 ; to be nonconst.
 
-; RUN: echo {@X = external constant i32} | llvm-as > %t.2.bc
+; RUN: echo "@X = external constant i32" | llvm-as > %t.2.bc
 ; RUN: llvm-as < %s > %t.1.bc
-; RUN: llvm-link %t.1.bc %t.2.bc -S | grep {global i32 7}
+; RUN: llvm-link %t.1.bc %t.2.bc -S | grep "global i32 7"
 
 @X = global i32 7
index 60f176b053415567e00c0881f2d7cd1dc99ae9dc..93709cf50bedce424a6372cff2550df871de898d 100644 (file)
@@ -1,8 +1,8 @@
 ; Test that a prototype can be marked const, and the definition is allowed
 ; to be nonconst.
 
-; RUN: echo {@X = global i32 7} | llvm-as > %t.2.bc
+; RUN: echo "@X = global i32 7" | llvm-as > %t.2.bc
 ; RUN: llvm-as < %s > %t.1.bc
-; RUN: llvm-link %t.1.bc %t.2.bc -S | grep {global i32 7}
+; RUN: llvm-link %t.1.bc %t.2.bc -S | grep "global i32 7"
 
 @X = external constant i32             ; <i32*> [#uses=0]
index 7d1020ddf28ef62d04ad5388650a727876c83f92..d7a34c841e63b7dd8095ec28e69329f6b91e5a63 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: echo { @G = appending global \[0 x i32\] zeroinitializer } | \
+; RUN: echo " @G = appending global [0 x i32] zeroinitializer " | \
 ; RUN:   llvm-as > %t.out2.bc
 ; RUN: llvm-as < %s > %t.out1.bc
-; RUN: llvm-link %t.out1.bc %t.out2.bc -S | grep {@G =}
+; RUN: llvm-link %t.out1.bc %t.out2.bc -S | grep "@G ="
 
 ; When linked, the globals should be merged, and the result should still 
 ; be named '@G'.
index df3284bedea82576525ce5c7118ad163cbfbb64c..eec8f637be0d4522a2908b6117d09f58d7e478ba 100644 (file)
@@ -1,7 +1,7 @@
 ; The linker should choose the largest alignment when linking.
 
-; RUN: echo {@X = global i32 7, align 8} | llvm-as > %t.2.bc
+; RUN: echo "@X = global i32 7, align 8" | llvm-as > %t.2.bc
 ; RUN: llvm-as < %s > %t.1.bc
-; RUN: llvm-link %t.1.bc %t.2.bc -S | grep {align 8}
+; RUN: llvm-link %t.1.bc %t.2.bc -S | grep "align 8"
 
 @X = weak global i32 7, align 4
index 49da96af949abf45e52c48568d8d4634ff44df3e..da4b48dcbb3887f79320d2652684635ef23b6ff2 100644 (file)
@@ -2,7 +2,7 @@
 ; in different modules.
 ; RUN: llvm-as %s -o %t.foo1.bc
 ; RUN: llvm-as %s -o %t.foo2.bc
-; RUN: echo {define linkonce void @foo(i32 %x) { ret void }} | llvm-as -o %t.foo3.bc
+; RUN: echo "define linkonce void @foo(i32 %x) { ret void }" | llvm-as -o %t.foo3.bc
 ; RUN: llvm-link %t.foo1.bc %t.foo2.bc -S
 ; RUN: llvm-link %t.foo1.bc %t.foo3.bc -S
 define linkonce void @foo() { ret void }
index e3ed385b68a189bf25a8774b081a4983d22c62dd..e1d35741e7f1f60ccfc88914cff58adcc1938ef0 100644 (file)
@@ -2,8 +2,8 @@
 ; in different modules.
 ; RUN: llvm-as %s -o %t.foo1.bc
 ; RUN: echo | llvm-as -o %t.foo2.bc
-; RUN: llvm-link %t.foo2.bc %t.foo1.bc -S | grep {addrspace(2)}
-; RUN: llvm-link %t.foo1.bc %t.foo2.bc -S | grep {addrspace(2)}
+; RUN: llvm-link %t.foo2.bc %t.foo1.bc -S | grep "addrspace(2)"
+; RUN: llvm-link %t.foo1.bc %t.foo2.bc -S | grep "addrspace(2)"
 ; rdar://6038021
 
 @G = addrspace(2) global i32 256 
index 134a42ef215b80fe25f704596ae722aee658c63b..014ead91bd109d4d910566662e0913340455de28 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that appending linkage works correctly.
 
-; RUN: echo {@X = appending global \[1 x i32\] \[i32 8\] } | \
+; RUN: echo "@X = appending global [1 x i32] [i32 8] " | \
 ; RUN:   llvm-as > %t.2.bc
 ; RUN: llvm-as < %s > %t.1.bc
 ; RUN: llvm-link %t.1.bc %t.2.bc -S | grep 7 | grep 4 | grep 8
index 2c1302f39b1f7709af811f446e6be12e3a4cd706..7385efb1f9b0b33a3720da735153b67e6b2507e7 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that appending linkage works correctly when arrays are the same size.
 
-; RUN: echo {@X = appending global \[1 x i32\] \[i32 8\] } | \
+; RUN: echo "@X = appending global [1 x i32] [i32 8] " | \
 ; RUN:   llvm-as > %t.2.bc
 ; RUN: llvm-as < %s > %t.1.bc
 ; RUN: llvm-link %t.1.bc %t.2.bc -S | grep 7 | grep 8
index 8fdbe508db7f9e7b785f4f5341a164c5145001f2..716eb3d02e92fc2f7adbf2c01793ba827a52aef9 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that appending linkage works correctly when arrays are the same size.
 
-; RUN: echo {@X = constant \[1 x i32\] \[i32 8\] } | \
+; RUN: echo "@X = constant [1 x i32] [i32 8] " | \
 ; RUN:   llvm-as > %t.2.bc
 ; RUN: llvm-as < %s > %t.1.bc
 ; RUN: llvm-link %t.1.bc %t.2.bc -S | grep constant
index ad4428b95223eeca02472d8e74f48ddfe3efee50..ad0f8e25f2c6053e42c0cb5a9af63b5df4750a46 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that appending linkage works correctly when arrays are the same size.
 
-; RUN: echo {@X = external global \[1 x i32\] } | \
+; RUN: echo "@X = external global [1 x i32] " | \
 ; RUN:   llvm-as > %t.2.bc
 ; RUN: llvm-as < %s > %t.1.bc
 ; RUN: llvm-link %t.1.bc %t.2.bc -S | grep constant
index e25529ae1bfcecc4c55c0881a261944a1b5b703a..5aa26bc29b090eee393621268779158358af10f2 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that appending linkage works correctly when arrays are the same size.
 
-; RUN: echo {@X = external constant \[1 x i32\] } | \
+; RUN: echo "@X = external constant [1 x i32] " | \
 ; RUN:   llvm-as > %t.2.bc
 ; RUN: llvm-as < %s > %t.1.bc
 ; RUN: llvm-link %t.1.bc %t.2.bc -S | grep constant
index 2fc501dedc90b105321b756207824e5c70f96ce8..9d969d768dff125d297527e3f321040e4dee5e14 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llvm-as %s -o %t1.bc
-; RUN: echo {declare void @__eprintf(i8*, i8*, i32, i8*) noreturn     define void @foo() {      tail call void @__eprintf( i8* undef, i8* undef, i32 4, i8* null ) noreturn nounwind       unreachable }} | llvm-as -o %t2.bc
+; RUN: echo "declare void @__eprintf(i8*, i8*, i32, i8*) noreturn     define void @foo() {      tail call void @__eprintf( i8* undef, i8* undef, i32 4, i8* null ) noreturn nounwind       unreachable }" | llvm-as -o %t2.bc
 ; RUN: llvm-link %t2.bc %t1.bc -S | grep __eprintf
 ; RUN: llvm-link %t1.bc %t2.bc -S | grep __eprintf
 
index 0d056891d5b2181a05dc4248172d4f050a1b95b8..ec7e0a3002c3ec9cb52766b683cd25c59bad5a74 100644 (file)
@@ -2,9 +2,9 @@
 ; in different modules.
 ; RUN: llvm-as %s -o %t.foo1.bc
 ; RUN: llvm-as %s -o %t.foo2.bc
-; RUN: echo {define void @foo(i32 %x) { ret void }} | llvm-as -o %t.foo3.bc
+; RUN: echo "define void @foo(i32 %x) { ret void }" | llvm-as -o %t.foo3.bc
 ; RUN: not llvm-link %t.foo1.bc %t.foo2.bc -o %t.bc |& \
-; RUN:   grep {symbol multiply defined}
+; RUN:   grep "symbol multiply defined"
 ; RUN: not llvm-link %t.foo1.bc %t.foo3.bc -o %t.bc |& \
-; RUN:   grep {symbol multiply defined}
+; RUN:   grep "symbol multiply defined"
 define void @foo() { ret void }
index aa38b1264c3ed93ae338e31218ac734b974b37e1..3a72a48aae00d4daaeeda7ca6b2aa88c09dda221 100644 (file)
@@ -1,9 +1,9 @@
 ; RUN: llvm-as < %s > %t.bc
 ; RUN: llvm-as < %p/testlink1.ll > %t2.bc
 ; RUN: llvm-link %t.bc %t.bc %t2.bc -o %t1.bc
-; RUN: llvm-dis < %t1.bc | grep {kallsyms_names = extern_weak}
-; RUN: llvm-dis < %t1.bc | grep {MyVar = external global i32}
-; RUN: llvm-dis < %t1.bc | grep {Inte = global i32}
+; RUN: llvm-dis < %t1.bc | grep "kallsyms_names = extern_weak"
+; RUN: llvm-dis < %t1.bc | grep "MyVar = external global i32"
+; RUN: llvm-dis < %t1.bc | grep "Inte = global i32"
 
 @kallsyms_names = extern_weak global [0 x i8]          ; <[0 x i8]*> [#uses=0]
 @MyVar = extern_weak global i32                ; <i32*> [#uses=0]
index a0d5944a053f0442be592a66e85e66946698cacd..3743ac8208e7bc7fde41df2ee5c8bcb91687b7a3 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=60 Name=BFI Format=ARM_FORMAT_DPFRM(4)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index d2d424c1de491a5195fd342abc028559d8f96e1a..902554241306b5ca8c9e76b776c0ac81f5d32ddc 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=2249 Name=tBcc Format=ARM_FORMAT_THUMBFRM(25)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index 10748e9b1269d532042052c50c1fafdd01648944..c6265f84b733f4b8f2ecc1bd734a03e674e4a538 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # invalid imod value (0b01)
 0xc0 0x67 0x4 0xf1
index 8146b5cb446138f1064c644965fc950a70389bb4..b23653e0495be93da2f480ef2240ac9087126aee 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {potentially undefined instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "potentially undefined instruction encoding"
 
 # invalid (imod, M, iflags) combination
 0x93 0x00 0x02 0xf1
index b4414859c91f3c35f9dfaac11a92e495aedd8993..c78e7c9562c902ece2938a5499c1130b345dee98 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=1908 Name=t2DMB Format=ARM_FORMAT_THUMBFRM(25)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index de042a97c6ef900818c3260383da5f32a0f3adcc..afe467f515e6dd8d9f185f1296b23adeee276ed3 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=102 Name=DSB Format=ARM_FORMAT_MISCFRM(26)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index 6174e92c4726a540495cd9c4637cb9051b4dc278..3d70c9404da4e849304f3f1401e1ba2c4609299b 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep {potentially undefined instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep "potentially undefined instruction encoding"
 
 # CBZ / CBNZ not allowed in IT block.
 
index 9b571b33f5fc71777bd8d230ace264165b5c0def..6b10e6759866927b2493574590124c70824120ec 100644 (file)
@@ -1,3 +1,3 @@
-# RUN: llvm-mc --disassemble %s -triple=thumbv7-unknown-unknown |& grep {potentially undefined instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumbv7-unknown-unknown |& grep "potentially undefined instruction encoding"
 
 0xff 0xbf 0x6b 0x80 0x00 0x75
index 0b0426b2dabe455069e58689386576ad4167e50d..41f734daae95d327662a45bd3ab46d9f1bb77981 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=0 Name=PHI Format=(42)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index a42b24880e5622cf6354c6aba24588086030ccab..d6e746cdc1973d94a1b208b853ce9c7fe8616e62 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep {potentially undefined instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep "potentially undefined instruction encoding"
 
 # Writeback is not allowed is Rn is in the target register list.
 
index 6b695b95b2b315f011ee46f8f2c3bc723887346a..1dad49d7e5607ac9b828c6e09054dde9ed3fd138 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {potentially undefined instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "potentially undefined instruction encoding"
 
 # Opcode=140 Name=LDRB_POST Format=ARM_FORMAT_LDFRM(6)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index 7ea1b4679570761a133f71efbe4be94578102430..aa77bb221f1ca820ff6867b28167eeebb4e635a2 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=1930 Name=t2LDRD_PRE Format=ARM_FORMAT_THUMBFRM(25)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0 
index e42e0de9b9d1014ddaf1d93a74aa9cba4f108065..197e34f3aff69a27b5eb5b0fd09867371372df15 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {potentially undefined instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "potentially undefined instruction encoding"
 
 # Opcode=165 Name=LDR_PRE Format=ARM_FORMAT_LDFRM(6)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index 23a0b85f3615786aa185ffe30fb9c2af8355c404..af16e976d138bcb1252a08e3431a8e7a94b8ff1f 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # LDR (register) has encoding Inst{4} = 0.
 0xba 0xae 0x9f 0x57
index 8343d549e1b0676a5b1c685082ccb49ac536c07f..575d0632f46cf4281c21f1843391cd8ffefa9f84 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=171 Name=MCR Format=ARM_FORMAT_BRFRM(2)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index 235952fc35884e28f3a00084d88194180f0816b9..d15ee055ec66d9505e808cc46499dc11037acef8 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=185 Name=MOVTi16 Format=ARM_FORMAT_DPFRM(4)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index 01c1466a280d7e0627d648db623d411f41cc38df..f8f055cb4a0c4f8a55124a113683e75a112f47c7 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=0 Name=PHI Format=(42)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index 757d16759447238017d043a18f7d31be9d844f56..3f682d8b7846081938890295695bddc4ead21478 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=196 Name=MOVs Format=ARM_FORMAT_DPSOREGFRM(5)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index ba488776c0d69790aca95446fea8c3852ab2b856..78acffe06646a62cc2afe0f6e9b3a6196f1a62c6 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=0 Name=PHI Format=(42)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index 3765b1f5c025e722a1b00ed0b028dab777c43e15..b635a025f40d0b0571cb484f1854772f2d945e62 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=206 Name=MSRi Format=ARM_FORMAT_BRFRM(2)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index cffd86dc1ad8d2980ad63ee80d6a1222a90e48df..2b7d22c08359b680ee9ab62c5c95ebb9354f5d82 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=134 Name=LDMIA Format=ARM_FORMAT_LDSTMULFRM(10)
 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index 9e1653605256a278b34179770d6a93a9e7fd8779..48fe0f25786250dd77fa5ecf7190f531bda7427e 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=271 Name=SBFX Format=ARM_FORMAT_DPFRM(4)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index 91f3d58b4c4a5153e5474bbec218b1db43851f79..5f39bb62345323eff3a7ff4cf663e100093693ae 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=284 Name=SMLAD Format=ARM_FORMAT_MULFRM(1)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index fc5c711a2300d8b318b3104c011cdd4fa9f16b79..dc6788e2578f8df357616a4b91f2f074feb4778e 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=0 Name=PHI Format=(42)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index ca16724c7ad5b9b71df7bd4f5b17ba705bf6180c..9709b0649e9affbf94fbf85176d3dfaad2eb2e6c 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=2313 Name=tSTMIA_UPD Format=ARM_FORMAT_THUMBFRM(25)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index 400d44ce8c38c956889701c036b79f7c7831725b..4b70bdd80de3922f13a7f39dcc2e8e9c30f20aff 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=390 Name=SXTBr_rot Format=ARM_FORMAT_EXTFRM(14)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index c7cbd844871a3499a9cacced4c0d4093687e2b1f..57264017c951491d91e52b9594c80528c3452cae 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=419 Name=UMAAL Format=ARM_FORMAT_MULFRM(1)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index bab32ca1711f58c9fc8c9d66b0668b6c3bd2eb2d..d7d70f70f9168337404e490095473cfa33124e35 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=871 Name=VLD3DUPd32_UPD Format=ARM_FORMAT_NLdSt(30)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index 887b983eddb39218a3845a798bc3b2429baaa375..9c0d93e5f37afda2f5aa3bb48c7af14f8bc286d8 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
 
 # core registers out of range
 0xa5 0xba 0x72 0xed
index 8ff3a2b9bd59254c3e6aa84981a7c05ab807c82d..397584e4f749e466ae6bad857713530b9f0ec142 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=1839 Name=VST1d8Twb_register Format=ARM_FORMAT_NLdSt(30)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index df0a642f440c4fc594bff8724eca185dda15ad9e..bbf415a5c16c84a72ee9c8b3259040879fa69f24 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=1894 Name=t2Bcc Format=ARM_FORMAT_THUMBFRM(25)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index e1f841b86de31527eb611c5c4d2aec58fcb1c5d2..0a6120286201f104e873f4d9a6af9c2de272e852 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=1922 Name=t2LDRBT Format=ARM_FORMAT_THUMBFRM(25)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index a63d1214f27c91921eb18ae62b7051b8605a70e4..047121e5c4e71a4502d964f5f42b28775ed80478 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=1953 Name=t2LDRSHi12 Format=ARM_FORMAT_THUMBFRM(25)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index f126ff04fb1ca282754beaea21efce4cc31332b8..57b50385efc49a34d623ef2e988f60623434a894 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=1954 Name=t2LDRSHi8 Format=ARM_FORMAT_THUMBFRM(25)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index b3daa9a429f4d9d1b83027927b4d114989d311f0..3348a42a3134a607695ba0254d5bb3cb10d5735d 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep "invalid instruction encoding"
 
 # SP and PC are not allowed in the register list on STM instructions in Thumb2.
 
index 0f9a16ee54dd29648a21227f0e6ea4997d966433..5721fe1bbf7aab152cd2d19aab3b716f4f7961d9 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=2128 Name=t2STREXD Format=ARM_FORMAT_THUMBFRM(25)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index 548ad056e6c0d3c9549e823b31341468e9ad60c1..b957899f06321bb8b9fa49d4d887fb5d8e88b001 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
 
 # Opcode=2137 Name=t2STR_POST Format=ARM_FORMAT_THUMBFRM(25)
 #  31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
index 9feb54c517e4fae5b05fa8e41a89a028911a9d20..9353d8a1f436197308968a1e03c1c24bfca87cc7 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 |& grep "invalid instruction encoding"
 
 # This instruction would decode as movmskps if the vvvv field in the VEX prefix was all 1s.
 0xc5 0xf0 0x50 0xc0
index bf8699b24f268c3ca78a71b758c3b6398f48a762..c569ada40c9f5449810ea3c0a6e4b4a8bbd81f1d 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 |& grep {invalid instruction encoding}
+# RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 |& grep "invalid instruction encoding"
 
 # This instruction would decode as cmpordps if the immediate byte was less than 8.
 0x0f 0xc2 0xc7 0x08
index 13f835163758f74792d87018571c016a48ee8497..b807c4440008c57df199540e52d28eb0a3935f00 100644 (file)
@@ -3,7 +3,7 @@
 ; and instead nests it just inside loop "Top"
 ;
 ; RUN: opt < %s -analyze -loops | \
-; RUN:   grep {     Loop at depth 3 containing: %Inner<header><latch><exiting>}
+; RUN:   grep "     Loop at depth 3 containing: %Inner<header><latch><exiting>"
 ;
 define void @test() {
         br label %Top
index 60840fa010a9ffcb4aacddda1b5f5c21e6e3ec37..3af40dd55dec0ec2bceeea1a1aafafaa13186ff5 100644 (file)
@@ -1,3 +1,3 @@
-; RUN: not opt --foo |& grep {Unknown command line argument}
+; RUN: not opt --foo |& grep "Unknown command line argument"
 
 ; there is no --foo
index 47fd81d2e71988c63761e6b304faaf9d49e35829..46d3f62c6d04dea5065c79cc73752913cfe98839 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: llvm-tblgen %s | grep {zing = 4} | count 4
+// RUN: llvm-tblgen %s | grep "zing = 4" | count 4
 // XFAIL: vg_leak
 
 class C1<int A, string B> { 
index 8145a3ff8d38dbbaa6a8973a09e402db0a88c71e..306959ebb6a2fba01fa65bf032dac1cd6bfef33c 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: llvm-tblgen %s | grep {int Y = 3}
+// RUN: llvm-tblgen %s | grep "int Y = 3"
 // XFAIL: vg_leak
 
 class C {
index 565a99cf5fe2833ab8369973349ea1edf79e773e..864401ec3cd32f7bcca302c436a2de67fc581b33 100644 (file)
@@ -1,6 +1,6 @@
 // RUN llvm-tblgen %s | FileCheck %s
 
-// RUN: llvm-tblgen %s | grep {foo} | count 1
+// RUN: llvm-tblgen %s | grep "foo" | count 1
 // XFAIL: vg_leak
 
 class Base<string t> {
index 04f3a56558213eb5ad5f106412c71199a1467326..449c5d6c0403a7e5c19a13d6d40f0d1d58d1b790 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: llvm-tblgen %s | grep {zing = 4} | count 2
+// RUN: llvm-tblgen %s | grep "zing = 4" | count 2
 // XFAIL: vg_leak
 
 class C1<int A, string B> { 
index 8b78bc7736c33e537718fc597c6b8c3a91efefde..c768fff0b670b5ea271cf319137197fa10300371 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: llvm-tblgen %s | grep {zing = 4} | count 28
+// RUN: llvm-tblgen %s | grep "zing = 4" | count 28
 // XFAIL: vg_leak
 
 class C1<int A, string B> { 
index 2d2822c53b14995c947c73f8cbf14896e4279c73..6d051d77c8a3c5883a720f5c8bb614c1126e1385 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: llvm-tblgen %s | grep {\\\[(set} | count 2
-// RUN: llvm-tblgen %s | grep {\\\[\\\]} | count 2
+// RUN: llvm-tblgen %s | grep "\[(set" | count 2
+// RUN: llvm-tblgen %s | grep "\[\]" | count 2
 // XFAIL: vg_leak
 
 class ValueType<int size, int value> {
index 7b611e7c174d3e51301aa02078a2891b6bbeb2af..64b706dc6a1039608534a26d9c76228fb97824d7 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: llvm-tblgen %s | grep {\\\[(set VR128:\$dst, (int_x86_sse2_add_pd VR128:\$src1, VR128:\$src2))\\\]} | count 1
-// RUN: llvm-tblgen %s | grep {\\\[(set VR128:\$dst, (int_x86_sse2_add_ps VR128:\$src1, VR128:\$src2))\\\]} | count 1
+// RUN: llvm-tblgen %s | grep '\[(set VR128:$dst, (int_x86_sse2_add_pd VR128:$src1, VR128:$src2))\]' | count 1
+// RUN: llvm-tblgen %s | grep '\[(set VR128:$dst, (int_x86_sse2_add_ps VR128:$src1, VR128:$src2))\]' | count 1
 // XFAIL: vg_leak
 
 class ValueType<int size, int value> {
index 8a23eb4cc91f5309cf0c4745be1108c7574f8b70..7948aff79528b7ded55df4d011c5cdcb84584a98 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: llvm-tblgen %s | grep {add_ps} | count 3
+// RUN: llvm-tblgen %s | grep "add_ps" | count 3
 // XFAIL: vg_leak
 
 class ValueType<int size, int value> {
index 814ae6ef936393398029d55431d7646ceeb6b5c0..902af25237e9d666b25bb1fc3cd830a8069c9cd7 100644 (file)
@@ -1,6 +1,6 @@
-// RUN: llvm-tblgen %s | grep {Jr} | count 2
-// RUN: llvm-tblgen %s | grep {Sr} | count 2
-// RUN: llvm-tblgen %s | grep {"NAME"} | count 1
+// RUN: llvm-tblgen %s | grep 'Jr' | count 2
+// RUN: llvm-tblgen %s | grep 'Sr' | count 2
+// RUN: llvm-tblgen %s | grep '"NAME"' | count 1
 // XFAIL: vg_leak
 
 // Variables for foreach
index 025aca961cd55da1e9525f55d11a1b1a7ce15e19..dd85ddc67c942d4f1a71aec6db7b1490cd145e5e 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: llvm-tblgen %s | grep {}
+// RUN: llvm-tblgen %s | grep ""
 // XFAIL: vg_leak
 
 class List<list<string> n> {
index 5a73ec4f129462539f21747b81b12c7cac05aac7..850ac38465c393d63f5cb330a549cb59571b60cd 100644 (file)
@@ -1,9 +1,9 @@
-// RUN: llvm-tblgen %s | grep {Smith} | count 7
-// RUN: llvm-tblgen %s | grep {Johnson} | count 2
-// RUN: llvm-tblgen %s | grep {FIRST} | count 1
-// RUN: llvm-tblgen %s | grep {LAST} | count 1
-// RUN: llvm-tblgen %s | grep {TVAR} | count 2
-// RUN: llvm-tblgen %s | grep {Bogus} | count 1
+// RUN: llvm-tblgen %s | grep "Smith" | count 7
+// RUN: llvm-tblgen %s | grep "Johnson" | count 2
+// RUN: llvm-tblgen %s | grep "FIRST" | count 1
+// RUN: llvm-tblgen %s | grep "LAST" | count 1
+// RUN: llvm-tblgen %s | grep "TVAR" | count 2
+// RUN: llvm-tblgen %s | grep "Bogus" | count 1
 // XFAIL: vg_leak
 
 class Honorific<string t> {
index d7d5eb548a1c5e3cd8ec6f65dfdff704e83861f2..210eb97bc1dcdd476f5e8f3f42f254fcfe9391ef 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -argpromotion -S > %t
-; RUN: cat %t | grep {define.*@callee(.*i32\\*}
+; RUN: cat %t | grep "define.*@callee(.*i32\*"
 ; PR2498
 
 ; This test tries to convince argpromotion about promoting the load from %A + 2,
index bd62c6835f3b46691fb9ebceb88224c6b9cbfab6..368c6896cf82c242c04e5b25eded737d396b21a2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -argpromotion -S | grep -F {i32* byval} | count 2
+; RUN: opt < %s -argpromotion -S | grep -F "i32* byval" | count 2
 ; Argpromote + scalarrepl should change this to passing the two integers by value.
 
        %struct.ss = type { i32, i64 }
index 9a8afc32a89116517f884f9df05c309139b5437b..2543218bafe8ae34398e305a4848add5f7a42a8a 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -argpromotion -S | \
-; RUN:   grep {load i32\\* %A}
+; RUN:   grep "load i32\* %A"
 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
 
 define internal i32 @callee(i1 %C, i32* %P) {
index be76783e8b73b83261e223a772ef9f5334aa5c7c..4a93144d2d517c864610340df8d40439a47106c4 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -constprop -S | \
-; RUN:   grep {i32 -1}
+; RUN:   grep "i32 -1"
 ; RUN: opt < %s -constprop -S | \
 ; RUN:   not grep zeroinitializer
 
index e46a875a7cfad9bd8aa338bd7562dd3d3b0a35f4..ce66c706488da619adf4d2eb5ce051cc3c18d098 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -instcombine -S | \
-; RUN:   grep {ret i1 false}
+; RUN:   grep "ret i1 false"
 define i1 @test() {
         %X = trunc i32 320 to i1                ; <i1> [#uses=1]
         ret i1 %X
index 3c06693b100df0df8951e5c3ae37be905d894621..71db4211c5d228d211d02b806902cf4010e37cd7 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: opt < %s -constprop -S | \
-; RUN:    grep {ret i32 -1}
+; RUN:    grep "ret i32 -1"
 ; RUN: opt < %s -constprop -S | \
-; RUN:    grep {ret i32 1}
+; RUN:    grep "ret i32 1"
 
 define i32 @test1() {
         %A = sext i1 true to i32                ; <i32> [#uses=1]
index 721199fc7f141ee4ca81ba971942002a6f041663..75f58b573fff53a1496ce5abaae51d4126478281 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llvm-dis | grep {global i32 0}
+; RUN: llvm-as < %s | llvm-dis | grep "global i32 0"
 ; PR1215
 
 @G = global i32 sdiv (i32 0, i32 -1)
index a28c9b0a2f135a1be7dcdcb07314a13215b6e5c5..6d34cb17fffd910833e55318a28bbcc732d76f02 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -constprop -S | grep {ret i13 13}
+; RUN: opt < %s -constprop -S | grep "ret i13 13"
 ; PR1816
 declare i13 @llvm.cttz.i13(i13, i1)
 
index f78a34fe703d6d83120e62ab9d5ce73b4202aee5..a2c59d3c002a7f57b557ee680128f66779787b8a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret i32 0}
+; RUN: opt < %s -instcombine -S | grep "ret i32 0"
 ; PR4424
 declare void @ext()
 
index d5bd6c4df53c5c901a7e8772550d291d1bc97564..e5419f72f60a6766262319a0718259276f5a5ef4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -deadargelim -S | grep {@test(}
+; RUN: opt < %s -deadargelim -S | grep "@test("
 ; RUN: opt < %s -deadargelim -S | not grep dead
 
 define internal i32 @test(i32 %X, i32 %dead) {
index 11cd482b7b2888ed4fb3c0de3c4e7327ca0661ed..79c15a04c4cbe7e030092411594aea141e412db2 100644 (file)
@@ -1,9 +1,9 @@
 ; This test shows a few canonicalizations made by deadargelim
 ; RUN: opt < %s -deadargelim -S > %t
 ; This test should remove {} and replace it with void
-; RUN: cat %t | grep {define internal void @test}
+; RUN: cat %t | grep "define internal void @test"
 ; This test shouls replace the {i32} return value with just i32
-; RUN: cat %t | grep {define internal i32 @test2}
+; RUN: cat %t | grep "define internal i32 @test2"
 
 define internal {} @test() {
   ret {} undef
index 4d6aae37a3ef58e4223bd75bc732ce71d3d87b01..dc92dc9f171aa871b7e8ee01b96b0cf38e34b227 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -deadargelim -S > %t
-; RUN: grep {define internal zeroext i32 @test1() nounwind} %t
-; RUN: grep {define internal <{ i32, i32 }> @test2} %t
+; RUN: grep "define internal zeroext i32 @test1() nounwind" %t
+; RUN: grep "define internal <{ i32, i32 }> @test2" %t
 
 %Ty = type <{ i32, i32 }>
 
index 7ef5f06f06138c27e1b0620795ad2b14097bcda8..f38c03acca344e940fbe444ea476f544005f2762 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt < %s -functionattrs -S | not grep {nocapture *%%q}
-; RUN: opt < %s -functionattrs -S | grep {nocapture *%%p}
+; RUN: opt < %s -functionattrs -S | not grep "nocapture *%%q"
+; RUN: opt < %s -functionattrs -S | grep "nocapture *%%p"
 
 define i32* @a(i32** %p) {
        %tmp = load i32** %p
index f2c001296f63f855202bfc10ac3dff6859b6c2f7..5018a0747affd71c8e82c13e5a9e3d8e08f2de40 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -basicaa -gvn -S | grep {tmp47 = phi i32 }
+; RUN: opt < %s -basicaa -gvn -S | grep "tmp47 = phi i32 "
 
        %struct.anon = type { i32 (i32, i32, i32)*, i32, i32, [3 x i32], i8*, i8*, i8* }
 @debug = external constant i32         ; <i32*> [#uses=0]
index 407940b87d730bf91b385a2f0b0053b0fd843448..4f07868a1ccbb8340b33e04479820d6c1ad4af96 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -basicaa -gvn -S | grep {ret i8 \[%\]tmp3}
+; RUN: opt < %s -basicaa -gvn -S | grep "ret i8 [%]tmp3"
 ; PR2503
 
 @g_3 = external global i8              ; <i8*> [#uses=2]
index 97ec91512e32fcfadd030978d7c36a264236ecb4..a4777401b1900893b290e1b3cb8a9b04d694edeb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -basicaa -gvn -S | grep {call.*strlen} | count 1
+; RUN: opt < %s -basicaa -gvn -S | grep "call.*strlen" | count 1
 ; Should delete the second call to strlen even though the intervening strchr call exists.
 
 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 314c8069cacefc69f5a0dc9379e9e4f793a440af..a7dacea6b5da20e71c8719acc68719100d4776ad 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -basicaa -gvn -instcombine -S | grep {ret i32 0}
+; RUN: opt < %s -basicaa -gvn -instcombine -S | grep "ret i32 0"
 ; PR4189
 @G = external constant [4 x i32]
 
index 5f03984653a97409ebc88a68be8cbae78648c8c6..1d0dadfbe0fc4c709e15781cb491b8d06825ccc0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -gvn -enable-pre -S | grep {b.pre}
+; RUN: opt < %s -gvn -enable-pre -S | grep "b.pre"
 
 define i32 @main(i32 %p) {
 block1:
index dba9d81405c0130f3e2574c0d00368375344f0ec..4bea58ca7b2351a98e2aa464d578ced859d8c9c2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -basicaa -gvn -stats -disable-output |& grep {Number of loads deleted}
+; RUN: opt < %s -basicaa -gvn -stats -disable-output |& grep "Number of loads deleted"
 ; rdar://7363102
 
 ; GVN should be able to eliminate load %tmp22.i, because it is redundant with
index c13099fe73491d5a0fa78578a55afd4e88310cac..4bde05c3387f4d1621a4d3f850d7866903ae0c24 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -gvn -enable-pre -S | grep {.pre}
+; RUN: opt < %s -gvn -enable-pre -S | grep ".pre"
 
 @H = common global i32 0               ; <i32*> [#uses=2]
 @G = common global i32 0               ; <i32*> [#uses=1]
index 479724063e0b3a5d961b181ec0c11e0fb59729a3..e7dc9c423fcbe9911333e25828a1c0a5c251916e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -basicaa -gvn -S | grep {DEAD = phi i32 }
+; RUN: opt < %s -basicaa -gvn -S | grep "DEAD = phi i32 "
 
 ; GVN should eliminate the fully redundant %9 GEP which 
 ; allows DEAD to be removed.  This is PR3198.
index c6cd1fdc00c53497fa39eb65d60cbaf93047302f..71aa548ab11e639c654ea2b3c52848473aaf8d17 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -basicaa -gvn -S | grep {DEAD = phi i32 }
+; RUN: opt < %s -basicaa -gvn -S | grep "DEAD = phi i32 "
 
 define i32 @main(i32* %p) {
 block1:
index 82abc8fe546b0b0fd13372171a6bcf56233d7b0e..7c07d5d9a23a3092af2a1458723a8d805ad6dbfb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -globalopt -S | grep {16 x .31 x double.. zeroinitializer}
+; RUN: opt < %s -globalopt -S | grep "16 x .31 x double.. zeroinitializer"
 
 ; The 'X' indices could be larger than 31.  Do not SROA the outer indices of this array.
 @mm = internal global [16 x [31 x double]] zeroinitializer, align 32
index 588d5c9a684470f340e5bf58dce09557f1dbe205..08b2cb1eb6f2e0f3a9947df62d43e6a632e0eca7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -globalopt -S | grep {load volatile}
+; RUN: opt < %s -globalopt -S | grep "load volatile"
 @t0.1441 = internal global double 0x3FD5555555555555, align 8          ; <double*> [#uses=1]
 
 define double @foo() nounwind  {
index 5b06fea5d92c5bc8bf7debf0cf4cb9d6468586df..d58becd530787906abe7ecd80e14c7777bbb2e4d 100644 (file)
@@ -2,9 +2,9 @@
 ; alignments.  Elements 0 and 2 must be 16-byte aligned, and element 
 ; 1 must be at least 8 byte aligned (but could be more). 
 
-; RUN: opt < %s -globalopt -S | grep {@G.0 = internal unnamed_addr global .*align 16}
-; RUN: opt < %s -globalopt -S | grep {@G.1 = internal unnamed_addr global .*align 8}
-; RUN: opt < %s -globalopt -S | grep {@G.2 = internal unnamed_addr global .*align 16}
+; RUN: opt < %s -globalopt -S | grep "@G.0 = internal unnamed_addr global .*align 16"
+; RUN: opt < %s -globalopt -S | grep "@G.1 = internal unnamed_addr global .*align 8"
+; RUN: opt < %s -globalopt -S | grep "@G.2 = internal unnamed_addr global .*align 16"
 ; rdar://5891920
 
 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:32:32-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
index c4b6e52e71275c3be490d575384d64b20f0cc74f..e76c44dbd04411472a9ef8cbe528aa3bee304a19 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -globalopt -S | grep {phi.*@head}
+; RUN: opt < %s -globalopt -S | grep "phi.*@head"
 ; PR3321
 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"
 target triple = "x86_64-unknown-linux-gnu"
index d645ce49438bd81e6f6cc8f7fb5c98ffc936f501..059af1cfeac8cc89f655422d2c9d04148ebad11d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -globalopt -S | grep {@X = internal unnamed_addr global i32}
+; RUN: opt < %s -globalopt -S | grep "@X = internal unnamed_addr global i32"
 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-darwin7"
 @X = internal global i32* null         ; <i32**> [#uses=2]
index 099c607509b2e48d2ca9adadc989d0686ac3887e..be13a9811898709a495a3990433c4318ab4e81aa 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -instcombine -globalopt -S | \
-; RUN:   grep {internal fastcc float @foo}
+; RUN:   grep "internal fastcc float @foo"
 
 define internal float @foo() {
         ret float 0.000000e+00
index 1e0db6a998bd0f26befb2657bc576befab567902..cc655e9a2d1db29c74034ebd1b0f247e1cfd93d9 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: opt < %s -globalopt -S > %t
-; RUN: grep {@Y = internal unnamed_addr global \\\[3 x \[%\]struct.X\\\] zeroinitializer} %t
+; RUN: grep "@Y = internal unnamed_addr global \[3 x [%]struct.X\] zeroinitializer" %t
 ; RUN: grep load %t | count 6
-; RUN: grep {add i32 \[%\]a, \[%\]b} %t | count 3
+; RUN: grep "add i32 [%]a, [%]b" %t | count 3
 
 ; globalopt should not sra the global, because it can't see the index.
 
index 6188e5af988a79592ffbebe3f59c2273f8c4befb..123ad851f717f5c5bcd199731b75f2845f70e408 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt < %s -globalopt -S | grep {tmp.f1 = phi i32. }
-; RUN: opt < %s -globalopt -S | grep {tmp.f0 = phi i32. }
+; RUN: opt < %s -globalopt -S | grep "tmp.f1 = phi i32. "
+; RUN: opt < %s -globalopt -S | grep "tmp.f0 = phi i32. "
 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
 
        %struct.foo = type { i32, i32 }
index 59403b18d9d750a44e28d80a03e7af8292996aab..5a34a9c4dabdb0cd5873c894c0abe6534be0a46e 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -globalopt -instcombine | \
-; RUN:    llvm-dis | grep {ret i1 true}
+; RUN:    llvm-dis | grep "ret i1 true"
 
 ;; check that global opt turns integers that only hold 0 or 1 into bools.
 
index 94e07a0848eab1ad7e0a33acffb9d5c50e1446b0..dcfe009e330c796a20c7220c83baab22823da81a 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -globalopt -S | \
-; RUN:   grep {G1 = internal unnamed_addr constant}
+; RUN:   grep "G1 = internal unnamed_addr constant"
 
 @G1 = internal global [58 x i8] c"asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd\00"         ; <[58 x i8]*> [#uses=1]
 
index 2f5ae869b7c27bd5062ea56194e0f05c6ce55407..09e20a8adb26f7e7f31bcb839090870a4a1ffbdf 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -globalopt -S | \
-; RUN:   grep {call void @Actual}
+; RUN:   grep "call void @Actual"
 
 ; Check that a comparison does not prevent an indirect call from being made 
 ; direct.  The global will still remain, but indirect call elim is still good.
index 66403363bf932e8f93b7290d742445a04b399764..54a65d61da37317497e5ae78c89e19b9ff361ab9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -ipconstprop -S | grep {ret i32 %r}
+; RUN: opt < %s -ipconstprop -S | grep "ret i32 %r"
 ; Should not propagate the result of a weak function.
 ; PR2411
 
index f4b7018222e944579975e7ef455bf43b32a9dd7f..2a14f05985d007305ddbaf92daa1bce13f0d504b 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -ipconstprop -S > %t
-; RUN: cat %t | grep {store i32 %Z, i32\\* %Q}
-; RUN: cat %t | grep {add i32 1, 3}
+; RUN: cat %t | grep "store i32 %Z, i32\* %Q"
+; RUN: cat %t | grep "add i32 1, 3"
 
 ;; This function returns its second argument on all return statements
 define internal i32* @incdec(i1 %C, i32* %V) {
index ff15df738816d2c4fada5f52725bda73b93de105..499d38329522ce95863a53c50bc56f297d57810e 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -ipconstprop -instcombine | \
-; RUN:    llvm-dis | grep {ret i1 true} | count 2
+; RUN:    llvm-dis | grep "ret i1 true" | count 2
 define internal i32 @foo(i1 %C) {
         br i1 %C, label %T, label %F
 
index 2cd99fe3b74d6b009dcbf7c01b21a17c4516689a..be2ca71c55c6fa644375e7fe79502838d2e81d81 100644 (file)
@@ -1,8 +1,8 @@
 ; RUN: opt < %s -ipconstprop -S > %t
 ;; Check that the 21 constants got propagated properly
-; RUN: cat %t | grep {%M = add i32 21, 21}
+; RUN: cat %t | grep "%M = add i32 21, 21"
 ;; Check that the second return values didn't get propagated
-; RUN: cat %t | grep {%N = add i32 %B, %D}
+; RUN: cat %t | grep "%N = add i32 %B, %D"
 
 %0 = type { i32, i32 }
 
index 1ba69826faf9b7c603d1dd432d2ae0461f3ba2c7..edeead164884185526dd08165ffa9a6e1ddec013 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -indvars -S | \
-; RUN:   grep {ret i32 152}
+; RUN:   grep "ret i32 152"
 
 define i32 @main() {
 entry:
index 1bbc63108086b94c7c3be6ef7ba68c4c918d1a88..c4e6cd4b346f24a6f5614e0a09c1660a03e0248b 100644 (file)
@@ -1,6 +1,6 @@
 ; PR726
 ; RUN: opt < %s -indvars -S | \
-; RUN:   grep {ret i32 27}
+; RUN:   grep "ret i32 27"
 
 ; Make sure to compute the right exit value based on negative strides.
 
index c25bd0e354180232dbb53550d5ddd15c93ff17ea..98510eaed3f4a23b2959e9ba72efe9301f0a2521 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -indvars | grep {= icmp} | count 3
+; RUN: opt < %s -S -indvars | grep "= icmp" | count 3
 ; PR4914.ll
 
 ; Indvars should be able to do range analysis and eliminate icmps.
index 65c66f7f5acaa5f2c1359dc02b875b14f0394b42..0c1b590c4f84f858c73893b30bdd963f1f5f2739 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -indvars -S | grep {ret i32 600000}
+; RUN: opt < %s -indvars -S | grep "ret i32 600000"
 ; PR1179
 
 define i32 @foo() {
index e4b642c7f58e5bacad0a1bb7b3485942f35443be..d7eb4063b91683495c39b8f27283cb850d34526b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -indvars -S | grep {ret i32 9900}
+; RUN: opt < %s -indvars -S | grep "ret i32 9900"
 ; PR1179
 
 define i32 @test4() {
index 80b961ac7c344e122e2a61e8af8cf538840fe144..38f95bf1f50ceac28595de45e6d140535e8b6ced 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -indvars -S | grep {120, %bb2.bb3_crit_edge}
+; RUN: opt < %s -indvars -S | grep "120, %bb2.bb3_crit_edge"
 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"
 target triple = "i686-pc-linux-gnu"
 
index 271f8edf1980dc24592b8e136b1ae89be1f96b02..45297d624645553e92c1a969242c9b32a0d26944 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -scalar-evolution -analyze \
-; RUN:  | grep {\\-->  (zext i4 {-7,+,-8}<%loop> to i32)}
+; RUN:  | grep "\-->  (zext i4 {-7,+,-8}<%loop> to i32)"
 
 define fastcc void @foo() nounwind {
 entry:
index 166185a545d153cb8c970d00f5ee7d69e85f4447..a7b051b067ca73057c6953084aef5601f5ce8bd5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | grep {ret i32 1}
+; RUN: opt < %s -inline -S | grep "ret i32 1"
 ; ModuleID = 'short.opt.bc'
 
 define i32 @testBool(i1 %X) {
index 3505608b828335fe84e9da710751e3e17be2ecce..c8624c04c7eeafc1e60000e20379ad325ac00344 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -S  -inline -functionattrs -stats |& grep {Number of call sites deleted, not inlined}
-; RUN: opt %s -S  -inline -stats |& grep {Number of functions inlined}
+; RUN: opt %s -S  -inline -functionattrs -stats |& grep "Number of call sites deleted, not inlined"
+; RUN: opt %s -S  -inline -stats |& grep "Number of functions inlined"
 
 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-n8:16:32"
 target triple = "i386-apple-darwin9.8"
index 08b56385ac0738a18b6d38f6ec4ec860c6a87f1f..07274e7ecd25834dc13c4c1f1df8fcad1e33cac6 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -inline -constprop -S > %t
 ; RUN: not grep test_function %t
-; RUN: grep {ret i32 5} %t
+; RUN: grep "ret i32 5" %t
 
 
 ; test_function should not be emitted to the .s file.
index 658a422540aeba03847354c9e5f93c9addce8ce6..4c1574d83cf058f369c490dbc0ba42c43113c136 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -inline -S | \
-; RUN:    not grep {callee\[12\](}
+; RUN:    not grep "callee[12]("
 ; RUN: opt < %s -inline -S | not grep mul
 
 define internal i32 @callee1(i32 %A, i32 %B) {
index 1154bb481d30a268fe0b89a5a27295d2f4a67436..4233797b6d7286e19f0252efd14596d6b247064b 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -instcombine -S | \
-; RUN:    grep {ret i1 false}
+; RUN:    grep "ret i1 false"
 
 define i1 @test(i1 %V) {
         %Y = icmp ult i1 %V, false              ; <i1> [#uses=1]
index 3d887ddad02b5e9df44f6e9ea040aed74991dc40..0a513c647c1279e55feb1f44efdfe410ae1b106d 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -instcombine -S | \
-; RUN:   grep {ret i1 true}
+; RUN:   grep "ret i1 true"
 ; PR586
 
 @g_07918478 = external global i32               ; <i32*> [#uses=1]
index 5a74bd2ab7d61e99876c429ef0b3f7d6753e56a9..295006ca2318ca4c82b2e0e812d18605d71bb699 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -instcombine -S | \
-; RUN:   grep {icmp sgt}
+; RUN:   grep "icmp sgt"
 ; END.
 target datalayout = "e-p:32:32"
 target triple = "i686-pc-linux-gnu"
index c3700a00c428ca9208e7ea6d9b427e128a2f4a25..0c8eeceec81c83721fa5e3a44d6eac12720eb67a 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: opt < %s -instcombine -S | \
 ; RUN:   grep icmp | count 1
 ; RUN: opt < %s -instcombine -S | \
-; RUN:   grep {icmp ugt} | count 1
+; RUN:   grep "icmp ugt" | count 1
 ; END.
 
 target datalayout = "e-p:32:32"
index e5238a577d2d837aa5efee49864e8a9822679d7c..635a09ca93c7c19b8840eb51e17b575ae1f230a8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {icmp ugt}
+; RUN: opt < %s -instcombine -S | grep "icmp ugt"
 ; PR1107
 ; PR1940
 
index d2d215fa86d38c1fb8ba1ca7c8d1469079e5aa71..4fcfd264f4521943c2d7e055ac4454ad02b77f8e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {fcmp uno.*0.0}
+; RUN: opt < %s -instcombine -S | grep "fcmp uno.*0.0"
 ; PR1111
 define i1 @test(double %X) {
   %tmp = fcmp une double %X, %X
index bd15dce11acbd753b95d96713a2ad8e8673478bf..4d1b982f67661c74fe6afe5ee11e24202348ab64 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ugt.*, 1}
+; RUN: opt < %s -instcombine -S | grep "ugt.*, 1"
 
 define i1 @test(i32 %tmp1030) {
        %tmp1037 = icmp ne i32 %tmp1030, 40             ; <i1> [#uses=1]
index 05891a203ab0e3b76134df9f83867bd0b2ffe7f9..e2bebecded5289edfc79aac3c9c467ee1fbf948f 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt < %s -instcombine -mem2reg -S | grep {%A = alloca} 
+; RUN: opt < %s -instcombine -mem2reg -S | grep "%A = alloca" 
 ; RUN: opt < %s -instcombine -mem2reg -S | \
-; RUN:    not grep {%B = alloca}
+; RUN:    not grep "%B = alloca"
 ; END.
 
 ; Ensure that instcombine doesn't sink the loads in entry/cond_true into 
index 109e4a217fb53639803f301ae53c4e449333889e..826d68aefc1a688cf4e109fe864a3431ecba6883 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {icmp sle}
+; RUN: opt < %s -instcombine -S | grep "icmp sle"
 ; PR1244
 
 define i1 @test(i32 %c.3.i, i32 %d.292.2.i) {
index ca93af3a6910507c025136724eda240a68921a70..719da7083afcc28b73d0cef00bd5960a9ef2c888 100644 (file)
@@ -1,5 +1,5 @@
 ; For PR1248
-; RUN: opt < %s -instcombine -S | grep {ugt i32 .*, 11}
+; RUN: opt < %s -instcombine -S | grep "ugt i32 .*, 11"
 define i1 @test(i32 %tmp6) {
   %tmp7 = sdiv i32 %tmp6, 12     ; <i32> [#uses=1]
   icmp ne i32 %tmp7, -6           ; <i1>:1 [#uses=1]
index c79400413ff34b5f928f2965980e85dabc5c48be..7e9c9e28c94bd6fc8576a6a642fd27a32048549b 100644 (file)
@@ -1,6 +1,6 @@
 ; PR1271
 ; RUN: opt < %s -instcombine -S | \
-; RUN:    grep {icmp eq i32 .tmp.*, 2146435072}
+; RUN:    grep "icmp eq i32 .tmp.*, 2146435072"
 %struct..0anon = type { i32, i32 }
 %struct..1anon = type { double }
 
index 807efcf29f1995f61243f8c4eb36328f9dd853df..c4070a1b1dbef1c27da5e3a6fd33c3ba500fabc4 100644 (file)
@@ -1,6 +1,6 @@
 ; PR1271
 ; RUN: opt < %s -instcombine -S | \
-; RUN:    grep {ashr exact i32 %.mp137, 2}
+; RUN:    grep "ashr exact i32 %.mp137, 2"
 
 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"
 target triple = "i686-pc-linux-gnu"
index 15988b6dd99ad1f50ee38e671793038c0c443bcb..eb0c364bfa25c5ee68b5a0bc7da6c6e9ef4f98f4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {call.*sret}
+; RUN: opt < %s -instcombine -S | grep "call.*sret"
 ; Make sure instcombine doesn't drop the sret attribute.
 
 define void @blah(i16* %tmp10) {
index 62b93513b76c5542e333066510fa1638bf536d54..082b2155a010f59c976a2ad4c98ecfc1284dbd03 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ashr}
+; RUN: opt < %s -instcombine -S | grep "ashr"
 ; PR1499
 
 define void @av_cmp_q_cond_true(i32* %retval, i32* %tmp9, i64* %tmp10) {
index af539c12a339bc25e40ae655553637b617cfc1f8..b2b04d6bd2f79563a7757a1bc01b358b2b1c5112 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret i1 true}
+; RUN: opt < %s -instcombine -S | grep "ret i1 true"
 ; rdar://5278853
 
 define i1 @test(i32 %tmp468) {
index 4c5c367bcfae4449b91af8dc1bf2defe624a317d..95a445c54357012145302596ddd7529867c9a0cd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {call.*stacksave}
+; RUN: opt < %s -instcombine -S | grep "call.*stacksave"
 ; PR1745
 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-darwin8"
index 5282739d5c7fa6f5ed02790a02955adba0d1743f..6b83dd982dc891a9a719311f4394ff54a77ef2e2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {icmp eq i32 %In, 1}
+; RUN: opt < %s -instcombine -S | grep "icmp eq i32 %In, 1"
 ; PR1800
 
 define i1 @test(i32 %In) {
index cc89f6dd2056eace36ce64ee05bb2ae0241221d8..3745e872eee692ec38691ba336a3a578dd5c886d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {add} | count 1
+; RUN: opt < %s -instcombine -S | grep "add" | count 1
 
 define i32 @foo(i32 %a) {
 entry:
index af61c150a7f8f69bc3e32a46982e90242cea6196..917d3d9436bc5214d6bd237655a4dbb55e73bb04 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret i.* 0} | count 2
+; RUN: opt < %s -instcombine -S | grep "ret i.* 0" | count 2
 ; PR2048
 
 define i32 @i(i32 %a) {
index d26dec11e25d836d7b198c827f75f671c006467b..854f8cb0b562ea11b2fac69a92b86e0036edbd38 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {sdiv i8 \%a, 9}
+; RUN: opt < %s -instcombine -S | grep "sdiv i8 \%a, 9"
 ; PR2048
 
 define i8 @i(i8 %a) {
index da7e49ee847523935d8715640ac31ccae9565291..0fa4d715f28936947836f9d156a1336edc53847c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {16} | count 1
+; RUN: opt < %s -instcombine -S | grep "16" | count 1
 
 define i8* @bork(i8** %qux) {
   %tmp275 = load i8** %qux, align 1
index de08c32fb40e605407b810cc9364c4fb59055e18..dba6cdb565473763ecaae54776b8dda5bc28fb46 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {store volatile}
+; RUN: opt < %s -instcombine -S | grep "store volatile"
 
 define void @test() {
        %votf = alloca <4 x float>              ; <<4 x float>*> [#uses=1]
index 1286e3d63b27d10e6a6736eea88827bf713ebf9a..fd0217e9f4d7203e4e36312cf1b5a4af4ad73894 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {load volatile} | count 2
+; RUN: opt < %s -instcombine -S | grep "load volatile" | count 2
 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-darwin8"
 @g_1 = internal global i32 0           ; <i32*> [#uses=3]
index ebbd3a743f1c2f530f685dd7d20914a3bf4edafa..8022414d6fc9d193299b5d484a7873cb36a64533 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {load volatile} | count 2
+; RUN: opt < %s -instcombine -S | grep "load volatile" | count 2
 ; PR2262
 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-darwin8"
index bbd004213d0adfc78f2cf17a17fa71728ca57917..7a1c8447415362acdf8235e02a45ffc0c55b436f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {store i8} | count 3
+; RUN: opt < %s -instcombine -S | grep "store i8" | count 3
 ; PR2297
 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-darwin8"
index b34fc1e991d4e522649cfa7bdc0a6d684f19743f..a0e95a93982c0c2c2e6e9d335a0a5c3121390953 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret i1 false} | count 2
+; RUN: opt < %s -instcombine -S | grep "ret i1 false" | count 2
 ; PR2329
 
 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 2de5af7357372f7dd213ae127b786d1489d2c446..acb259be5eb1dede6f97d49360f42b56d8fea453 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret i1 false}
+; RUN: opt < %s -instcombine -S | grep "ret i1 false"
 ; PR2359
 define i1 @f(i8* %x) {
 entry:
index 541669365bdb3c9719b76cdf62f101d386c307b5..ed2069041d1ba953b41215f049dbf5b627d28f8b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {xor}
+; RUN: opt < %s -instcombine -S | grep "xor"
 ; PR2389
 
 define i1 @test(i1 %a, i1 %b) {
index a0fe47a6257b71d66ca59d806f08a5bf45352ccf..7c33f2dd05ee4341fdd98f02426f220db65883ac 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: opt < %s -instcombine -S > %t
-; RUN: grep {xor} %t
-; RUN: grep {and} %t
-; RUN: not grep {div} %t
+; RUN: grep "xor" %t
+; RUN: grep "and" %t
+; RUN: not grep "div" %t
 
 define i1 @foo1(i1 %a, i1 %b) {
   %A = sub i1 %a, %b
index 917d3ae1f84383c351951f4108be7eab1848a3af..ec946238d89767f19af39b9763af76611f5f2ec0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {phi i32} | count 2
+; RUN: opt < %s -instcombine -S | grep "phi i32" | count 2
 
 define void @test() nounwind  {
 entry:
index 08959c9c7c088da844a532d85cc30ec0671c21f7..cc469262d53acbfe8a52a70e67c05c4760aa8525 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {store i32} | count 2
+; RUN: opt < %s -instcombine -S | grep "store i32" | count 2
 
 @g_139 = global i32 0           ; <i32*> [#uses=2]
 
index aed1b14ce316595658b5b4a88fe4b74c6500b3a8..bf5e96b763f07331afe9e74b95622400d573d199 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {store i8} | count 2
+; RUN: opt < %s -instcombine -S | grep "store i8" | count 2
 
 define i32 @a(i8* %s) nounwind  {
 entry:
index c3371c6ae73d512efd6d2c3b609a1b65298f167d..80bd83bc6ba0d914c24fac2a57f556d0c30ea009 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {icmp eq i32 %In, 15}
+; RUN: opt < %s -instcombine -S | grep "icmp eq i32 %In, 15"
 ; PR2479
 ; (See also PR1800.)
 
index 4f4709b6f27ad3c31b8af68b0d108a696e9fd70e..9c4c1b538c4b38b803fa93a398279a924849ece0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {call.*llvm.stackrestore}
+; RUN: opt < %s -instcombine -S | grep "call.*llvm.stackrestore"
 ; PR2488
 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 = "i386-pc-linux-gnu"
index 8245b4d017b094f4ee8dfc9b58bdea0a8da5d133..cfca72adf87d7f6cb55161ad441d84a2fc4f7847 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {icmp ne i32 \%a}
+; RUN: opt < %s -instcombine -S | grep "icmp ne i32 \%a"
 ; PR2330
 
 define i1 @foo(i32 %a) nounwind  {
index 009115966f5845775b721d2251d80229c1487c90..a3d44cb2467aa1b9850f3cff9173f9975c377a7e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep -v {i32 8}
+; RUN: opt < %s -instcombine -S | grep -v "i32 8"
 ; PR2330
 
 define i32 @a(i32 %a) nounwind  {
index 1ed53237aab3bdd83f440fc3f6b4189ff7ba2b1b..dcf4befa8605672b9bdc75e06f8787fef25742d9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {load volatile} | count 2
+; RUN: opt < %s -instcombine -S | grep "load volatile" | count 2
 ; PR2496
 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-darwin8"
index e91153202519a06ea2917c6674d2850d0fcf8fdb..786f0c55bbe2334fdc0ee7335518c896c1cbd18b 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt < %s -instcombine -S | grep {%C = xor i1 %A, true}
-; RUN: opt < %s -instcombine -S | grep {ret i1 false}
+; RUN: opt < %s -instcombine -S | grep "%C = xor i1 %A, true"
+; RUN: opt < %s -instcombine -S | grep "ret i1 false"
 ; PR2539
 
 define i1 @test1(i1 %A) {
index be1f8c294375093d0bce4cc6d25b688f45ff1cbe..18c9954283431a61442f6b852f5edb98ceb998b7 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt < %s -instcombine -S | grep {lshr.*3}
-; RUN: opt < %s -instcombine -S | grep {call .*%cond}
+; RUN: opt < %s -instcombine -S | grep "lshr.*3"
+; RUN: opt < %s -instcombine -S | grep "call .*%cond"
 ; PR2506
 
 ; We can simplify the operand of udiv to '8', but not the operand to the
index 31ea94a5d832c21df8358b6b30e11a11f15018e9..4d00d495a07f412d38536f6ff0d44f7d41c8d682 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {or i1}
+; RUN: opt < %s -instcombine -S | grep "or i1"
 ; PR2844
 
 define i32 @test(i32 %p_74) {
index fd36d86a94844d2734cdcdfe4c1666481c87b3b1..cf29f8d9bf24618f42701b2c1dd4b087ab508e6f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret i1 false}
+; RUN: opt < %s -instcombine -S | grep "ret i1 false"
 ; PR2697
 
 define i1 @x(i32 %x) nounwind {
index aa077e2ac3b324177d481a8458333964a6eaeb96..679cc5f73d77f9f179546f3c2a317141586c3361 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret i1 true}
+; RUN: opt < %s -instcombine -S | grep "ret i1 true"
 ; PR2993
 
 define i1 @foo(i32 %x) {
index e4c7ebcefc7ef14254260eef966cb57abb257b28..75bd5e0175f93968ce4c539625e146c284d04511 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {i8 2, i8 2}
+; RUN: opt < %s -instcombine -S | grep "i8 2, i8 2"
 ; PR2756
 
 define <2 x i8> @foo(<2 x i8> %x) {
index a61a94ecbf3a36abb19c79609921bc2125dc6cb6..50ea2f42b0ca8795f7f0246f2b3f5cbf366fc780 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -instcombine -S > %t
-; RUN: grep {, align 4} %t | count 3
-; RUN: grep {, align 8} %t | count 3
+; RUN: grep ", align 4" %t | count 3
+; RUN: grep ", align 8" %t | count 3
 ; rdar://6480438
 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.6"
index ce62f35c10353396f8adc2f016f74fc63b28282d..949fc592203fc893908c83bd1b5e91e24d16c7d5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {store.*addrspace(1)}
+; RUN: opt < %s -instcombine -S | grep "store.*addrspace(1)"
 ; PR3335
 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.6"
index 142134791efe0a62939c2b41997c610af1228963..68c51b43fc3acb7167e60107eb84fe1e4bf07323 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -simplifycfg -instcombine -S | grep 0x7FF8000000000000 | count 12
-; RUN: opt < %s -simplifycfg -instcombine -S | grep {0\\.0} | count 3
-; RUN: opt < %s -simplifycfg -instcombine -S | grep {3\\.5} | count 1
+; RUN: opt < %s -simplifycfg -instcombine -S | grep "0\.0" | count 3
+; RUN: opt < %s -simplifycfg -instcombine -S | grep "3\.5" | count 1
 ;
 
 ; ModuleID = 'apf.c'
index c3ee9a35ba39782d0a4d2f4b9d70ea2bc62368e8..666b02e8ed09d676f2523c8a4d592150941e10a5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {%B = add i8 %b, %x}
+; RUN: opt < %s -instcombine -S | grep "%B = add i8 %b, %x"
 ; PR2698
 
 declare void @use1(i1)
index f56fc388eb5b06354e64f5f1429692974442de1d..cb8a77c23bacdc84495c0a6043837eb568eddb14 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret i32 3679669}
+; RUN: opt < %s -instcombine -S | grep "ret i32 3679669"
 ; PR3595
 
 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 0a07bf34bac917c71a519ef3e1f0040c9d90f4d3..4d4797720c5318c8e41e1cf92d579ff03e7f1a1d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ashr i32 %val, 31}
+; RUN: opt < %s -instcombine -S | grep "ashr i32 %val, 31"
 ; PR3851
 
 define i32 @foo2(i32 %val) nounwind {
index 244b22a14dec00fffdbf116fc840dbacd204571b..b79edf66b26166d3edd72d5f21ca73938bc89b0d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {mul i64}
+; RUN: opt < %s -instcombine -S | grep "mul i64"
 ; rdar://6762288
 
 ; Instcombine should not promote the mul to i96 because it is definitely
index e5355b8d3c56b1513cb81eb02836a1a8940ed45d..468c1cd8bbc49e27d6d71bb4c1fb9f2bdd94028b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {store i32 0,}
+; RUN: opt < %s -instcombine -S | grep "store i32 0,"
 ; PR4366
 
 define void @a() {
index 46b6c19f9a5b784bb124ac1d1e8e2045af71b94b..8c1f307c79c0860749a92ba43b84219fdb7b7321 100644 (file)
@@ -1,7 +1,7 @@
 ; This is the sequence of stuff that the Java front-end expands for a single 
 ; <= comparison.  Check to make sure we turn it into a <= (only)
 
-; RUN: opt < %s -instcombine -S | grep {icmp sle i32 %A, %B}
+; RUN: opt < %s -instcombine -S | grep "icmp sle i32 %A, %B"
 
 define i1 @le(i32 %A, i32 %B) {
         %c1 = icmp sgt i32 %A, %B               ; <i1> [#uses=1]
index cc5747866311a42daf08e6175c37169c2a4e65f5..3edb392ed184f2e5dfa8bf9147f773bf18ad3f60 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {add nsw i32}
+; RUN: opt < %s -instcombine -S | grep "add nsw i32"
 ; RUN: opt < %s -instcombine -S | grep sext | count 1
 
 ; Should only have one sext and the add should be i32 instead of i64.
index 98a8cb452a6ceece91b6f0c9a10d6f8aeaf11359..40edf7114a068845703f3e34738a27489630cb18 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {add nsw i32}
+; RUN: opt < %s -instcombine -S | grep "add nsw i32"
 
 define double @x(i32 %a, i32 %b) nounwind {
   %m = lshr i32 %a, 24
index a3a09f27ed957511a3d974d39ba57e5f641ca948..ad8791d1e7eecc5bcfb1996b66917e83f9829edd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep { sub } | count 1
+; RUN: opt < %s -instcombine -S | grep " sub " | count 1
 ; PR2047
 
 define i32 @l(i32 %a, i32 %b, i32 %c, i32 %d) {
index b9b6f702eb6276c33a1234627149c23f99f7128b..1fb7193821661f009e9cf4e9ba5e43cde1b498c5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {icmp s\[lg\]t i32 %n, 0} | count 16
+; RUN: opt < %s -instcombine -S | grep "icmp s[lg]t i32 %n, 0" | count 16
 
 ; Instcombine should recognize that this code can be adjusted
 ; to fit the canonical smax/smin pattern.
index eeca5c0b1f61522242b769330ff8eb475aa9b13e..5bca46d5a21df486704588399d1e870f0e129ded 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {align 16} | count 1
+; RUN: opt < %s -instcombine -S | grep "align 16" | count 1
 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
 
 ; A multi-dimensional array in a nested loop doing vector stores that
index 9dce7b4e6fb3962bb660c6dd3801f1fcd593d5e8..a42140be2805203a338a680e28fc553388bb7c6c 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt < %s -instcombine -S | grep {and i32 %x, %y} | count 4
-; RUN: opt < %s -instcombine -S | not grep {or}
+; RUN: opt < %s -instcombine -S | grep "and i32 %x, %y" | count 4
+; RUN: opt < %s -instcombine -S | not grep "or"
 
 define i32 @func1(i32 %x, i32 %y) nounwind {
 entry:
index b4224b38b1c24ed5536dda8bf49f380948722870..0ae12a36c2b81a800d624fd493bddb2bda4e29dc 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt < %s -instcombine -S | grep {and i32 %a, 1} | count 4
-; RUN: opt < %s -instcombine -S | grep {or i32 %0, %b} | count 4
+; RUN: opt < %s -instcombine -S | grep "and i32 %a, 1" | count 4
+; RUN: opt < %s -instcombine -S | grep "or i32 %0, %b" | count 4
 
 
 define i32 @func1(i32 %a, i32 %b) nounwind readnone {
index 1a3340ac5667565bc26613bfb6460cde40a4b87c..818ae6659b260127ea8d83b5d8d11f6a139cf41f 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -instcombine -S | \
-; RUN:    egrep {shl|lshr|ashr} | count 3
+; RUN:    egrep "shl|lshr|ashr" | count 3
 
 define i41 @test0(i41 %A, i41 %B, i41 %C) {
        %X = shl i41 %A, %C
index a6fd83742c28f265b35fe23e282bbaa5234df105..318ca7339f1aaf58518631258cdaff343ff80591 100644 (file)
@@ -1,5 +1,5 @@
 ; Tests to make sure bit counts of constants are folded
-; RUN: opt < %s -instcombine -S | grep {ret i32 19}
+; RUN: opt < %s -instcombine -S | grep "ret i32 19"
 ; RUN: opt < %s -instcombine -S | \
 ; RUN:   grep -v declare | not grep llvm.ct
 
index 168b3e83330d2991e3c91a6c4daac3bb3ce43dca..ba7df3125f4ef382afea9bf73642b7fe2b01b8bd 100644 (file)
@@ -1,7 +1,7 @@
 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-n8:16:32"
 
 ; RUN: opt < %s -instcombine -S | \
-; RUN:    grep {call.*llvm.bswap} | count 6
+; RUN:    grep "call.*llvm.bswap" | count 6
 
 define i32 @test1(i32 %i) {
        %tmp1 = lshr i32 %i, 24         ; <i32> [#uses=1]
index 1d2cc53210feaaa686cbbf67ec073354333b9d78..1dd45225410169377cfa872139927a4947ac6462 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret double .sy}
+; RUN: opt < %s -instcombine -S | grep "ret double .sy"
 
 define internal double @ScaleObjectAdd(double %sx, double %sy, double %sz) nounwind {
 entry:
index 7c7f1abc0ca662211aefd272227d8815ce2a9a3f..8fe673d8c9c07a7ed791baf18d0dc9ead80312cf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret i32 %A}
+; RUN: opt < %s -instcombine -S | grep "ret i32 %A"
 ; RUN: opt < %s -die -S | not grep call.*llvm
 
 define i32 @test(i32 %A) {
index 9e9be7f56575dc5a977888900b327f4268d2332e..6645d99035fa6c7880b4a1b7f47fe39cd6fc96f6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep alloca | grep {align 16}
+; RUN: opt < %s -instcombine -S | grep alloca | grep "align 16"
 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.6"
 
index 35ece426617c059594cf355eb98b341b5a5fa78a..b2fbc0b882db66724ba3b5fad1b800f78441e986 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -instcombine -S | \
-; RUN:    grep {call float bitcast} | count 1
+; RUN:    grep "call float bitcast" | count 1
 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
        %struct.NSObject = type { %struct.objc_class* }
        %struct.NSArray = type { %struct.NSObject }
index 5382abf821254f99e64e0aa8ef3d6f7c6923e783..0249951966dcc349cb43a1176279d94a7a8e7964 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {align 1}
+; RUN: opt < %s -instcombine -S | grep "align 1"
 ; END.
 
        %struct.p = type <{ i8, i32 }>
index 1d932d27f78d79a58a0a9e540f624e9f2077d6f9..2263cb20ec5e23ac6d754b78d426d56fca2b269d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {, align 16} | count 14
+; RUN: opt < %s -instcombine -S | grep ", align 16" | count 14
 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
 
 @x = external global <2 x i64>, align 16
index 04aac981457550e5ac8e4bb2c41f28091d865563..bcc9e188b965f48c5e466bcc7d431771c296aedf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {load double}
+; RUN: opt < %s -instcombine -S | grep "load double"
 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-darwin8"
 
index 8c6a0e0bbcecf6b1c58346b979498bdeb5b1546b..8b90e0d7f619c13df15d707647b758221ff08868 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {fadd double .sx, .sy}
+; RUN: opt < %s -instcombine -S | grep "fadd double .sx, .sy"
 ; The 'or' has multiple uses, make sure that this doesn't prevent instcombine
 ; from propagating the extends to the truncs.
 
index 1b96a06eeb7ff02e6a08f4a13f667af0a5796ee0..5dd13a09662177412404140af23f2cc2b3fa2b20 100644 (file)
@@ -1,7 +1,7 @@
 ; This file contains various testcases that check to see that instcombine
 ; is narrowing computations when possible.
 ; RUN: opt < %s -instcombine -S | \
-; RUN:    grep {ret i1 false}
+; RUN:    grep "ret i1 false"
 
 ; test1 - Eliminating the casts in this testcase (by narrowing the AND
 ; operation) allows instcombine to realize the function always returns false.
index 61365b4848abe8313a5539f406aae0df79a98de1..2ce62468dc77db62ad68f6f3d2d07bf75c742f15 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret i32 10}
+; RUN: opt < %s -instcombine -S | grep "ret i32 10"
 
 @g1 = available_externally constant i32 1
 @g2 = linkonce_odr constant i32 2
index 1495ee49709f0f743e2742dd5b049ee143b591e7..8847cb73281ab25bdbbf2b79868a520801d806ca 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt < %s -instcombine -S | grep {xor i32 %a, %b} | count 4
-; RUN: opt < %s -instcombine -S | not grep {and}
+; RUN: opt < %s -instcombine -S | grep "xor i32 %a, %b" | count 4
+; RUN: opt < %s -instcombine -S | not grep "and"
 
 define i32 @func1(i32 %a, i32 %b) nounwind readnone {
 entry:
index 267174970941d5711b01b9b73b127b68ad1538e6..25c9cea9b7705a04431b337c8f0493ed532335c7 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -S -instcombine > %t
-; RUN: grep {= getelementptr} %t | count 20
-; RUN: grep {= phi} %t | count 13
+; RUN: grep "= getelementptr" %t | count 20
+; RUN: grep "= phi" %t | count 13
 
 ; Don't push the geps through these phis, because they would require
 ; two phis each, which burdens the loop with high register pressure.
index 9bcaa43a80baee9e6d2da051deefd8dc2a695130..e8aeb2afb9cf2f6bf46052dcaddd42c3bc64b7c5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {insertelement <4 x float> undef}
+; RUN: opt < %s -instcombine -S | grep "insertelement <4 x float> undef"
 
 ; Instcombine should be able to prove that none of the
 ; insertelement's first operand's elements are needed.
index bef0cf841bfaa3b37cc1a8ae2059b6c16561decb..b63468de53e1c75962b5e98de0694cfeac256188 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret i32 1}
+; RUN: opt < %s -instcombine -S | grep "ret i32 1"
 
 declare void @test2()
 
index 29ae5a79824a0a3e7c5d9ad351decdf9de38e135..a002b2a853f5984db8035d6f8a08359f56081dff 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret <4 x float> <float 0.000000e+00, float 0.000000e+00, float 0x7FF0000000000000, float 0x7FF0000000000000>}
+; RUN: opt < %s -instcombine -S | grep "ret <4 x float> <float 0.000000e+00, float 0.000000e+00, float 0x7FF0000000000000, float 0x7FF0000000000000>"
 
 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 9a08c6446c528d8f1f5a99b2c3550f3d3df010db..ab0e7e7ff9feffff8eef03348c4d3b8ffcbf3252 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: opt < %s -instcombine -S > %t
 ; RUN: not grep zext %t
 ; RUN: not grep slt %t
-; RUN: grep {icmp ult} %t
+; RUN: grep "icmp ult" %t
 
 ; Instcombine should convert the zext+slt into a simple ult.
 
index af824a445df0ece08d2962a06b9b0f4334a16c83..3458714b8daec94a98224a893af2b7cb6422a067 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret i1 false}
+; RUN: opt < %s -instcombine -S | grep "ret i1 false"
 ; PR2276
 
 define i1 @f(i32 %x) {
index 2fc84140b308f037276f26b8b1858e2f72f651b0..80c2ee88f340cf1e1f4e4bbc0303847375aa1aef 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {align 32} | count 1
+; RUN: opt < %s -instcombine -S | grep "align 32" | count 1
 
 ; It's tempting to have an instcombine in which the src pointer of a
 ; memcpy is aligned up to the alignment of the destination, however
index 0fcaefac6224857e8d1122d97615d9bb1ba09e0e..f5c7a6f9f3f95366c81c177f5e3ad6d45fef975f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {call.*stackrestore} | count 1
+; RUN: opt < %s -instcombine -S | grep "call.*stackrestore" | count 1
 
 declare i8* @llvm.stacksave()
 declare void @llvm.stackrestore(i8*)
index bfdd98cddfafad1319d685e20eb1b918e3e1328d..064e721768b32686eebde042f4a076b7ae4f4c4d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret i64 0} | count 2
+; RUN: opt < %s -instcombine -S | grep "ret i64 0" | count 2
 
 define i64 @foo(i32 %x) nounwind {
   %y = lshr i32 %x, 1
index 229f1a85e860cc1180f8ef71eba20433c9acdaf4..3e94ab5b2c3364149d7614b623835ef653ae81f8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {= or i32 %x, -5}
+; RUN: opt < %s -instcombine -S | grep "= or i32 %x, -5"
 
 @.str = internal constant [5 x i8] c"foo\0A\00"                ; <[5 x i8]*> [#uses=1]
 @.str1 = internal constant [5 x i8] c"bar\0A\00"               ; <[5 x i8]*> [#uses=1]
index eedf882518bf35912e78f6a2c1c04697fbd7ec6a..e35fa5e551fb140fd986a1c1b1ba79af74cb3916 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {ret <4 x i32> %A}
+; RUN: opt < %s -instcombine -S | grep "ret <4 x i32> %A"
 
 ; PR1286
 define <4 x i32> @test1(<4 x i32> %A) {
index 2be4359923ce6cf0c41582769563b7aacf167fb8..b4c41f6d297d62ef667c743dc9f24b4824be4dc7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {fadd float}
+; RUN: opt < %s -instcombine -S | grep "fadd float"
 
 
 define float @test(<4 x float> %A, <4 x float> %B, float %f) {
index acb11c52adb39c5d88d636c1c1aa5968a155a526..b1ed49eefa876a25799d7a010f7e62c6d1513e26 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {srem <4 x i32>}
+; RUN: opt < %s -instcombine -S | grep "srem <4 x i32>"
 
 define <4 x i32> @foo(<4 x i32> %t, <4 x i32> %u)
 {
index 22566781180d6dd93dc10fc215ad24249ee8b0e4..7cab199a58f4764a34adb8ebd1dbd07495f1c496 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt < %s -instcombine -S | grep {store volatile}
-; RUN: opt < %s -instcombine -S | grep {load volatile}
+; RUN: opt < %s -instcombine -S | grep "store volatile"
+; RUN: opt < %s -instcombine -S | grep "load volatile"
 
 @x = weak global i32 0         ; <i32*> [#uses=2]
 
index 592b8a172f8e1fcb93a16f3d6716f99744e77f0f..315033dd88827145e23f58337434488959b46dbc 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -instcombine -S | \
-; RUN:   grep {and i32 %Y, 8}
+; RUN:   grep "and i32 %Y, 8"
 
 define i32 @test1(i8 %X) {
         %Y = zext i8 %X to i32          ; <i32> [#uses=1]
index 9521101e736a923f24cdde8e321719952119626c..e5f316b8111c3ebca5cc91731b88d85056e98a37 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {zext } | count 1
+; RUN: opt < %s -instcombine -S | grep "zext " | count 1
 ; PR1570
 
 define i32 @test2(float %X, float %Y) {
index b5d1065e67936dff338e4a3407f0cd997f4f5088..6a50d4f1a32cde7c6725c001f3f1d1ed1fd632bf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -jump-threading -S | grep {ret i32 0}
+; RUN: opt < %s -jump-threading -S | grep "ret i32 0"
 ; PR3138
 
 define i32 @jt() {
index a4914f96348eca155b4b571ffe47d0ca9dd6d3a0..c6e9faa17116457ce9d8b3c526d91c9d809f434d 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -jump-threading -loop-rotate -instcombine -indvars -loop-unroll -simplifycfg -S -verify-dom-info -verify-loop-info > %t
-; RUN: grep {store volatile} %t | count 3
-; RUN: not grep {br label} %t
+; RUN: grep "store volatile" %t | count 3
+; RUN: not grep "br label" %t
 
 ; Jump threading should not prevent this loop from being unrolled.
 
index 153458579b89aafc7c4e6f9cb60bb35290f361a0..dd43c8837901a1248c23ae092550f9b109714768 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -loop-simplify -lcssa -S | \
-; RUN:   grep {%%SJE.0.0.lcssa = phi .struct.SetJmpMapEntry}
+; RUN:   grep "%%SJE.0.0.lcssa = phi .struct.SetJmpMapEntry"
 
         %struct.SetJmpMapEntry = type { i8*, i32, %struct.SetJmpMapEntry* }
 
index ad4f1447b29285d253792d7ff9c038d0fcf0a7ca..575f8163c94bb31b71d47de47ceae1dda29b8609 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: opt < %s -lcssa -S | \
-; RUN:    grep {%X.1.lcssa}
+; RUN:    grep "%X.1.lcssa"
 ; RUN: opt < %s -lcssa -S | \
-; RUN:    not grep {%X.1.lcssa1}
+; RUN:    not grep "%X.1.lcssa1"
 
 declare i1 @c1()
 
index 23ab2c0ce056c3a616cc7280de66e97c657f7b36..4b05ad99530531b470f3a53946e6f76f8e7820c5 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: opt < %s -lcssa -S | \
-; RUN:   grep {X3.lcssa = phi i32}
+; RUN:   grep "X3.lcssa = phi i32"
 ; RUN: opt < %s -lcssa -S | \
-; RUN:   grep {X4 = add i32 3, %X3.lcssa}
+; RUN:   grep "X4 = add i32 3, %X3.lcssa"
 
 define void @lcssa(i1 %S2) {
 entry:
index c389c9cfa878c55c267786e3383b2f11c70640aa..71ae134e314cfff63ef9d2b483f49333ecb16b44 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -lcssa -S -verify-loop-info | grep {\[%\]tmp33 = load i1\\*\\* \[%\]tmp}
+; RUN: opt < %s -lcssa -S -verify-loop-info | grep "[%]tmp33 = load i1\*\* [%]tmp"
 ; PR6546
 
 ; LCSSA doesn't need to transform uses in blocks not reachable
index 4df6ea758103907cb31cee673c3324ccff5da495..94511cc9c15636d651feed82e447dc3fd5677df2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -licm -S | grep {store volatile}
+; RUN: opt < %s -licm -S | grep "store volatile"
 ; PR1435
 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"
 target triple = "i686-apple-darwin8"
index 9814d4ad93f15eb8690fc10587c11886cf38e0be..ca05f437e5cfc82dcc797c110b9243e6b2c7384d 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -loop-simplify -lcssa -verify-loop-info -verify-dom-info -S \
-; RUN:   | grep -F {indirectbr i8* %x, \[label %L0, label %L1\]} \
+; RUN:   | grep -F "indirectbr i8* %x, [label %L0, label %L1]" \
 ; RUN:   | count 6
 
 ; LoopSimplify should not try to transform loops when indirectbr is involved.
index 40ad2f44e717e178b02ce2788cd4b1f84ad7d4cc..8de5938939dc5e2e4e632f9b007f567e1fe3b210 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -loop-simplify -loop-rotate -instcombine -indvars -S -verify-loop-info -verify-dom-info > %t
 ; RUN: not grep sext %t
-; RUN: grep {phi i64} %t | count 1
+; RUN: grep "phi i64" %t | count 1
 
 ; Loopsimplify should be able to merge the two loop exits
 ; into one, so that loop rotate can rotate the loop, so
index 23ac7f257a38498ca4a89eacdf4d7b2eae11e050..854c612f02ddbf6a168cd60e77f2c72538b39c3c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S < %s -indvars | opt -analyze -iv-users | grep {%cmp = icmp slt i32} | grep {= \{%\\.ph,+,1\}<%for.cond>}
+; RUN: opt -S < %s -indvars | opt -analyze -iv-users | grep "%cmp = icmp slt i32" | grep "= {%\.ph,+,1}<%for.cond>"
 ; PR8079
 
 ; LoopSimplify should invalidate indvars when splitting out the
index 4c5db04b21d9131ee875c290639ac28856669fb3..d65213d06af3c0b6108085402356fd2f72d6d035 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -loop-reduce -S \
-; RUN:    | grep {icmp eq i2 %lsr.iv.next, %xmp4344}
+; RUN:    | grep "icmp eq i2 %lsr.iv.next, %xmp4344"
 
 ; Don't reverse the iteration if the rhs of the compare is defined
 ; inside the loop.
index 80efb9f87e53f0aa1e431a50622c619fa849b7c2..7b569713a93d8c29a9140f7bb2a18c6b3391bc02 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -loop-reduce -S | grep {phi\\>} | count 8
+; RUN: opt < %s -loop-reduce -S | grep "phi\>" | count 8
 ; PR2570
 
 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 59f14fcd1ce51864a9882aed78688f6e59bd32a3..011824116b3a0fffe8c12b910a84d36c98706152 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -analyze -iv-users | grep {\{1,+,3,+,2\}<%loop> (post-inc with loop %loop)}
+; RUN: opt < %s -analyze -iv-users | grep "{1,+,3,+,2}<%loop> (post-inc with loop %loop)"
 
 ; The value of %r is dependent on a polynomial iteration expression.
 
index 5ed37dd6a24729832f3231ba3be429b0b695e862..005e4c6b22c1c254c049075e15c2dcd18fedece8 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -loop-reduce -S | \
-; RUN:   grep {add i32 %indvar630.ui, 1}
+; RUN:   grep "add i32 %indvar630.ui, 1"
 ;
 ; Make sure that the use of the IV outside of the loop (the store) uses the 
 ; post incremented value of the IV, not the preincremented value.  This 
index f080191ef860a62743580450987855d6e65c34bb..8829087d143cae9db3f7dbce829a6a1926e6e46b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -mergefunc -stats -disable-output |& grep {functions merged}
+; RUN: opt < %s -mergefunc -stats -disable-output |& grep "functions merged"
 
 define i32 @foo1(i32 %x) {
 entry:
index 6954fcec3daf60d2afc6fcd9c00cb41fe17bcc5b..96ba4a56aacb38f56b568250613dda961dfe0f79 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -mergefunc -stats -disable-output < %s |& grep {functions merged}
+; RUN: opt -mergefunc -stats -disable-output < %s |& grep "functions merged"
 
 ; This test is checks whether we can merge
 ;   vector<intptr_t>::push_back(0)
index 33e44d4ba753ac1490397c7b398eb8fd5821433a..f66148bb4abcee2ba7f2911b3b9f63751de33490 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -reassociate -instcombine -S |\
-; RUN:   grep {ret i32 0}
+; RUN:   grep "ret i32 0"
 
 define i32 @f(i32 %a0, i32 %a1, i32 %a2, i32 %a3, i32 %a4) {
        %tmp.2 = add i32 %a4, %a3               ; <i32> [#uses=1]
index 8b2cbc98c47a4a5468908ec9340a567c5be93a35..d9a5336fbfb493704424c1a73a1e8578fed2e20e 100644 (file)
@@ -1,7 +1,7 @@
 ; With shl->mul reassociation, we can see that this is (shl A, 9) * A
 ;
 ; RUN: opt < %s -reassociate -instcombine -S |\
-; RUN:    grep {shl .*, 9}
+; RUN:    grep "shl .*, 9"
 
 define i32 @test(i32 %A, i32 %B) {
        %X = shl i32 %A, 5              ; <i32> [#uses=1]
index 4adfde3bfe9c1c1f58afea561899915e207c5d97..c847b4eaca3d4251f35b9d6dd475ea3ce6b16c4f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -sccp -S | grep {ret i32 1}
+; RUN: opt < %s -sccp -S | grep "ret i32 1"
 
 ; This function definitely returns 1, even if we don't know the direction
 ; of the branch.
index ec69ce05fe940367cd06a2bec2398183105f3d77..ede1a32c5f7adbc3dc007bacfe3a74ca4bbe1e28 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -sccp -S | \
-; RUN:   grep {ret i1 false}
+; RUN:   grep "ret i1 false"
 
 define i1 @foo() {
        %X = and i1 false, undef                ; <i1> [#uses=1]
index a40455cf5d009ebfcd9f1b2018883c769599e68e..e7168dda0891ca138d2c03a70fb4e407bbed9451 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -sccp -S | grep {ret i32 %Z}
+; RUN: opt < %s -sccp -S | grep "ret i32 %Z"
 ; rdar://5778210
 
 declare {i32, i32} @bar(i32 %A) 
index f62ed7048e05ca26e91fba554c9c524ae39f3c68..c05f897f1a374fbee641c4e91e5f0cb1511b4da2 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt < %s -ipsccp -S | grep {ret i32 42}
-; RUN: opt < %s -ipsccp -S | grep {ret i32 undef}
+; RUN: opt < %s -ipsccp -S | grep "ret i32 42"
+; RUN: opt < %s -ipsccp -S | grep "ret i32 undef"
 ; PR3325
 
 define i32 @main() {
index 1e75878f3aeb5675063f7e30b4e63ebc65ffec75..888b9e1d22d527ceca1a089e83c774774d8da1fc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -sccp -S | grep {ret i101 12}
+; RUN: opt < %s -sccp -S | grep "ret i101 12"
 
 @Y = constant [6 x i101] [ i101 12, i101 123456789000000, i101 -12,i101 
 -123456789000000, i101 0,i101 9123456789000000]
index 862426020e4f25c301216dd5161e52d199ceaf78..572f97c572ee527ef27dd58792e0aa9f2a1711df 100644 (file)
@@ -4,7 +4,7 @@
 
 ; RUN: opt < %s -sccp -S | not grep and
 ; RUN: opt < %s -sccp -S | not grep trunc
-; RUN: opt < %s -sccp -S | grep {ret i100 -1}
+; RUN: opt < %s -sccp -S | grep "ret i100 -1"
 
 define i100 @test(i133 %A) {
         %B = and i133 0, %A
index fda40f53fe1f721c6b26ad080dde74f4cbd0e3ab..f6f18fe66f893f1f2b79be1e846c1ae75cf39b1f 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt < %s -ipsccp -S | grep -v {ret i512 undef} | \
-; RUN:   grep {ret i8 2}
+; RUN: opt < %s -ipsccp -S | grep -v "ret i512 undef" | \
+; RUN:   grep "ret i8 2"
 
 define internal i512 @test(i1 %B) {
        br i1 %B, label %BB1, label %BB2
index b3d845c7eec53b22739183c5b5253a57f963885c..45f6f44a0eb2a8c615053d48d4367f105e3500af 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -sccp -S | grep {ret i32 0}
+; RUN: opt < %s -sccp -S | grep "ret i32 0"
 
 ; Test that SCCP has basic knowledge of when and/or nuke overdefined values.
 
index eb1c945e34eb8e53707ae5f030480d4f9e6efe6f..0b5e4152c423b20f2c8cdfaf629cb300e049f8d8 100644 (file)
@@ -1,7 +1,7 @@
 ; Scalar replacement was incorrectly promoting this alloca!!
 ;
 ; RUN: opt < %s -scalarrepl -S | \
-; RUN:   sed {s/;.*//g} | grep {\\\[}
+; RUN:   sed "s/;.*//g" | grep "\["
 
 define i8* @test() {
        %A = alloca [30 x i8]           ; <[30 x i8]*> [#uses=1]
index 00e43a79043d00687001f28197e11e38a196a87c..77c7b54b63fffa0ecb950fc655ed94c6b81d39ee 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -scalarrepl -S | grep {alloca %%T}
+; RUN: opt < %s -scalarrepl -S | grep "alloca %%T"
 
 %T = type { [80 x i8], i32, i32 }
 declare i32 @.callback_1(i8*)
index 8bc4ff0b3ffc776d9b6c5c24322a20bc97af38dd..a53f3deadc7229e58e296d0614a309af50da10b6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -scalarrepl -instcombine -S | grep {ret i8 17}
+; RUN: opt < %s -scalarrepl -instcombine -S | grep "ret i8 17"
 ; rdar://5707076
 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-n8:16:32"
 target triple = "i386-apple-darwin9.1.0"
index 71ba601833d033a36d982f812f36ca7a04874f70..f597613ef2b7467b735516eabaa12781fa6ec0a5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -scalarrepl -S | grep {call.*mem} 
+; RUN: opt < %s -scalarrepl -S | grep "call.*mem" 
 ; PR2369
 
 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 7cccb19714a8d65b7bf200683c4e2e4274f51898..b2a9d43b2277ae598a9e976c00a55c9c90a2b39d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -scalarrepl -S | grep {s = alloca .struct.x}
+; RUN: opt < %s -scalarrepl -S | grep "s = alloca .struct.x"
 ; PR2423
 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-darwin8"
index 9c0f2030c0e4457e5c85a860e2bc984e462a89af..3c8a364edcdcaec0b49dfcc3937da9a4ca4fe486 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -scalarrepl -instcombine -S | grep {ret i32 %x}
+; RUN: opt < %s -scalarrepl -instcombine -S | grep "ret i32 %x"
 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 = "i386-pc-linux-gnu"
 
index f8ab875bac4b9abbabf358f55a3b5f6544f7834a..67228a7a3cec09774b06d1cdec98afef15566179 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -scalarrepl -instcombine -inline -instcombine -S | grep {ret i32 42}
+; RUN: opt < %s -scalarrepl -instcombine -inline -instcombine -S | grep "ret i32 42"
 ; PR3489
 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-f80:128:128"
 target triple = "x86_64-apple-darwin10.0"
index 3218d599d1c14a050457433fc1a3e0ce806f3410..a4182d4c1d7c58b700cd1bf4444ba8ad7d1c5b9f 100644 (file)
@@ -1,6 +1,6 @@
 ; The store into %p should end up with a known alignment of 1, since the memcpy
 ; is only known to access it with 1-byte alignment.
-; RUN: opt < %s -scalarrepl -S | grep {store i16 1, .*, align 1}
+; RUN: opt < %s -scalarrepl -S | grep "store i16 1, .*, align 1"
 ; PR3720
 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"
 
index 42e7a0ffdc6a1bb03074e81a84c11c97bb88d2b9..95ecf175eed2532f80562ce9a14f08359a483f63 100644 (file)
@@ -1,7 +1,7 @@
 ; PR1226
-; RUN: opt < %s -scalarrepl -S | grep {ret i32 16843009}
+; RUN: opt < %s -scalarrepl -S | grep "ret i32 16843009"
 ; RUN: opt < %s -scalarrepl -S | not grep alloca
-; RUN: opt < %s -scalarrepl -instcombine -S | grep {ret i16 514}
+; RUN: opt < %s -scalarrepl -instcombine -S | grep "ret i16 514"
 
 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"
 target triple = "i686-apple-darwin8"
index f873456b3c7cb736b276f682faa3a31c63ae7dfe..67fefb4841b3614106f606ada32f965e874bfd0f 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -scalarrepl -S | not grep alloca
-; RUN: opt < %s -scalarrepl -S | not grep {7 x double}
-; RUN: opt < %s -scalarrepl -instcombine -S | grep {ret double %B}
+; RUN: opt < %s -scalarrepl -S | not grep "7 x double"
+; RUN: opt < %s -scalarrepl -instcombine -S | grep "ret double %B"
 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"
 
 define double @test(double %A, double %B) {
index 8b7e50df31bb6001d7e5c34276a05a69a7cf218e..6a4991887186a4388735cbda6e8019ae2d0539c4 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: opt < %s -scalarrepl -S | \
 ; RUN:   not grep alloca
 ; RUN: opt < %s -scalarrepl -S | \
-; RUN:   grep {bitcast.*float.*i32}
+; RUN:   grep "bitcast.*float.*i32"
 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"
 
 define i32 @test(float %X) {
index ea4ec14e5621ba7ad513c137b4a0cfb9bee7bfc3..03d25ac7085ed40392b630505cba63012d6ff932 100644 (file)
@@ -1,7 +1,7 @@
 ; PR892
 ; RUN: opt < %s -scalarrepl -S | \
 ; RUN:   not grep alloca
-; RUN: opt < %s -scalarrepl -S | grep {ret i8}
+; RUN: opt < %s -scalarrepl -S | grep "ret i8"
 
 target datalayout = "e-p:32:32-n8:16:32"
 target triple = "i686-apple-darwin8.7.2"
index decbd301b8dfd8264fb599855c0012c6e3c52a2c..33e8034f573403bb9fc3d70c0c6d3983fb9d9f4d 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -scalarrepl -S > %t
-; RUN: grep {ret <16 x float> %A} %t
-; RUN: grep {ret <16 x float> zeroinitializer} %t
+; RUN: grep "ret <16 x float> %A" %t
+; RUN: grep "ret <16 x float> zeroinitializer" %t
 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"
 
 define <16 x float> @foo(<16 x float> %A) nounwind {
index fadf1aa276c85a69806a74679f31a7fbad5d3d88..056526cbd92b40ae32ddd29b8ae621f9516cf35c 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt < %s -scalarrepl -S | grep {load volatile}
-; RUN: opt < %s -scalarrepl -S | grep {store volatile}
+; RUN: opt < %s -scalarrepl -S | grep "load volatile"
+; RUN: opt < %s -scalarrepl -S | grep "store volatile"
 
 define i32 @voltest(i32 %T) {
        %A = alloca {i32, i32}
index 414235ba7cde26d64cff6168a414627a7e10eafa..feffb4e4c8129448ec6cb960367163e6ccd0f44d 100644 (file)
@@ -1,7 +1,7 @@
 ; Basic block #2 should not be merged into BB #3!
 ;
 ; RUN: opt < %s -simplifycfg -S | \
-; RUN:   grep {br label}
+; RUN:   grep "br label"
 ;
 
 declare void @foo()
index 00f2d5bcf1350429d6c33120f024ebbb4d7b4178..14baeea4b0b9b65c07446da09eec77c3cf74e307 100644 (file)
@@ -1,5 +1,5 @@
 ; The phi should not be eliminated in this case, because the fp op could trap.
-; RUN: opt < %s -simplifycfg -S | grep {= phi double}
+; RUN: opt < %s -simplifycfg -S | grep "= phi double"
 
 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-darwin8"
index 56f43b64f74e61cfb2eed39244264f2f78e80ec1..13ccad6a1eeb8c5c00ee007a8952405983c05015 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -simplifycfg -S > %t
-; RUN: not grep {^BB.tomerge} %t
-; RUN: grep {^BB.nomerge} %t | count 2
+; RUN: not grep "^BB.tomerge" %t
+; RUN: grep "^BB.nomerge" %t | count 2
 
 ; ModuleID = '<stdin>' 
 declare i1 @foo()
index d025dee85f2def07c2def4f5af316c0e64f2747e..9b6084f0e1af437137bf9cd2d9afcfc8742edf73 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -simplifycfg -S | grep {%outval = phi i32 .*mux}
+; RUN: opt < %s -simplifycfg -S | grep "%outval = phi i32 .*mux"
 ; PR2540
 ; Outval should end up with a select from 0/2, not all constants.
 
index 5129f9fb6d2f63cc5fa52352fe4b20819fc2d194..4788406fc0f3e7f5120dc35d9cbe1767a7cec22f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -simplifycfg -S | grep { = phi } | count 1
+; RUN: opt < %s -instcombine -simplifycfg -S | grep " = phi " | count 1
 
 ; instcombine should sort the PHI operands so that simplifycfg can see the
 ; duplicate and remove it.
index 8e9f2062cded42611a48f06bab40df8e8c269f59..ae917f70f4f1411291d74a24d69f0a4be958c3be 100644 (file)
@@ -1,8 +1,8 @@
 ; PR1307
 ; RUN: opt < %s -simplify-libcalls -instcombine -S > %t
-; RUN: grep {@str,.*i64 3} %t
-; RUN: grep {@str1,.*i64 7} %t
-; RUN: grep {ret i8.*null} %t
+; RUN: grep "@str,.*i64 3" %t
+; RUN: grep "@str1,.*i64 7" %t
+; RUN: grep "ret i8.*null" %t
 ; END.
 
 @str = internal constant [5 x i8] c"foog\00"
index 9056499b4c55d7e984a0f7b68c0544dcc05e626e..f4c80ed13271cab27e6f962188980ab1263c8678 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -simplify-libcalls -instcombine -S | grep {ret i32 -65}
+; RUN: opt < %s -simplify-libcalls -instcombine -S | grep "ret i32 -65"
 ; PR4284
 
 define i32 @test() nounwind {
index 4e3d0ab7f40fa2d6eceda310b0c666e01ba42e8f..3ea691a3cfbe2fd8e2341363c7d672b123f1d317 100644 (file)
@@ -1,9 +1,9 @@
 ; Test that the StrCatOptimizer works correctly
 ; PR3661
 ; RUN: opt < %s -simplify-libcalls -S | \
-; RUN:   not grep {call.*strcat}
+; RUN:   not grep "call.*strcat"
 ; RUN: opt < %s -simplify-libcalls -S | \
-; RUN:   grep {puts.*%arg1}
+; RUN:   grep "puts.*%arg1"
 
 ; This transformation requires the pointer size, as it assumes that size_t is
 ; the size of a pointer.
index d09c022fd4cd9ac48c99aac5c7ee173ca348601d..073792b96a1bbf6bba47db7bb542e45a71efcab9 100644 (file)
@@ -1,8 +1,8 @@
 ; Test that the StrNCatOptimizer works correctly
 ; RUN: opt < %s -simplify-libcalls -S | \
-; RUN:   not grep {call.*strncat}
+; RUN:   not grep "call.*strncat"
 ; RUN: opt < %s -simplify-libcalls -S | \
-; RUN:   grep {puts.*%arg1}
+; RUN:   grep "puts.*%arg1"
 
 ; This transformation requires the pointer size, as it assumes that size_t is
 ; the size of a pointer.
index 6fbe0b9de44ec054898caeecb112250ebde5d7d3..3934a5b98f74044c76cb85eb20b437f1b2062715 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -simplify-libcalls -S | grep {select i1 %ispos}
+; RUN: opt < %s -simplify-libcalls -S | grep "select i1 %ispos"
 ; PR2337
 
 define i32 @test(i32 %x) {
index 2f5d910558f56a63bd2a66ce863ac63b95e24a6e..a5927757cf9385b1ed14a8c374d860f3e8823490 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -simplify-libcalls -S | grep {call.*ldexp} | count 4
+; RUN: opt < %s -simplify-libcalls -S | grep "call.*ldexp" | count 4
 ; rdar://5852514
 
 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 c0c00506cdd339474132c26f39285aed51d0ab4e..5aaeeeb024f7f55de9719af66c7c99b6f77670f0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -simplify-libcalls -S | grep {llvm.memmove}
+; RUN: opt < %s -simplify-libcalls -S | grep "llvm.memmove"
 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"
 
index fb752c4083af19a43889e1878160f4e1ddede08b..92412dee71ad644d74de85a236f46e19eaa68879 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -simplify-libcalls -S | grep {llvm.memset}
+; RUN: opt < %s -simplify-libcalls -S | grep "llvm.memset"
 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"
 target triple = "x86_64-pc-linux-gnu"
 
index 0aede064cac1c9f9bb9e3c604b861c91dc979be9..853215a4d24ccc1b55e0c0918a18a805f0a42f74 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -simplify-libcalls -S | grep {llvm.memset}
+; RUN: opt < %s -simplify-libcalls -S | grep "llvm.memset"
 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"
 
index 0c140ad681d500aa982d2607ec68c8fc2c9fddb2..eb81564b669db8d506af8aff8fb6ac652839ff9d 100644 (file)
@@ -1,5 +1,5 @@
 ; This function contains two tail calls, which should be eliminated
-; RUN: opt < %s -tailcallelim -stats -disable-output |& grep {2 tailcallelim}
+; RUN: opt < %s -tailcallelim -stats -disable-output |& grep "2 tailcallelim"
 
 define i32 @Ack(i32 %M.1, i32 %N.1) {
 entry:
index 5cc92e1b17306fc12b05179ec3d360cf88311df1..e4f8b483c3c0402d2cc89c0159276f14fd492cd0 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -tailcallelim -S | \
-; RUN:    grep {call i32 @foo}
+; RUN:    grep "call i32 @foo"
 
 declare void @bar(i32*)
 
index 93638804f92eea4f8f0350dbf00f8560ba606b53..37365311b341c18eef33d561910a1a7b96ddeba6 100644 (file)
@@ -1,5 +1,5 @@
 ; Duplicate the return into if.end to enable TCE.
-; RUN: opt %s -tailcallelim -stats -disable-output |& grep {Number of return duplicated}
+; RUN: opt %s -tailcallelim -stats -disable-output |& grep "Number of return duplicated"
 
 define i32 @fib(i32 %n) nounwind ssp {
 entry:
index 3dddb013f7ce65a6b013fb1b6f2e7cfce9ba7a8e..3d01d1709952a3ebb0ee045e7517108875db27a2 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -tailcallelim -S | \
-; RUN:    grep {tail call void @foo}
+; RUN:    grep "tail call void @foo"
 
 
 declare void @foo()
index 4c1ddd1e3ac83fc8cf4f8b8188d0a836dc31e9b7..2cbe6a922ee62c3116440772d755631de62db3bc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s |& grep {value doesn't match function result type 'i32'}
+; RUN: not llvm-as < %s |& grep "value doesn't match function result type 'i32'"
 
 ; Verify the the operand type of the ret instructions in a function match the
 ; delcared return type of the function they live in.
index 1f71387ab3adac02fb238393ac3f1f15126f8927..98c43850b12216ab91c04d47be01b2c272f1ab67 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s |& grep {invalid getelementptr indices}
+; RUN: not llvm-as < %s |& grep "invalid getelementptr indices"
 
 ; This testcase is invalid because we are indexing into a pointer that is 
 ; contained WITHIN a structure.
index 8d09b512066e029bbc972e7336474c187bc45c3f..aa26265791dc4a6dc4a0b1251cc5508988c71f3c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s |& grep {llvm intrinsics cannot be defined}
+; RUN: not llvm-as < %s |& grep "llvm intrinsics cannot be defined"
 ; PR1047
 
 define void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) {
index 079a75d792e117b3d7573577db7ee6fb9b0a8563..58f3098f9512569d1a9e6b232de74e2c778b8a96 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as %s -o /dev/null |& grep {Cannot allocate unsized type}
+; RUN: not llvm-as %s -o /dev/null |& grep "Cannot allocate unsized type"
 ; PR2113
 
 define void @test() {
index 125325c04eb3f0ea9ab987691fb9e628f70cad52..65e884f46e3d013f61b02a74d663faa7f4619da8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as %s -o /dev/null |& grep {alignment argument of memory intrinsics must be a constant int}
+; RUN: not llvm-as %s -o /dev/null |& grep "alignment argument of memory intrinsics must be a constant int"
 ; PR2318
 
 define void @x(i8* %a, i8* %src, i64 %len, i32 %align) nounwind  {
index aaef7030c5ac251be16c300e0fca14651cb9254b..f2cdc8ce4decd530e381febb9cfaee0195940f86 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s |& grep {value doesn't match function result type 'void'}
+; RUN: not llvm-as < %s |& grep "value doesn't match function result type 'void'"
 
 define void @foo() {
   ret i32 0
index bf5563d9c0514bddb176cd51e9f72249d74135fc..3136c61514baf0a674aaa557afda98d3857d682a 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: not llvm-as < %s 2> %t
-; RUN: grep {Broken module} %t
+; RUN: grep "Broken module" %t
 ; PR7316
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32"
index 9a72530187752a44f0ef30c5bca5658d900557d7..58d8bdd3c64f23f66c21a88e723936f3afbbeca7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s |& grep {multiple entries for the same basic block}
+; RUN: not llvm-as < %s |& grep "multiple entries for the same basic block"
 
 
 
index dc529dced3657cd172d811ad82b8a3de2742d46d..0b677f2301c52fffeb9f17f82a162f61d0ccf481 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s |& grep {PHI nodes not grouped at top}
+; RUN: not llvm-as < %s |& grep "PHI nodes not grouped at top"
 
 
 
index 70154b77a8233184a4bda6b3ee5774d42ad0635b..449ea36519cc9cf763f14d0462d5d124e6c05561 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as %s -o /dev/null |& grep {Only PHI nodes may reference their own value}
+; RUN: not llvm-as %s -o /dev/null |& grep "Only PHI nodes may reference their own value"
 
 ; Test that self referential instructions are not allowed
 
index fc5ef1ce13ab88547d414d9bb2ba483406e2755d..1275abaff39949128b78951d47db4b7c0c9bb9e9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN:  not llvm-as %s -o /dev/null |& grep {Aliasing chain should end with function or global variable}
+; RUN:  not llvm-as %s -o /dev/null |& grep "Aliasing chain should end with function or global variable"
 
 ; Test that alising chain does not create a cycle
 
index d4836451906ea792b1c70b4372f29e3d222c4029..575c1273338a59cca9e71bd3b504c072dd9283d8 100644 (file)
@@ -10,7 +10,9 @@ import re
 config.name = 'LLVM'
 
 # testFormat: The test format to use to interpret tests.
-config.test_format = lit.formats.TclTest()
+execute_external = (sys.platform in ['win32']
+                    or lit.getBashPath() not in [None, ""])
+config.test_format = lit.formats.ShTest(execute_external)
 
 # To ignore test output on stderr so it doesn't trigger failures uncomment this:
 #config.test_format = lit.formats.TclTest(ignoreStdErr=True)