Use opt -S instead of piping bitcode output through llvm-dis.
authorDan Gohman <gohman@apple.com>
Tue, 8 Sep 2009 22:34:10 +0000 (22:34 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 8 Sep 2009 22:34:10 +0000 (22:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81257 91177308-0d34-0410-b5e6-96231b3b80d8

865 files changed:
test/Analysis/Andersens/2008-03-19-External.ll
test/Analysis/Andersens/2008-04-07-Memcpy.ll
test/Analysis/Andersens/external.ll
test/Analysis/BasicAA/2003-02-26-AccessSizeTest.ll
test/Analysis/BasicAA/2003-04-22-GEPProblem.ll
test/Analysis/BasicAA/2003-09-19-LocalArgument.ll
test/Analysis/BasicAA/2004-07-28-MustAliasbug.ll
test/Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll
test/Analysis/BasicAA/2007-08-05-GetOverloadedModRef.ll
test/Analysis/BasicAA/2007-10-24-ArgumentsGlobals.ll
test/Analysis/BasicAA/2008-04-15-Byval.ll
test/Analysis/BasicAA/2009-03-04-GEPNoalias.ll
test/Analysis/BasicAA/byval.ll
test/Analysis/BasicAA/cas.ll
test/Analysis/BasicAA/featuretest.ll
test/Analysis/BasicAA/global-size.ll
test/Analysis/BasicAA/no-escape-call.ll
test/Analysis/BasicAA/nocapture.ll
test/Analysis/BasicAA/pure-const-dce.ll
test/Analysis/BasicAA/store-promote.ll
test/Analysis/GlobalsModRef/2008-09-03-ReadGlobals.ll
test/Analysis/GlobalsModRef/aliastest.ll
test/Analysis/GlobalsModRef/chaining-analysis.ll
test/Analysis/GlobalsModRef/indirect-global.ll
test/Analysis/GlobalsModRef/modreftest.ll
test/Analysis/Profiling/edge-profiling.ll
test/Analysis/ScalarEvolution/2007-08-06-MisinterpretBranch.ll
test/Analysis/ScalarEvolution/2007-11-14-SignedAddRec.ll
test/Analysis/ScalarEvolution/avoid-smax-1.ll
test/Assembler/2002-04-07-HexFloatConstants.ll
test/Assembler/2002-04-29-NameBinding.ll
test/Assembler/2002-08-19-BytecodeReader.ll
test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll
test/Assembler/2008-02-20-MultipleReturnValue.ll
test/Assembler/2009-02-28-StripOpaqueName.ll
test/CodeGen/Generic/GC/inline.ll
test/CodeGen/Generic/GC/inline2.ll
test/CodeGen/X86/2009-03-23-i80-fp80.ll
test/DebugInfo/2009-02-27-licm.ll
test/DebugInfo/2009-03-03-cheapdse.ll
test/DebugInfo/2009-03-03-deadstore.ll
test/DebugInfo/2009-03-03-store-to-load-forward.ll
test/DebugInfo/2009-03-05-gvn.ll
test/Feature/weak_constant.ll
test/Other/2008-06-04-FieldSizeInPacked.ll
test/Other/2009-06-05-no-implicit-float.ll
test/Transforms/ADCE/2002-05-22-PHITest.ll
test/Transforms/ADCE/2003-06-24-BasicFunctionality.ll
test/Transforms/ADCE/2003-11-16-MissingPostDominanceInfo.ll
test/Transforms/ADCE/dce_pure_call.ll
test/Transforms/ADCE/dce_pure_invoke.ll
test/Transforms/ArgumentPromotion/2008-02-01-ReturnAttrs.ll
test/Transforms/ArgumentPromotion/2008-07-02-array-indexing.ll
test/Transforms/ArgumentPromotion/aggregate-promote.ll
test/Transforms/ArgumentPromotion/attrs.ll
test/Transforms/ArgumentPromotion/basictest.ll
test/Transforms/ArgumentPromotion/byval-2.ll
test/Transforms/ArgumentPromotion/byval.ll
test/Transforms/ArgumentPromotion/chained.ll
test/Transforms/ArgumentPromotion/control-flow.ll
test/Transforms/ArgumentPromotion/control-flow2.ll
test/Transforms/CondProp/basictest-dbg.ll
test/Transforms/CondProp/basictest.ll
test/Transforms/CondProp/phisimplify.ll
test/Transforms/CondProp/phisimplify2.ll
test/Transforms/CondProp/phisimplify3.ll
test/Transforms/ConstProp/2002-05-03-NotOperator.ll
test/Transforms/ConstProp/2002-09-03-SetCC-Bools.ll
test/Transforms/ConstProp/2005-01-28-SetCCGEP.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-05-BitCast.ll
test/Transforms/ConstProp/2007-11-23-cttz.ll
test/Transforms/ConstProp/basictest.ll
test/Transforms/ConstProp/bitcast2.ll
test/Transforms/ConstProp/bswap.ll
test/Transforms/ConstProp/calls.ll
test/Transforms/ConstProp/div-zero.ll
test/Transforms/ConstProp/float-to-ptr-cast.ll
test/Transforms/ConstProp/logicaltest.ll
test/Transforms/ConstProp/nottest.ll
test/Transforms/ConstProp/phi.ll
test/Transforms/ConstProp/remtest.ll
test/Transforms/ConstantMerge/2006-03-07-DontMergeDiffSections.ll
test/Transforms/DeadArgElim/2007-02-07-FuncRename.ll
test/Transforms/DeadArgElim/2007-10-18-VarargsReturn.ll
test/Transforms/DeadArgElim/2007-12-20-ParamAttrs.ll
test/Transforms/DeadArgElim/2008-01-16-VarargsParamAttrs.ll
test/Transforms/DeadArgElim/2008-06-23-DeadAfterLive.ll
test/Transforms/DeadArgElim/basictest.ll
test/Transforms/DeadArgElim/canon.ll
test/Transforms/DeadArgElim/dead_vaargs.ll
test/Transforms/DeadArgElim/deadretval.ll
test/Transforms/DeadArgElim/deadretval2.ll
test/Transforms/DeadArgElim/keepalive.ll
test/Transforms/DeadArgElim/multdeadretval.ll
test/Transforms/DeadStoreElimination/2004-12-28-PartialStore.ll
test/Transforms/DeadStoreElimination/2005-11-30-vaarg.ll
test/Transforms/DeadStoreElimination/2008-07-28-load-store.ll
test/Transforms/DeadStoreElimination/PartialStore.ll
test/Transforms/DeadStoreElimination/alloca.ll
test/Transforms/DeadStoreElimination/byval.ll
test/Transforms/DeadStoreElimination/context-sensitive.ll
test/Transforms/DeadStoreElimination/free.ll
test/Transforms/DeadStoreElimination/memcpy.ll
test/Transforms/DeadStoreElimination/simple.ll
test/Transforms/DeadStoreElimination/volatile-load.ll
test/Transforms/FunctionAttrs/2008-09-03-Mutual.ll
test/Transforms/FunctionAttrs/2008-09-03-ReadNone.ll
test/Transforms/FunctionAttrs/2008-09-03-ReadOnly.ll
test/Transforms/FunctionAttrs/2008-09-13-VolatileRead.ll
test/Transforms/FunctionAttrs/2008-10-04-LocalMemory.ll
test/Transforms/FunctionAttrs/2008-12-29-Constant.ll
test/Transforms/FunctionAttrs/2008-12-31-NoCapture.ll
test/Transforms/FunctionAttrs/2009-01-02-LocalStores.ll
test/Transforms/FunctionAttrs/2009-05-06-Malloc.ll
test/Transforms/GVN/2007-07-25-InfiniteLoop.ll
test/Transforms/GVN/2007-07-26-InterlockingLoops.ll
test/Transforms/GVN/2007-07-26-PhiErasure.ll
test/Transforms/GVN/2007-07-31-NoDomInherit.ll
test/Transforms/GVN/2007-07-31-RedundantPhi.ll
test/Transforms/GVN/2008-02-12-UndefLoad.ll
test/Transforms/GVN/2008-02-24-NonDominatedMemcpy.ll
test/Transforms/GVN/2008-02-26-MemCpySize.ll
test/Transforms/GVN/2008-07-02-Unreachable.ll
test/Transforms/GVN/2008-12-09-SelfRemove.ll
test/Transforms/GVN/2009-06-17-InvalidPRE.ll
test/Transforms/GVN/basic.ll
test/Transforms/GVN/bitcast-of-call.ll
test/Transforms/GVN/calls-nonlocal.ll
test/Transforms/GVN/calls-readonly.ll
test/Transforms/GVN/condprop.ll
test/Transforms/GVN/load-constant-mem.ll
test/Transforms/GVN/local-pre.ll
test/Transforms/GVN/lpre-basic.ll
test/Transforms/GVN/mixed.ll
test/Transforms/GVN/pre-basic-add.ll
test/Transforms/GVN/pre-single-pred.ll
test/Transforms/GVN/rle-dominated.ll
test/Transforms/GVN/rle-must-alias.ll
test/Transforms/GVN/rle-no-phi-translate.ll
test/Transforms/GVN/rle-nonlocal.ll
test/Transforms/GVN/rle-phi-translate.ll
test/Transforms/GVN/rle-semidominated.ll
test/Transforms/GVNPRE/2007-07-05-AvailabilityUpdating.ll
test/Transforms/GVNPRE/basic.ll
test/Transforms/GVNPRE/cast.ll
test/Transforms/GVNPRE/extractelement.ll
test/Transforms/GVNPRE/gep.ll
test/Transforms/GVNPRE/insertelement.ll
test/Transforms/GVNPRE/select.ll
test/Transforms/GVNPRE/shufflevector.ll
test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll
test/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll
test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll
test/Transforms/GlobalDCE/2003-10-09-PreserveWeakGlobals.ll
test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll
test/Transforms/GlobalDCE/basicvariabletest.ll
test/Transforms/GlobalDCE/externally_available.ll
test/Transforms/GlobalOpt/2008-01-13-OutOfRangeSROA.ll
test/Transforms/GlobalOpt/2008-01-29-VolatileGlobal.ll
test/Transforms/GlobalOpt/2008-02-16-NestAttr.ll
test/Transforms/GlobalOpt/2008-04-26-SROA-Global-Align.ll
test/Transforms/GlobalOpt/2008-07-17-addrspace.ll
test/Transforms/GlobalOpt/2009-01-13-phi-user.ll
test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll
test/Transforms/GlobalOpt/2009-03-03-dbg.ll
test/Transforms/GlobalOpt/2009-03-06-Anonymous.ll
test/Transforms/GlobalOpt/2009-03-07-PromotePtrToBool.ll
test/Transforms/GlobalOpt/alias-resolve.ll
test/Transforms/GlobalOpt/basictest.ll
test/Transforms/GlobalOpt/constantexpr-dangle.ll
test/Transforms/GlobalOpt/ctor-list-opt-dbg.ll
test/Transforms/GlobalOpt/ctor-list-opt-inbounds.ll
test/Transforms/GlobalOpt/ctor-list-opt.ll
test/Transforms/GlobalOpt/deadglobal-2.ll
test/Transforms/GlobalOpt/deadglobal.ll
test/Transforms/GlobalOpt/globalsra-partial.ll
test/Transforms/GlobalOpt/globalsra-unknown-index.ll
test/Transforms/GlobalOpt/globalsra.ll
test/Transforms/GlobalOpt/heap-sra-1.ll
test/Transforms/GlobalOpt/heap-sra-2.ll
test/Transforms/GlobalOpt/heap-sra-phi.ll
test/Transforms/GlobalOpt/iterate.ll
test/Transforms/GlobalOpt/load-store-global.ll
test/Transforms/GlobalOpt/malloc-promote-1.ll
test/Transforms/GlobalOpt/malloc-promote-2.ll
test/Transforms/GlobalOpt/malloc-promote-3.ll
test/Transforms/GlobalOpt/memcpy.ll
test/Transforms/GlobalOpt/memset.ll
test/Transforms/GlobalOpt/phi-select.ll
test/Transforms/GlobalOpt/storepointer-compare.ll
test/Transforms/GlobalOpt/storepointer.ll
test/Transforms/GlobalOpt/trivialstore.ll
test/Transforms/GlobalOpt/undef-init.ll
test/Transforms/IPConstantProp/2008-06-09-WeakProp.ll
test/Transforms/IPConstantProp/recursion.ll
test/Transforms/IPConstantProp/return-argument.ll
test/Transforms/IPConstantProp/return-constants.ll
test/Transforms/IndMemRem/2009-01-24-Noalias.ll
test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll
test/Transforms/IndVarSimplify/2003-12-10-IndVarDeadCode.ll
test/Transforms/IndVarSimplify/2003-12-21-IndVarSize.ll
test/Transforms/IndVarSimplify/2005-02-26-ExitValueCompute.ll
test/Transforms/IndVarSimplify/2006-03-31-NegativeStride.ll
test/Transforms/IndVarSimplify/2007-01-06-TripCount.ll
test/Transforms/IndVarSimplify/2008-09-02-IVType.ll
test/Transforms/IndVarSimplify/2008-11-03-Floating.ll
test/Transforms/IndVarSimplify/2008-11-17-Floating.ll
test/Transforms/IndVarSimplify/2009-04-14-shorten_iv_vars.ll
test/Transforms/IndVarSimplify/2009-04-15-shorten-iv-vars-2.ll
test/Transforms/IndVarSimplify/2009-04-27-Floating.ll
test/Transforms/IndVarSimplify/ada-loops.ll
test/Transforms/IndVarSimplify/addrec-gep.ll
test/Transforms/IndVarSimplify/ashr-tripcount.ll
test/Transforms/IndVarSimplify/complex-scev.ll
test/Transforms/IndVarSimplify/gep-with-mul-base.ll
test/Transforms/IndVarSimplify/iv-sext.ll
test/Transforms/IndVarSimplify/iv-zext.ll
test/Transforms/IndVarSimplify/lftr-promote.ll
test/Transforms/IndVarSimplify/lftr_simple.ll
test/Transforms/IndVarSimplify/loop_evaluate8.ll
test/Transforms/IndVarSimplify/loop_evaluate9.ll
test/Transforms/IndVarSimplify/loop_evaluate_1.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/loop_evaluate_6.ll
test/Transforms/IndVarSimplify/masked-iv.ll
test/Transforms/IndVarSimplify/max-pointer.ll
test/Transforms/IndVarSimplify/pointer-indvars.ll
test/Transforms/IndVarSimplify/pointer.ll
test/Transforms/IndVarSimplify/preserve-gep-nested.ll
test/Transforms/IndVarSimplify/preserve-gep.ll
test/Transforms/IndVarSimplify/preserve-signed-wrap.ll
test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll
test/Transforms/IndVarSimplify/signed-trip-count.ll
test/Transforms/IndVarSimplify/sink-alloca.ll
test/Transforms/IndVarSimplify/sink-trapping.ll
test/Transforms/IndVarSimplify/subtract.ll
test/Transforms/IndVarSimplify/tripcount_compute.ll
test/Transforms/IndVarSimplify/tripcount_infinite.ll
test/Transforms/IndVarSimplify/variable-stride-ivs-0.ll
test/Transforms/Inline/2007-04-15-InlineEH.ll
test/Transforms/Inline/2007-06-06-NoInline.ll
test/Transforms/Inline/2007-06-25-WeakInline.ll
test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll
test/Transforms/Inline/2008-09-02-AlwaysInline.ll
test/Transforms/Inline/2008-09-02-NoInline.ll
test/Transforms/Inline/2008-10-30-AlwaysInline.ll
test/Transforms/Inline/2008-11-04-AlwaysInline.ll
test/Transforms/Inline/2009-01-08-NoInlineDynamicAlloca.ll
test/Transforms/Inline/2009-01-12-RecursiveInline.ll
test/Transforms/Inline/always_inline_dyn_alloca.ll
test/Transforms/Inline/array_merge.ll
test/Transforms/Inline/byval.ll
test/Transforms/Inline/byval2.ll
test/Transforms/Inline/casts.ll
test/Transforms/Inline/cfg_preserve_test.ll
test/Transforms/Inline/dynamic_alloca_test.ll
test/Transforms/Inline/externally_available.ll
test/Transforms/Inline/inline-invoke-tail.ll
test/Transforms/Inline/inline-tail.ll
test/Transforms/Inline/inline_cleanup.ll
test/Transforms/Inline/inline_constprop.ll
test/Transforms/Inline/inline_dce.ll
test/Transforms/Inline/inline_prune.ll
test/Transforms/Inline/invoke_test-1.ll
test/Transforms/Inline/invoke_test-2.ll
test/Transforms/Inline/invoke_test-3.ll
test/Transforms/InstCombine/2002-05-14-SubFailure.ll
test/Transforms/InstCombine/2002-08-02-CastTest.ll
test/Transforms/InstCombine/2002-12-05-MissedConstProp.ll
test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll
test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll
test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll
test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll
test/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll
test/Transforms/InstCombine/2004-08-10-BoolSetCC.ll
test/Transforms/InstCombine/2004-09-20-BadLoadCombine.ll
test/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.ll
test/Transforms/InstCombine/2004-11-22-Missed-and-fold.ll
test/Transforms/InstCombine/2004-11-27-SetCCForCastLargerAndConstant.ll
test/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll
test/Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll
test/Transforms/InstCombine/2006-02-13-DemandedMiscompile.ll
test/Transforms/InstCombine/2006-04-28-ShiftShiftLongLong.ll
test/Transforms/InstCombine/2006-09-15-CastToBool.ll
test/Transforms/InstCombine/2006-10-19-SignedToUnsignedCastAndConst-2.ll
test/Transforms/InstCombine/2006-10-19-SignedToUnsignedCastAndConst.ll
test/Transforms/InstCombine/2006-10-20-mask.ll
test/Transforms/InstCombine/2006-10-26-VectorReassoc.ll
test/Transforms/InstCombine/2006-11-03-Memmove64.ll
test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll
test/Transforms/InstCombine/2006-11-27-XorBug.ll
test/Transforms/InstCombine/2006-12-01-BadFPVectorXform.ll
test/Transforms/InstCombine/2006-12-05-fp-to-int-ext.ll
test/Transforms/InstCombine/2006-12-08-ICmp-Combining.ll
test/Transforms/InstCombine/2006-12-08-Phi-ICmp-Op-Fold.ll
test/Transforms/InstCombine/2006-12-08-Select-ICmp.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-02-07-PointerCast.ll
test/Transforms/InstCombine/2007-02-23-PhiFoldInfLoop.ll
test/Transforms/InstCombine/2007-03-13-CompareMerge.ll
test/Transforms/InstCombine/2007-03-19-BadTruncChangePR1261.ll
test/Transforms/InstCombine/2007-03-21-SignedRangeTest.ll
test/Transforms/InstCombine/2007-03-25-BadShiftMask.ll
test/Transforms/InstCombine/2007-03-25-DoubleShift.ll
test/Transforms/InstCombine/2007-03-26-BadShiftMask.ll
test/Transforms/InstCombine/2007-03-27-PR1280.ll
test/Transforms/InstCombine/2007-04-04-BadFoldBitcastIntoMalloc.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-09-10-AliasConstFold.ll
test/Transforms/InstCombine/2007-09-11-Trampoline.ll
test/Transforms/InstCombine/2007-09-17-AliasConstFold2.ll
test/Transforms/InstCombine/2007-10-10-EliminateMemCpy.ll
test/Transforms/InstCombine/2007-10-28-stacksave.ll
test/Transforms/InstCombine/2007-11-15-CompareMiscomp.ll
test/Transforms/InstCombine/2007-11-25-CompatibleAttributes.ll
test/Transforms/InstCombine/2007-12-10-ConstFoldCompare.ll
test/Transforms/InstCombine/2007-12-12-GEPScale.ll
test/Transforms/InstCombine/2007-12-16-AsmNoUnwind.ll
test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll
test/Transforms/InstCombine/2007-12-28-IcmpSub2.ll
test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll
test/Transforms/InstCombine/2008-01-06-VoidCast.ll
test/Transforms/InstCombine/2008-01-13-AndCmpCmp.ll
test/Transforms/InstCombine/2008-01-13-NoBitCastAttributes.ll
test/Transforms/InstCombine/2008-01-14-VarArgTrampoline.ll
test/Transforms/InstCombine/2008-01-21-MismatchedCastAndCompare.ll
test/Transforms/InstCombine/2008-01-21-MulTrunc.ll
test/Transforms/InstCombine/2008-01-27-FloatSelect.ll
test/Transforms/InstCombine/2008-01-29-AddICmp.ll
test/Transforms/InstCombine/2008-02-13-MulURem.ll
test/Transforms/InstCombine/2008-02-16-SDivOverflow.ll
test/Transforms/InstCombine/2008-02-16-SDivOverflow2.ll
test/Transforms/InstCombine/2008-02-23-MulSub.ll
test/Transforms/InstCombine/2008-03-13-IntToPtr.ll
test/Transforms/InstCombine/2008-04-22-ByValBitcast.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-22-NegValVector.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-19-UncondLoad.ll
test/Transforms/InstCombine/2008-06-21-CompareMiscomp.ll
test/Transforms/InstCombine/2008-06-24-StackRestore.ll
test/Transforms/InstCombine/2008-07-08-AndICmp.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-09-SubAndError.ll
test/Transforms/InstCombine/2008-07-10-CastSextBool.ll
test/Transforms/InstCombine/2008-07-10-ICmpBinOp.ll
test/Transforms/InstCombine/2008-07-11-RemAnd.ll
test/Transforms/InstCombine/2008-07-13-DivZero.ll
test/Transforms/InstCombine/2008-07-16-fsub.ll
test/Transforms/InstCombine/2008-07-16-sse2_storel_dq.ll
test/Transforms/InstCombine/2008-08-05-And.ll
test/Transforms/InstCombine/2008-08-17-ICmpXorSignbit.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-11-08-FCmp.ll
test/Transforms/InstCombine/2008-11-20-DivMulRem.ll
test/Transforms/InstCombine/2008-11-27-IDivVector.ll
test/Transforms/InstCombine/2008-11-27-MultiplyIntVec.ll
test/Transforms/InstCombine/2008-11-27-UDivNegative.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-19-fmod-constant-float.ll
test/Transforms/InstCombine/2009-01-31-Pressure.ll
test/Transforms/InstCombine/2009-02-20-InstCombine-SROA.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-05-23-FCmpToICmp.ll
test/Transforms/InstCombine/2009-06-11-StoreAddrSpace.ll
test/Transforms/InstCombine/2009-06-16-SRemDemandedBits.ll
test/Transforms/InstCombine/CPP_min_max.ll
test/Transforms/InstCombine/IntPtrCast.ll
test/Transforms/InstCombine/JavaCompare.ll
test/Transforms/InstCombine/add-shrink.ll
test/Transforms/InstCombine/add-sitofp.ll
test/Transforms/InstCombine/add.ll
test/Transforms/InstCombine/add2.ll
test/Transforms/InstCombine/add3.ll
test/Transforms/InstCombine/addnegneg.ll
test/Transforms/InstCombine/adjust-for-sminmax.ll
test/Transforms/InstCombine/align-2d-gep.ll
test/Transforms/InstCombine/align-addr.ll
test/Transforms/InstCombine/align-external.ll
test/Transforms/InstCombine/align-inc.ll
test/Transforms/InstCombine/alloca.ll
test/Transforms/InstCombine/and-compare.ll
test/Transforms/InstCombine/and-fcmp.ll
test/Transforms/InstCombine/and-not-or.ll
test/Transforms/InstCombine/and-or-and.ll
test/Transforms/InstCombine/and-or-not.ll
test/Transforms/InstCombine/and-or.ll
test/Transforms/InstCombine/and-xor-merge.ll
test/Transforms/InstCombine/and.ll
test/Transforms/InstCombine/and2.ll
test/Transforms/InstCombine/apint-add1.ll
test/Transforms/InstCombine/apint-add2.ll
test/Transforms/InstCombine/apint-and-compare.ll
test/Transforms/InstCombine/apint-and-or-and.ll
test/Transforms/InstCombine/apint-and-xor-merge.ll
test/Transforms/InstCombine/apint-and1.ll
test/Transforms/InstCombine/apint-and2.ll
test/Transforms/InstCombine/apint-call-cast-target.ll
test/Transforms/InstCombine/apint-cast-and-cast.ll
test/Transforms/InstCombine/apint-cast-cast-to-and.ll
test/Transforms/InstCombine/apint-cast.ll
test/Transforms/InstCombine/apint-div1.ll
test/Transforms/InstCombine/apint-div2.ll
test/Transforms/InstCombine/apint-elim-logicalops.ll
test/Transforms/InstCombine/apint-mul1.ll
test/Transforms/InstCombine/apint-mul2.ll
test/Transforms/InstCombine/apint-not.ll
test/Transforms/InstCombine/apint-or1.ll
test/Transforms/InstCombine/apint-or2.ll
test/Transforms/InstCombine/apint-rem1.ll
test/Transforms/InstCombine/apint-rem2.ll
test/Transforms/InstCombine/apint-select.ll
test/Transforms/InstCombine/apint-shift-simplify.ll
test/Transforms/InstCombine/apint-shift.ll
test/Transforms/InstCombine/apint-shl-trunc.ll
test/Transforms/InstCombine/apint-sub.ll
test/Transforms/InstCombine/apint-xor1.ll
test/Transforms/InstCombine/apint-xor2.ll
test/Transforms/InstCombine/apint-zext1.ll
test/Transforms/InstCombine/apint-zext2.ll
test/Transforms/InstCombine/ashr-nop.ll
test/Transforms/InstCombine/binop-cast.ll
test/Transforms/InstCombine/bit-tracking.ll
test/Transforms/InstCombine/bitcast-scalar-to-vector.ll
test/Transforms/InstCombine/bitcast-vec-canon.ll
test/Transforms/InstCombine/bitcast-vector-fold.ll
test/Transforms/InstCombine/bitcount.ll
test/Transforms/InstCombine/bittest.ll
test/Transforms/InstCombine/bswap-fold.ll
test/Transforms/InstCombine/bswap.ll
test/Transforms/InstCombine/call-cast-target.ll
test/Transforms/InstCombine/call.ll
test/Transforms/InstCombine/canonicalize_branch.ll
test/Transforms/InstCombine/cast-and-cast.ll
test/Transforms/InstCombine/cast-cast-to-and.ll
test/Transforms/InstCombine/cast-load-gep.ll
test/Transforms/InstCombine/cast-malloc.ll
test/Transforms/InstCombine/cast-mul-select.ll
test/Transforms/InstCombine/cast-propagate.ll
test/Transforms/InstCombine/cast-set.ll
test/Transforms/InstCombine/cast-sext-zext.ll
test/Transforms/InstCombine/cast.ll
test/Transforms/InstCombine/cast2.ll
test/Transforms/InstCombine/cast3.ll
test/Transforms/InstCombine/cast_ld_addr_space.ll
test/Transforms/InstCombine/cast_ptr.ll
test/Transforms/InstCombine/constant-fold-gep.ll
test/Transforms/InstCombine/constant-fold-ptr-casts.ll
test/Transforms/InstCombine/dce-iterate.ll
test/Transforms/InstCombine/deadcode.ll
test/Transforms/InstCombine/div-cmp-overflow.ll
test/Transforms/InstCombine/div.ll
test/Transforms/InstCombine/enforce-known-alignment.ll
test/Transforms/InstCombine/exact-sdiv.ll
test/Transforms/InstCombine/extractvalue.ll
test/Transforms/InstCombine/fold-bin-operand.ll
test/Transforms/InstCombine/fold-vector-zero.ll
test/Transforms/InstCombine/fp-ret-bitcast.ll
test/Transforms/InstCombine/fpcast.ll
test/Transforms/InstCombine/fpextend.ll
test/Transforms/InstCombine/fsub-fsub.ll
test/Transforms/InstCombine/getelementptr.ll
test/Transforms/InstCombine/hoist_instr.ll
test/Transforms/InstCombine/icmp.ll
test/Transforms/InstCombine/known_align.ll
test/Transforms/InstCombine/load.ll
test/Transforms/InstCombine/load2.ll
test/Transforms/InstCombine/load3.ll
test/Transforms/InstCombine/loadstore-alignment.ll
test/Transforms/InstCombine/logical-select.ll
test/Transforms/InstCombine/lshr-phi.ll
test/Transforms/InstCombine/malloc-free-delete.ll
test/Transforms/InstCombine/malloc.ll
test/Transforms/InstCombine/malloc2.ll
test/Transforms/InstCombine/malloc3.ll
test/Transforms/InstCombine/memcpy-to-load.ll
test/Transforms/InstCombine/memmove.ll
test/Transforms/InstCombine/memset.ll
test/Transforms/InstCombine/mul-masked-bits.ll
test/Transforms/InstCombine/mul.ll
test/Transforms/InstCombine/multi-use-or.ll
test/Transforms/InstCombine/narrow.ll
test/Transforms/InstCombine/not-fcmp.ll
test/Transforms/InstCombine/not.ll
test/Transforms/InstCombine/nothrow.ll
test/Transforms/InstCombine/nsw.ll
test/Transforms/InstCombine/odr-linkage.ll
test/Transforms/InstCombine/or-fcmp.ll
test/Transforms/InstCombine/or-to-xor.ll
test/Transforms/InstCombine/or.ll
test/Transforms/InstCombine/or2.ll
test/Transforms/InstCombine/phi-merge.ll
test/Transforms/InstCombine/phi.ll
test/Transforms/InstCombine/pr2645-0.ll
test/Transforms/InstCombine/pr2645-1.ll
test/Transforms/InstCombine/preserve-sminmax.ll
test/Transforms/InstCombine/ptr-int-cast.ll
test/Transforms/InstCombine/rem.ll
test/Transforms/InstCombine/sdiv-1.ll
test/Transforms/InstCombine/sdiv-shift.ll
test/Transforms/InstCombine/select-2.ll
test/Transforms/InstCombine/select-load-call.ll
test/Transforms/InstCombine/select.ll
test/Transforms/InstCombine/set.ll
test/Transforms/InstCombine/setcc-cast-cast.ll
test/Transforms/InstCombine/setcc-strength-reduce.ll
test/Transforms/InstCombine/sext-misc.ll
test/Transforms/InstCombine/shift-simplify.ll
test/Transforms/InstCombine/shift-sra.ll
test/Transforms/InstCombine/shift-trunc-shift.ll
test/Transforms/InstCombine/shift.ll
test/Transforms/InstCombine/shl-trunc.ll
test/Transforms/InstCombine/shufflemask-undef.ll
test/Transforms/InstCombine/shufflevec-constant.ll
test/Transforms/InstCombine/signed-comparison.ll
test/Transforms/InstCombine/signext.ll
test/Transforms/InstCombine/sink_instruction.ll
test/Transforms/InstCombine/sitofp.ll
test/Transforms/InstCombine/srem-simplify-bug.ll
test/Transforms/InstCombine/srem.ll
test/Transforms/InstCombine/stack-overalign.ll
test/Transforms/InstCombine/stacksaverestore.ll
test/Transforms/InstCombine/store-merge.ll
test/Transforms/InstCombine/store.ll
test/Transforms/InstCombine/sub.ll
test/Transforms/InstCombine/trunc-mask-ext.ll
test/Transforms/InstCombine/udiv-simplify-bug-0.ll
test/Transforms/InstCombine/udiv-simplify-bug-1.ll
test/Transforms/InstCombine/udivrem-change-width.ll
test/Transforms/InstCombine/urem-simplify-bug.ll
test/Transforms/InstCombine/urem.ll
test/Transforms/InstCombine/vec_demanded_elts-2.ll
test/Transforms/InstCombine/vec_demanded_elts-3.ll
test/Transforms/InstCombine/vec_demanded_elts.ll
test/Transforms/InstCombine/vec_extract_elt.ll
test/Transforms/InstCombine/vec_insert_to_shuffle.ll
test/Transforms/InstCombine/vec_insertelt.ll
test/Transforms/InstCombine/vec_narrow.ll
test/Transforms/InstCombine/vec_shuffle.ll
test/Transforms/InstCombine/vec_shuffle2.ll
test/Transforms/InstCombine/vector-casts.ll
test/Transforms/InstCombine/vector-srem.ll
test/Transforms/InstCombine/volatile_store.ll
test/Transforms/InstCombine/xor-demorgans.ll
test/Transforms/InstCombine/xor-undef.ll
test/Transforms/InstCombine/xor.ll
test/Transforms/InstCombine/xor2.ll
test/Transforms/InstCombine/zero-point-zero-add.ll
test/Transforms/InstCombine/zeroext-and-reduce.ll
test/Transforms/InstCombine/zext-bool-add-sub.ll
test/Transforms/InstCombine/zext-fold.ll
test/Transforms/InstCombine/zext-or-icmp.ll
test/Transforms/InstCombine/zext.ll
test/Transforms/Internalize/2008-05-09-AllButMain.ll
test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll
test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll
test/Transforms/JumpThreading/and-and-cond.ll
test/Transforms/JumpThreading/and-cond.ll
test/Transforms/JumpThreading/basic.ll
test/Transforms/JumpThreading/branch-no-const.ll
test/Transforms/JumpThreading/compare.ll
test/Transforms/JumpThreading/dup-cond.ll
test/Transforms/JumpThreading/no-irreducible-loops.ll
test/Transforms/JumpThreading/thread-loads.ll
test/Transforms/JumpThreading/undef.ll
test/Transforms/LCSSA/2006-06-03-IncorrectIDFPhis.ll
test/Transforms/LCSSA/2006-06-12-MultipleExitsSameBlock.ll
test/Transforms/LCSSA/basictest.ll
test/Transforms/LICM/2003-02-27-PreheaderProblem.ll
test/Transforms/LICM/2003-05-02-LoadHoist.ll
test/Transforms/LICM/2007-05-22-VolatileSink.ll
test/Transforms/LICM/2007-09-17-PromoteValue.ll
test/Transforms/LICM/2007-09-24-PromoteNullValue.ll
test/Transforms/LICM/2007-10-01-PromoteSafeValue.ll
test/Transforms/LICM/2008-07-22-LoadGlobalConstant.ll
test/Transforms/LICM/hoisting.ll
test/Transforms/LICM/scalar_promote.ll
test/Transforms/LICM/sinking.ll
test/Transforms/LoopDeletion/2007-07-23-InfiniteLoop.ll
test/Transforms/LoopDeletion/dcetest.ll
test/Transforms/LoopIndexSplit/2007-09-24-UpdateIterationSpace.ll
test/Transforms/LoopIndexSplit/2007-09-25-UpdateIterationSpace-2.ll
test/Transforms/LoopIndexSplit/2009-03-30-undef.ll
test/Transforms/LoopIndexSplit/PR3913.ll
test/Transforms/LoopIndexSplit/UpperBound-2007-08-24.ll
test/Transforms/LoopRotate/PhiRename-1.ll
test/Transforms/LoopSimplify/phi-node-simplify.ll
test/Transforms/LoopSimplify/single-backedge.ll
test/Transforms/LoopStrengthReduce/2008-08-06-CmpStride.ll
test/Transforms/LoopStrengthReduce/2008-08-13-CmpStride.ll
test/Transforms/LoopStrengthReduce/2008-08-14-ShadowIV.ll
test/Transforms/LoopStrengthReduce/2008-09-09-Overflow.ll
test/Transforms/LoopStrengthReduce/2009-01-13-nonconstant-stride-outside-loop.ll
test/Transforms/LoopStrengthReduce/dead-phi.ll
test/Transforms/LoopStrengthReduce/dont-hoist-simple-loop-constants.ll
test/Transforms/LoopStrengthReduce/dont_insert_redundant_ops.ll
test/Transforms/LoopStrengthReduce/invariant_value_first.ll
test/Transforms/LoopStrengthReduce/invariant_value_first_arg.ll
test/Transforms/LoopStrengthReduce/nested-reduce.ll
test/Transforms/LoopStrengthReduce/ops_after_indvar.ll
test/Transforms/LoopStrengthReduce/pr2570.ll
test/Transforms/LoopStrengthReduce/related_indvars.ll
test/Transforms/LoopStrengthReduce/remove_indvar.ll
test/Transforms/LoopStrengthReduce/share_code_in_preheader.ll
test/Transforms/LoopStrengthReduce/share_ivs.ll
test/Transforms/LoopStrengthReduce/use_postinc_value_outside_loop.ll
test/Transforms/LoopStrengthReduce/var_stride_used_by_compare.ll
test/Transforms/LoopStrengthReduce/variable_stride.ll
test/Transforms/LoopUnroll/2006-08-24-MultiBlockLoop.ll
test/Transforms/LoopUnroll/2007-05-05-UnrollMiscomp.ll
test/Transforms/LoopUnroll/2007-05-09-UnknownTripCount.ll
test/Transforms/LowerSetJmp/simpletest.ll
test/Transforms/LowerSwitch/feature.ll
test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll
test/Transforms/Mem2Reg/2003-10-05-DeadPHIInsertion.ll
test/Transforms/Mem2Reg/2005-06-30-ReadBeforeWrite.ll
test/Transforms/Mem2Reg/2007-08-27-VolatileLoadsStores.ll
test/Transforms/Mem2Reg/PromoteMemToRegister.ll
test/Transforms/Mem2Reg/UndefValuesMerge.ll
test/Transforms/MemCpyOpt/2008-02-24-MultipleUseofSRet.ll
test/Transforms/MemCpyOpt/2008-03-13-ReturnSlotBitcast.ll
test/Transforms/MemCpyOpt/2008-04-29-SRetRemoval.ll
test/Transforms/MemCpyOpt/form-memset.ll
test/Transforms/MemCpyOpt/form-memset2.ll
test/Transforms/MemCpyOpt/memcpy.ll
test/Transforms/MemCpyOpt/memmove.ll
test/Transforms/MemCpyOpt/sret.ll
test/Transforms/MergeFunc/fold-weak.ll
test/Transforms/PredicateSimplifier/2006-09-20-SetCC.ll
test/Transforms/PredicateSimplifier/2006-10-22-IntOr.ll
test/Transforms/PredicateSimplifier/2006-10-25-AddSetCC.ll
test/Transforms/PredicateSimplifier/2007-03-17-OpsToDefVRP.ll
test/Transforms/PredicateSimplifier/2007-09-19-Subtract.ll
test/Transforms/PredicateSimplifier/predsimplify.ll
test/Transforms/PredicateSimplifier/predsimplify.reg3.ll
test/Transforms/PruneEH/2003-09-14-ExternalCall.ll
test/Transforms/PruneEH/2008-06-02-Weak.ll
test/Transforms/PruneEH/recursivetest.ll
test/Transforms/PruneEH/simplenoreturntest.ll
test/Transforms/PruneEH/simpletest.ll
test/Transforms/RaiseAllocations/FreeCastConstantExpr.ll
test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll
test/Transforms/Reassociate/2002-05-15-MissedTree.ll
test/Transforms/Reassociate/2002-05-15-SubReassociate.ll
test/Transforms/Reassociate/2002-05-15-SubReassociate2.ll
test/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll
test/Transforms/Reassociate/basictest.ll
test/Transforms/Reassociate/basictest2.ll
test/Transforms/Reassociate/basictest3.ll
test/Transforms/Reassociate/basictest4.ll
test/Transforms/Reassociate/inverses.ll
test/Transforms/Reassociate/looptest.ll
test/Transforms/Reassociate/mul-factor3.ll
test/Transforms/Reassociate/mul-neg-add.ll
test/Transforms/Reassociate/mulfactor.ll
test/Transforms/Reassociate/mulfactor2.ll
test/Transforms/Reassociate/negation.ll
test/Transforms/Reassociate/otherops.ll
test/Transforms/Reassociate/shift-factor.ll
test/Transforms/Reassociate/shifttest.ll
test/Transforms/Reassociate/subtest.ll
test/Transforms/Reassociate/subtest2.ll
test/Transforms/SCCP/2002-05-02-EdgeFailure.ll
test/Transforms/SCCP/2002-05-02-MissSecondInst.ll
test/Transforms/SCCP/2002-05-20-MissedIncomingValue.ll
test/Transforms/SCCP/2002-05-21-InvalidSimplify.ll
test/Transforms/SCCP/2002-08-30-GetElementPtrTest.ll
test/Transforms/SCCP/2003-06-24-OverdefinedPHIValue.ll
test/Transforms/SCCP/2003-08-26-InvokeHandling.ll
test/Transforms/SCCP/2004-12-10-UndefBranchBug.ll
test/Transforms/SCCP/2006-12-19-UndefBug.ll
test/Transforms/SCCP/2008-01-27-UndefCorrelate.ll
test/Transforms/SCCP/2008-03-10-sret.ll
test/Transforms/SCCP/2008-04-22-multiple-ret-sccp.ll
test/Transforms/SCCP/2008-05-23-UndefCallFold.ll
test/Transforms/SCCP/2009-01-14-IPSCCP-Invoke.ll
test/Transforms/SCCP/apint-array.ll
test/Transforms/SCCP/apint-basictest.ll
test/Transforms/SCCP/apint-basictest2.ll
test/Transforms/SCCP/apint-basictest3.ll
test/Transforms/SCCP/apint-basictest4.ll
test/Transforms/SCCP/apint-bigarray.ll
test/Transforms/SCCP/apint-bigint.ll
test/Transforms/SCCP/apint-bigint2.ll
test/Transforms/SCCP/apint-ipsccp1.ll
test/Transforms/SCCP/apint-ipsccp2.ll
test/Transforms/SCCP/apint-ipsccp3.ll
test/Transforms/SCCP/apint-ipsccp4.ll
test/Transforms/SCCP/apint-load.ll
test/Transforms/SCCP/apint-phi.ll
test/Transforms/SCCP/apint-select.ll
test/Transforms/SCCP/basictest.ll
test/Transforms/SCCP/calltest.ll
test/Transforms/SCCP/ipsccp-basic.ll
test/Transforms/SCCP/ipsccp-conditional.ll
test/Transforms/SCCP/ipsccp-gvar.ll
test/Transforms/SCCP/loadtest.ll
test/Transforms/SCCP/logical-nuke.ll
test/Transforms/SCCP/phitest.ll
test/Transforms/SCCP/select.ll
test/Transforms/SRETPromotion/2008-06-04-function-pointer-passing.ll
test/Transforms/SRETPromotion/2008-06-05-non-call-use.ll
test/Transforms/SRETPromotion/basictest.ll
test/Transforms/SSI/ssiphi.ll
test/Transforms/ScalarRepl/2003-05-29-ArrayFail.ll
test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll
test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll
test/Transforms/ScalarRepl/2006-11-07-InvalidArrayPromote.ll
test/Transforms/ScalarRepl/2007-05-24-LargeAggregate.ll
test/Transforms/ScalarRepl/2007-05-29-MemcpyPreserve.ll
test/Transforms/ScalarRepl/2007-11-03-bigendian_apint.ll
test/Transforms/ScalarRepl/2008-01-29-PromoteBug.ll
test/Transforms/ScalarRepl/2008-02-28-SubElementExtractCrash.ll
test/Transforms/ScalarRepl/2008-06-05-loadstore-agg.ll
test/Transforms/ScalarRepl/2008-06-22-LargeArray.ll
test/Transforms/ScalarRepl/2008-08-22-out-of-range-array-promote.ll
test/Transforms/ScalarRepl/2008-09-22-vector-gep.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/2009-03-17-CleanUp.ll
test/Transforms/ScalarRepl/AggregatePromote.ll
test/Transforms/ScalarRepl/DifferingTypes.ll
test/Transforms/ScalarRepl/arraytest.ll
test/Transforms/ScalarRepl/badarray.ll
test/Transforms/ScalarRepl/basictest.ll
test/Transforms/ScalarRepl/bitfield-sroa.ll
test/Transforms/ScalarRepl/copy-aggregate.ll
test/Transforms/ScalarRepl/debuginfo.ll
test/Transforms/ScalarRepl/load-store-aggregate.ll
test/Transforms/ScalarRepl/memcpy-from-global.ll
test/Transforms/ScalarRepl/memset-aggregate-byte-leader.ll
test/Transforms/ScalarRepl/memset-aggregate.ll
test/Transforms/ScalarRepl/not-a-vector.ll
test/Transforms/ScalarRepl/phinodepromote.ll
test/Transforms/ScalarRepl/select_promote.ll
test/Transforms/ScalarRepl/union-fp-int.ll
test/Transforms/ScalarRepl/union-packed.ll
test/Transforms/ScalarRepl/union-pointer.ll
test/Transforms/ScalarRepl/vector_memcpy.ll
test/Transforms/ScalarRepl/vector_promote.ll
test/Transforms/ScalarRepl/volatile.ll
test/Transforms/SimplifyCFG/2002-05-05-EmptyBlockMerge.ll
test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll
test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll
test/Transforms/SimplifyCFG/2003-08-17-BranchFold.ll
test/Transforms/SimplifyCFG/2003-08-17-BranchFoldOrdering.ll
test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch-dbg.ll
test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll
test/Transforms/SimplifyCFG/2006-10-19-UncondDiv.ll
test/Transforms/SimplifyCFG/2007-11-22-InvokeNoUnwind.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/2008-12-16-DCECond.ll
test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll
test/Transforms/SimplifyCFG/2009-03-05-Speculative-Hoist-Dbg.ll
test/Transforms/SimplifyCFG/2009-05-12-externweak.ll
test/Transforms/SimplifyCFG/BrUnwind.ll
test/Transforms/SimplifyCFG/DeadSetCC.ll
test/Transforms/SimplifyCFG/EqualPHIEdgeBlockMerge.ll
test/Transforms/SimplifyCFG/HoistCode.ll
test/Transforms/SimplifyCFG/InvokeEliminate.ll
test/Transforms/SimplifyCFG/PhiBlockMerge.ll
test/Transforms/SimplifyCFG/PhiBlockMerge2.ll
test/Transforms/SimplifyCFG/PhiEliminate.ll
test/Transforms/SimplifyCFG/PhiEliminate2.ll
test/Transforms/SimplifyCFG/PhiNoEliminate.ll
test/Transforms/SimplifyCFG/SpeculativeExec.ll
test/Transforms/SimplifyCFG/UncondBranchToReturn.ll
test/Transforms/SimplifyCFG/UnreachableEliminate.ll
test/Transforms/SimplifyCFG/basictest.ll
test/Transforms/SimplifyCFG/branch-branch-dbginfo.ll
test/Transforms/SimplifyCFG/branch-cond-prop.ll
test/Transforms/SimplifyCFG/branch-fold-test.ll
test/Transforms/SimplifyCFG/branch-fold.ll
test/Transforms/SimplifyCFG/branch-phi-thread.ll
test/Transforms/SimplifyCFG/branch_fold_dbg.ll
test/Transforms/SimplifyCFG/dbginfo.ll
test/Transforms/SimplifyCFG/hoist-common-code.dbg.ll
test/Transforms/SimplifyCFG/hoist-common-code.ll
test/Transforms/SimplifyCFG/iterative-simplify.ll
test/Transforms/SimplifyCFG/noreturn-call.ll
test/Transforms/SimplifyCFG/return-merge.ll
test/Transforms/SimplifyCFG/switch_create.ll
test/Transforms/SimplifyCFG/switch_formation.dbg.ll
test/Transforms/SimplifyCFG/switch_formation.ll
test/Transforms/SimplifyCFG/switch_switch_fold.ll
test/Transforms/SimplifyCFG/switch_switch_fold_dbginfo.ll
test/Transforms/SimplifyCFG/switch_thread.ll
test/Transforms/SimplifyCFG/trapping-load-unreachable.ll
test/Transforms/SimplifyCFG/two-entry-phi-return.dbg.ll
test/Transforms/SimplifyCFG/two-entry-phi-return.ll
test/Transforms/SimplifyLibCalls/2007-04-06-strchr-miscompile.ll
test/Transforms/SimplifyLibCalls/2008-05-19-memcmp.ll
test/Transforms/SimplifyLibCalls/2009-01-04-Annotate.ll
test/Transforms/SimplifyLibCalls/2009-02-12-StrTo.ll
test/Transforms/SimplifyLibCalls/2009-05-30-memcmp-byte.ll
test/Transforms/SimplifyLibCalls/FFS.ll
test/Transforms/SimplifyLibCalls/FPrintF.ll
test/Transforms/SimplifyLibCalls/IsDigit.ll
test/Transforms/SimplifyLibCalls/MemCpy.ll
test/Transforms/SimplifyLibCalls/Printf.ll
test/Transforms/SimplifyLibCalls/Puts.ll
test/Transforms/SimplifyLibCalls/SPrintF.ll
test/Transforms/SimplifyLibCalls/StrCat.ll
test/Transforms/SimplifyLibCalls/StrChr.ll
test/Transforms/SimplifyLibCalls/StrCmp.ll
test/Transforms/SimplifyLibCalls/StrCpy.ll
test/Transforms/SimplifyLibCalls/StrLen.ll
test/Transforms/SimplifyLibCalls/StrNCat.ll
test/Transforms/SimplifyLibCalls/StrNCmp.ll
test/Transforms/SimplifyLibCalls/StrNCpy.ll
test/Transforms/SimplifyLibCalls/ToAscii.ll
test/Transforms/SimplifyLibCalls/abs.ll
test/Transforms/SimplifyLibCalls/exp2.ll
test/Transforms/SimplifyLibCalls/floor.ll
test/Transforms/SimplifyLibCalls/half-powr.ll
test/Transforms/SimplifyLibCalls/memcmp.ll
test/Transforms/SimplifyLibCalls/memmove.ll
test/Transforms/SimplifyLibCalls/memset-64.ll
test/Transforms/SimplifyLibCalls/memset.ll
test/Transforms/SimplifyLibCalls/pow2.ll
test/Transforms/SimplifyLibCalls/weak-symbols.ll
test/Transforms/StripSymbols/2007-01-15-llvm.used.ll
test/Transforms/TailCallElim/accum_recursion.ll
test/Transforms/TailCallElim/accum_recursion_constant_arg.ll
test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll
test/Transforms/TailCallElim/dont_reorder_load.ll
test/Transforms/TailCallElim/inf-recursion.ll
test/Transforms/TailCallElim/intervening-inst.ll
test/Transforms/TailCallElim/move_alloca_for_tail_call.ll
test/Transforms/TailCallElim/reorder_load.ll
test/Transforms/TailCallElim/return_constant.ll
test/Transforms/TailCallElim/trivial_codegen_tailcall.ll
test/Transforms/TailDup/MergeTest.ll

index 40dbae900e137a23be1ab0f77db1eb7f08c9c767..f99d3053c674ea6a142eb610dffbf959338be82c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -anders-aa -gvn | llvm-dis | not grep undef
+; RUN: opt %s -anders-aa -gvn -S | not grep undef
 ; PR2160
 
 declare void @f(i32*)
index c89f976e8d920f6f466ad0b3ac5cbe0a9b31c37a..87d21cf27540bf0f3ad638756daf8583612c6fe6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -anders-aa -gvn | llvm-dis | not grep undef
+; RUN: opt %s -anders-aa -gvn -S | not grep undef
 ; PR2169
 
 declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) nounwind
index ffa3a74202f8aedd56fc355d2fac6a4b07bcb617..1b5077825523504c2c7d08c8e334411c4ee81b71 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -anders-aa -gvn -deadargelim | llvm-dis | grep store | not grep null
+; RUN: opt %s -anders-aa -gvn -deadargelim -S | grep store | not grep null
 
 ; Because the 'internal' function is passed to an external function, we don't
 ; know what the incoming values will alias.  As such, we cannot do the 
index 171e6ef38a810d1b4be829dafde58d24848abaf0..17f3c0480f29e4ec748f933d3f89ebe91f77015b 100644 (file)
@@ -2,7 +2,7 @@
 ; is performed.  It is not legal to delete the second load instruction because
 ; the value computed by the first load instruction is changed by the store.
 
-; RUN: opt %s -gvn -instcombine | llvm-dis | grep DONOTREMOVE
+; RUN: opt %s -gvn -instcombine -S | grep DONOTREMOVE
 
 define i32 @test() {
        %A = alloca i32
index 6518551c7aff3642d6f1b6059cd8aa61cb8df2d4..6e9276f7dce06802c8185727f1600db0110c1612 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn -instcombine | llvm-dis | grep sub
+; RUN: opt %s -gvn -instcombine -S | grep sub
 
 ; BasicAA was incorrectly concluding that P1 and P2 didn't conflict!
 
index c3977afd8b1366ff5e4109e0a30bf0c49c61fef9..231521d4b74d0e1c47ca574f98671d976f1f0015 100644 (file)
@@ -1,6 +1,6 @@
 ; In this test, a local alloca cannot alias an incoming argument.
 
-; RUN: opt %s -gvn -instcombine | llvm-dis | not grep sub
+; RUN: opt %s -gvn -instcombine -S | not grep sub
 
 define i32 @test(i32* %P) {
        %X = alloca i32
index 05defe54b9bafb21bf8a70f375a779b6db1f8e00..ddecfb76429e6a315c863be671dae3d20c4a49af 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -dse | llvm-dis | grep {store i32 0}
+; RUN: opt %s -dse -S | grep {store i32 0}
 
 define void @test({i32,i32 }* %P) {
        %Q = getelementptr {i32,i32}* %P, i32 1
index 18c0bb2c42f60bdff6116e6d1a1cd95b3780829c..0ebe4e8047318b9be84814d47dd44d597581b73f 100644 (file)
@@ -1,7 +1,7 @@
 ; PR1109
-; RUN: opt %s -basicaa -gvn -instcombine | llvm-dis | \
+; RUN: opt %s -basicaa -gvn -instcombine -S | \
 ; RUN:   grep {sub i32}
-; RUN: opt %s -basicaa -gvn -instcombine | llvm-dis | \
+; RUN: opt %s -basicaa -gvn -instcombine -S | \
 ; RUN:   not grep {ret i32 0}
 ; END.
 
index 73f4dc8e760c75e71429faf7c5fd37740fc00484..6a92fd8cc33adc33977e7e3209e47a523161ebda 100644 (file)
@@ -1,5 +1,5 @@
 ; PR1600
-; RUN: opt %s -basicaa -gvn -instcombine | llvm-dis | \
+; RUN: opt %s -basicaa -gvn -instcombine -S | \
 ; RUN:   grep {ret i32 0}
 ; END.
 
index cfa152b8e9d6338d34726453495ecfa670374204..34b0f6f3342fb1c1ae92459eb68079740f187202 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -basicaa -gvn -dce | llvm-dis | grep tmp7
+; RUN: opt %s -basicaa -gvn -dce -S | grep tmp7
 
         %struct.A = type { i32 }
         %struct.B = type { %struct.A }
index 31ae1e8113c9b2388c330dd9f78c255ed487441c..26e14dfcbff2a9d0647403dda1ec6b1e544c4c07 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -std-compile-opts | llvm-dis | grep store
+; RUN: opt %s -std-compile-opts -S | grep store
 ; ModuleID = 'small2.c'
 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 617e01d97e9c9c2245c411c2314de202407b8dff..8864571b418979975170b790626004730135473f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -basicaa -gvn | llvm-dis | grep load
+; RUN: opt %s -basicaa -gvn -S | grep load
 
 declare noalias i32* @noalias()
 
index 7eebb9a5ad421b28dbeb824544b18ba617eed389..f5ffcccd78570d12036cd68ce2ac95838292e7f4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | grep {ret i32 1}
+; RUN: opt %s -gvn -S | grep {ret i32 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 = "i686-apple-darwin8"
        %struct.x = type { i32, i32, i32, i32 }
index fb297e86085204c44ef5930bc51578a227b07af7..866bdb23715e61be20df731e3cdf9887fc69a4b9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -basicaa -gvn | llvm-dis | grep load | count 1
+; RUN: opt %s -basicaa -gvn -S | grep load | count 1
 
 @flag0 = internal global i32 zeroinitializer
 @turn = internal global i32 zeroinitializer
index 01e4708d77f2e60205ee32bd5e69539843985747..767b36a405e50684bf373d986a95411200ce5c99 100644 (file)
@@ -1,7 +1,7 @@
 ; This testcase tests for various features the basicaa test should be able to 
 ; determine, as noted in the comments.
 
-; RUN: opt %s -basicaa -gvn -instcombine -dce | llvm-dis | not grep REMOVE
+; RUN: opt %s -basicaa -gvn -instcombine -dce -S | not grep REMOVE
 
 @Global = external global { i32 }
 
index e95bc59102546d6f2a71e43e1c6f510568051bc2..a3f38a089542e383ea168145d943df81bb6236cc 100644 (file)
@@ -1,7 +1,7 @@
 ; A store or load cannot alias a global if the accessed amount is larger then
 ; the global.
 
-; RUN: opt %s -basicaa -gvn -instcombine | llvm-dis | not grep load
+; RUN: opt %s -basicaa -gvn -instcombine -S | not grep load
 
 @B = global i16 8               ; <i16*> [#uses=2]
 
index cfe4e9f219b4048af5f06333718377fc81c13942..a0b6a449b26ef4475780e664d19699950d9db194 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -basicaa -gvn -instcombine | llvm-dis | grep {ret i1 true}
+; RUN: opt %s -basicaa -gvn -instcombine -S | grep {ret i1 true}
 ; PR2436
 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 5269449c2bd1801246edd7578fa9bd0569beeac1..39a70ab5da7ed4d649c64a2f6d0712094a892965 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -basicaa -gvn -instcombine | llvm-dis | grep {ret i32 0}
+; RUN: opt %s -basicaa -gvn -instcombine -S | grep {ret i32 0}
 
 declare i32* @test(i32* nocapture)
 
index ab34e16e52577a295091d7369a9225644ef0d119..cffb87255bb09e967f03e5242d37e9d76df9dee6 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -basicaa -gvn | llvm-dis | grep TestConst | count 2
-; RUN: opt %s -basicaa -gvn | llvm-dis | grep TestPure  | count 3
-; RUN: opt %s -basicaa -gvn | llvm-dis | grep TestNone  | count 4
+; RUN: opt %s -basicaa -gvn -S | grep TestConst | count 2
+; RUN: opt %s -basicaa -gvn -S | grep TestPure  | count 3
+; RUN: opt %s -basicaa -gvn -S | grep TestNone  | count 4
 @g = global i32 0              ; <i32*> [#uses=1]
 
 define i32 @test() {
index 196a608c33d454b9b8984ce6a5905e25e172d65b..09c432285865a5accebb5ae863fb7f4adcc40d4f 100644 (file)
@@ -2,7 +2,7 @@
 ; disambiguating some obvious cases.  If LICM is able to disambiguate the
 ; two pointers, then the load should be hoisted, and the store sunk.
 
-; RUN: opt %s -basicaa -licm | llvm-dis | FileCheck %s
+; RUN: opt %s -basicaa -licm -S | FileCheck %s
 
 @A = global i32 7               ; <i32*> [#uses=3]
 @B = global i32 8               ; <i32*> [#uses=2]
index e10d9bd5f0ee2088fa960cb6655faff6c06a8fd2..61297b615963e97337a8e33734615f1222e77fe7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalsmodref-aa -gvn | llvm-dis | grep call | count 2
+; RUN: opt %s -globalsmodref-aa -gvn -S | grep call | count 2
 
 @g = internal global i32 0             ; <i32*> [#uses=2]
 
index 957793d2072a79dd26e0cc675e0ec9dba9410651..0de1d8a4355c015f3c5715d731f516f98e354be0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalsmodref-aa -gvn | llvm-dis | not grep load
+; RUN: opt %s -globalsmodref-aa -gvn -S | not grep load
 @X = internal global i32 4             ; <i32*> [#uses=1]
 
 define i32 @test(i32* %P) {
index 01d86112a8acf44c56e8fece080a05ea5e83cdb8..479c6b434bc593efa4ce9cde9dbb33d757ad00ff 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalsmodref-aa -gvn | llvm-dis | not grep load
+; RUN: opt %s -globalsmodref-aa -gvn -S | not grep load
 
 ; This test requires the use of previous analyses to determine that
 ; doesnotmodX does not modify X (because 'sin' doesn't).
index dbbebc36939a9c54c14d699a73542a49daa23422..a0a4ddec92fee2541fb6b50c65b1d49d2255d272 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalsmodref-aa -gvn -instcombine | llvm-dis | \
+; RUN: opt %s -globalsmodref-aa -gvn -instcombine -S | \
 ; RUN:   grep {ret i32 0}
 
 @G = internal global i32* null         ; <i32**> [#uses=3]
index f84725a3859c6c41b28463edad2e65749cf48434..7bcb08df37c9bf8d4585a036b667af82fbe71778 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalsmodref-aa -gvn | llvm-dis | not grep load
+; RUN: opt %s -globalsmodref-aa -gvn -S | not grep load
 @X = internal global i32 4             ; <i32*> [#uses=2]
 
 define i32 @test(i32* %P) {
index 3eb805b65ed5655de0e387d354ed50bfff6141f0..ffdfc2ee643e8060a4c26012782d69357371fac8 100644 (file)
@@ -1,5 +1,5 @@
 ; Test the edge profiling instrumentation.
-; RUN: opt %s -insert-edge-profiling | llvm-dis | FileCheck %s
+; RUN: opt %s -insert-edge-profiling -S | FileCheck %s
 
 ; ModuleID = '<stdin>'
 
index caea9e4406543d722b2816797666260d5e1be5fb..d8ba3f5fb0b732a7c1238414d4ef568c30f8a6eb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars -adce -simplifycfg | llvm-dis | grep "icmp s"
+; RUN: opt %s -indvars -adce -simplifycfg -S | grep "icmp s"
 ; PR1598
 
 define i32 @f(i32 %a, i32 %b, i32 %x, i32 %y) {
index ff46b87bebdc1f6dd37613defbfe07a112f4783a..1d01bb4cd42bd1d7e414d1a756cf3e4c361e127e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | grep printd | grep 1206807378
+; RUN: opt %s -indvars -S | grep printd | grep 1206807378
 ; PR1798
 
 declare void @printd(i32)
index 5d30d61f1297472193c180e3c7f0304ebbda6d1c..5c77005848af915e7fa6eea42c6d2525d7705610 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt %s -indvars -S > %t
 ; RUN: grep select %t | count 2
 ; RUN: grep {icmp ne i32.\* %w } %t
 
index 914ab8bc4a52dd73994b7ad6b613abfa125dfd95..b0d7cc0e43a4ad280bd6e1c085bedd6368dbc4a6 100644 (file)
@@ -5,7 +5,7 @@
 ; of the bug that was causing the Olden Health benchmark to output incorrect
 ; results!
 ;
-; RUN: opt %s -constprop | llvm-dis > %t.1
+; RUN: opt -constprop -S > %t.1 < %s
 ; RUN: llvm-as < %s | llvm-dis | llvm-as | opt -constprop | \
 ; RUN: llvm-dis > %t.2
 ; RUN: diff %t.1 %t.2
index 2e10b2eaea4e90a2b50a455957ced975fd48d34b..1ba9270fcf6b346bc9b251bd2e949f832886ac94 100644 (file)
@@ -4,7 +4,7 @@
 ; Check by running globaldce, which will remove the constant if there are
 ; no references to it!
 ; 
-; RUN: opt %s -globaldce | llvm-dis | \
+; RUN: opt %s -globaldce -S | \
 ; RUN:   not grep constant
 ;
 
index 2986668694a5dc05296d919b73d8b92b5060aded..85d892dccbe336912b84d0585f6cdb3c93937b4b 100644 (file)
@@ -1,7 +1,7 @@
 ; Testcase that seems to break the bytecode reader.  This comes from the
 ; "crafty" spec benchmark.
 ;
-; RUN: opt %s -instcombine | llvm-dis | llvm-as
+; RUN: opt %s -instcombine -S | llvm-as
        
 %CHESS_POSITION = type { i32, i32 }
 @pawn_probes = external global i32             ; <i32*> [#uses=0]
index 2efdf5c35d43025c1a1e5207ec62a9701e0371ba..5360de47f2bbd5217bb7ca05acdb3d6483a6c5f4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -instcombine -simplifycfg -S | not grep br
 
 @.str_1 = internal constant [6 x i8] c"_Bool\00"                ; <[6 x i8]*> [#uses=2]
 
index 44a40469e03294e351d089e36570bce942d98fc5..3f0ff8a0621ba1cb4d37ba62e59c8d3f56ec227c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -verify | llvm-dis | llvm-as -disable-output
+; RUN: opt %s -verify -S | llvm-as -disable-output
 
 define {i32, i8} @foo(i32 %p) {
   ret i32 1, i8 2
index d8c71c99d49824beec620eb95691dbe55577bedf..94529b9e24d721ae3d3e97684c35ea5d843aa6e4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -strip | llvm-dis | llvm-as | llvm-dis
+; RUN: opt %s -strip -S | llvm-as | llvm-dis
 
 ; Stripping the name from A should not break references to it.
 %A = type opaque
index 54d91edd7d3d5f3287f397ab78d8c0f528be818e..5dd171abd2efa2f1fd1a4593fc295ffa9df0a3be 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline | llvm-dis | grep example
+; RUN: opt %s -inline -S | grep example
 
        %IntArray = type { i32, [0 x i32*] }
 
index a6bcc1bf812819422ae98c78f811ce57ab644e14..ad98e3e3453c895c9220b4f9355681d5d3d2f61a 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -inline | llvm-dis | grep sample
-; RUN: opt %s -inline | llvm-dis | grep example
+; RUN: opt %s -inline -S | grep sample
+; RUN: opt %s -inline -S | grep example
 
        %IntArray = type { i32, [0 x i32*] }
 
index 3b908656874354aabd93530b3992c496e4dde0ac..7eadda86e60624798bb360b8954075abcdbeae79 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep 302245289961712575840256
-; RUN: opt %s -instcombine | llvm-dis | grep K40018000000000000000
+; RUN: opt %s -instcombine -S | grep 302245289961712575840256
+; RUN: opt %s -instcombine -S | grep K40018000000000000000
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
 target triple = "i686-apple-darwin9"
 
index cf4872d2902c6ca70c2781511695d82f628d6adf..b99d7b57164e18ce9ddf7a090044eff803882ee7 100644 (file)
@@ -1,4 +1,4 @@
-;RUN: llvm-as <%s | opt -licm | llvm-dis | grep {load } | count 4
+;RUN: llvm-as <%s | opt -licm -S | grep {load } | count 4
 ; ModuleID = '2009-02-27-licm.bc'
 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 20f8e0cdb685f33b593a1253b9b49dd460745a4a..4f955e9c3460f763381fb2743d10dd3ecde55fa5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep store | count 5
+; RUN: opt %s -instcombine -S | grep store | count 5
 ; ModuleID = '<stdin>'
 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 de9e1ef131961e68ce4e05e24e065383718508cb..8d4961453863bca3c400e026e53a745ea7319f8f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep alloca
+; RUN: opt %s -instcombine -S | not grep alloca
 ; ModuleID = '<stdin>'
 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 6ed1e504ba22ef0e60f0dfee3dcab7d764622669..8fad616d0f62e1341453175f0626cd163fe0f1ae 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep alloca
+; RUN: opt %s -instcombine -S | not grep alloca
 ; ModuleID = '<stdin>'
 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 394982ce91950c8d87ad93dc8915003ffe42c202..06c9f858261dc002804c3408392984157eb8d73a 100644 (file)
@@ -1,4 +1,4 @@
-;RUN: llvm-as <%s | opt -gvn | llvm-dis | grep {load } | count 1
+;RUN: llvm-as <%s | opt -gvn -S | grep {load } | count 1
 ; ModuleID = 'db2-before.bc'
 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 06cfe115cd550cdf49b57957f3f151d76c98a8ee..fde155175ade7686a28bd6fb44ff4e33702a9ed3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -std-compile-opts | llvm-dis > %t
+; RUN: opt %s -std-compile-opts -S > %t
 ; RUN:   grep undef %t | count 1
 ; RUN:   grep 5 %t | count 1
 ; RUN:   grep 7 %t | count 1
index 3a4bd07a719b8850c5063d8d123566d3a8704756..50aec822e72d023f8a8576aff2ef407fbddac30b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep true
+; RUN: opt %s -instcombine -S | grep true
 
 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 515f9094363aa00722aea2cc6cc20482ab924aa5..51e1466f5082eb51f8f55c55bcc1e097898403d0 100644 (file)
@@ -1,4 +1,4 @@
 
-; RUN: opt %s -verify | llvm-dis | grep noimplicitfloat
+; RUN: opt %s -verify -S | grep noimplicitfloat
 define void @f() noimplicitfloat {
 }
index 5a7b0bb8a512095383693459a41cb3df0e6c7418..d150ce0eb694a4110a6d117d49c5bf194fec6152 100644 (file)
@@ -1,6 +1,6 @@
 ; It is illegal to remove BB1 because it will mess up the PHI node!
 ;
-; RUN: opt %s -adce | llvm-dis | grep BB1
+; RUN: opt %s -adce -S | grep BB1
 
 define i32 @test(i1 %C, i32 %A, i32 %B) {
 ; <label>:0
index 9cbf8c66405f1c27bc56edef0dfa3c79c54d4e79..4269c4fe6242b2148025ace5cde747c756c6e427 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -adce -simplifycfg | llvm-dis | not grep then:
+; RUN: opt %s -adce -simplifycfg -S | not grep then:
 
 define void @dead_test8(i32* %data.1, i32 %idx.1) {
 entry:
index 847cf2b0be288a5ada851f149c9eb28a2c7cafcb..7d3027f098bff29c6591d288abb47c687c7305a6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -adce -simplifycfg | llvm-dis | grep call
+; RUN: opt %s -adce -simplifycfg -S | grep call
 declare void @exit(i32)
 
 define i32 @main(i32 %argc) {
index b76ccc5e6299d628e151b1ee66e9a0a8d5affbd8..66483abbc919e653c474eae29a6f126e45d80775 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -adce | llvm-dis | not grep call
+; RUN: opt -adce -S < %s | not grep call
 
 declare i32 @strlen(i8*) readonly nounwind
 
index f8111456efd14f6f3ba52babf830905c32e87fac..c238d62cfb4cd925fd46b0ad922da92384788616 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -adce | llvm-dis | grep null
+; RUN: opt %s -adce -S | grep null
 
 declare i32 @strlen(i8*) readnone
 
index 4d6a1905572ae5847d7e401419f0ae017841b136..2f50229abb3954e5aacde6f3a1d766dc3794d83b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -argpromotion | llvm-dis | grep nounwind | count 2
+; RUN: opt %s -argpromotion -S | grep nounwind | count 2
 
 define internal i32 @deref(i32* %x) nounwind {
 entry:
index d35f853a2d34329d6eaf674f7ff7b43ef8640812..787006e0ba7a3a42c1b70d398fd5a5750d82f035 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -argpromotion | llvm-dis > %t
+; RUN: opt %s -argpromotion -S > %t
 ; RUN: cat %t | grep {define.*@callee(.*i32\\*}
 ; PR2498
 
index c5a69bcf6cd9835690ca771435ae96b40613931b..d4883e78bf6f6175f75c128f09058551ed92b14e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -argpromotion -instcombine | llvm-dis | not grep load
+; RUN: opt %s -argpromotion -instcombine -S | not grep load
 
 %QuadTy = type { i32, i32, i32, i32 }
 @G = constant %QuadTy {
index 69936691925b82368f2bbe9f85bf2e00f6dcd24e..91ca624d55a0fb92792020515ab8cb507c0a6ca5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -argpromotion | llvm-dis | grep zeroext
+; RUN: opt %s -argpromotion -S | grep zeroext
 
        %struct.ss = type { i32, i64 }
 
index ef04e112ee3168d5461cef1ecbdb99db7fba23ee..f2046080eea95c1efae8ab555c7723d36927249c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -argpromotion -mem2reg | llvm-dis | not grep alloca
+; RUN: opt %s -argpromotion -mem2reg -S | not grep alloca
 define internal i32 @test(i32* %X, i32* %Y) {
         %A = load i32* %X               ; <i32> [#uses=1]
         %B = load i32* %Y               ; <i32> [#uses=1]
index 26899b3575969a5b9e6171b02239446b77ddf1e8..ff4506da9582b76565cb42bf15cc019fb23545e7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -argpromotion | llvm-dis | 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 5a8c4c0cd402dd6ee5c472bf474ef5bce46b3b5e..0daa033e7c86a8c42744a9d02563bd33f47402c6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -argpromotion -scalarrepl | llvm-dis | not grep load
+; RUN: opt %s -argpromotion -scalarrepl -S | not grep load
 ; Argpromote + scalarrepl should change this to passing the two integers by value.
 
        %struct.ss = type { i32, i64 }
index 5211be43dd57a2134cb92e3951050cfa14013271..99bd6bd547857e2902acfcb02fe9330cbd3577d6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -argpromotion -instcombine | llvm-dis | not grep load
+; RUN: opt %s -argpromotion -instcombine -S | not grep load
 
 @G1 = constant i32 0            ; <i32*> [#uses=1]
 @G2 = constant i32* @G1         ; <i32**> [#uses=1]
index cf1fd09bf640ec86fd510174ee2ebc4df2284a92..48d3006324f44dfd3321147a10942a38822b0f24 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -argpromotion | llvm-dis | \
+; RUN: opt %s -argpromotion -S | \
 ; RUN:    not grep {load i32\* null}
 
 define internal i32 @callee(i1 %C, i32* %P) {
index 752ac95b19527e1d51e0ece01840fdfeb87d4dcd..2c42bea6114ee36531b18ce87c60430c8168bd08 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -argpromotion | llvm-dis | \
+; RUN: opt %s -argpromotion -S | \
 ; RUN:   grep {load i32\\* %A}
 
 define internal i32 @callee(i1 %C, i32* %P) {
index f0af0a6d7e447548775ee20aefefa7398d93e3b6..c7a56b8431bf9f1766b4cbb22c6dba3b42d31cdb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -condprop | llvm-dis | \
+; RUN: opt %s -condprop -S | \
 ; RUN:    not grep {br label}
 
         %llvm.dbg.anchor.type = type { i32, i32 }
index 7a9fc60fddc1c5eed2fee7f73540d6894f0184f9..afe5b352eebe2a998fc561d5ba5ccdb84da74aba 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -condprop | llvm-dis | \
+; RUN: opt %s -condprop -S | \
 ; RUN:    not grep {br label}
-; RUN: opt %s -condprop | llvm-dis | not grep T2
+; RUN: opt %s -condprop -S | not grep T2
 
 
 define i32 @test(i1 %C) {
index 97cd7369a9c111e0e3762330da5666cfe23234db..ce33f1e59a65c481e043edd96f6c60d287b6cd01 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -condprop | llvm-dis | not grep phi
+; RUN: opt < %s -condprop -S | not grep phi
 
 define i32 @test(i32 %C, i1 %Val) {
         switch i32 %C, label %T1 [
index 69e79a6c84fa6ae737d93ccf63cecd9822efff6e..4ecbd8856b789cdf1ecc8476270b06ce99932e7c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -condprop | llvm-dis | not grep phi
+; RUN: opt < %s -condprop -S | not grep phi
 
 declare i1 @foo()
 
index df5e5eb6758ed9c4b50b17d497a2c356be2fcca1..6166efb1103f1a5167e7f824a75b452d23ce7d48 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -condprop | llvm-dis | not grep phi
+; RUN: opt < %s -condprop -S | not grep phi
 
 define i32 @foo(i1, i32, i32) {
 prologue:
index 0164252d7552f9a3e487085ad190ef9817f12f75..295ef0c0bc82e189ada5a7c009d615c288e61296 100644 (file)
@@ -4,7 +4,7 @@
 
 ; Fix #2: The unary not instruction now no longer exists. Change to xor.
 
-; RUN: opt %s -constprop | llvm-dis | \
+; RUN: opt %s -constprop -S | \
 ; RUN:   not grep {i32 0}
 
 define i32 @test1() {
index 6eadb0a77ebd7e0dfb17e0655de94ffcc3e518f4..c3600673d5740c579ff56737f51b6b87d9ad0128 100644 (file)
@@ -1,6 +1,6 @@
 ; SetCC on boolean values was not implemented!
 
-; RUN: opt %s -constprop -die | llvm-dis | \
+; RUN: opt %s -constprop -die -S | \
 ; RUN:   not grep set
 
 define i1 @test1() {
index c99c3b8529065595ce637d5cb24bf25beb781891..6a7f79441436299d3e34964180b7490235672f92 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -constprop | llvm-dis | \
+; RUN: opt %s -constprop -S | \
 ; RUN:    not grep {ret i1 false}
 
 @b = external global [2 x {  }]         ; <[2 x {  }]*> [#uses=2]
index c6313524990c995f219e136b15f58472e9fecc42..571e460573f06e1ab01ec91af6ac48c50062240d 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -constprop | llvm-dis | \
+; RUN: opt %s -constprop -S | \
 ; RUN:   grep {i32 -1}
-; RUN: opt %s -constprop | llvm-dis | \
+; RUN: opt %s -constprop -S | \
 ; RUN:   not grep zeroinitializer
 
 define <4 x i32> @test() {
index c7769616a9ae6ae963aca0b46300ef1003cfd538..07d6220ec76d6542b177df141f81f8383b58b1ca 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   grep {ret i1 false}
 define i1 @test() {
         %X = trunc i32 320 to i1                ; <i1> [#uses=1]
index 29b4667b92162778eeb5fd7ae696f8c68dfa2903..a32191c76f13db482c884974f33b81b83a32003c 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -constprop | llvm-dis | \
+; RUN: opt %s -constprop -S | \
 ; RUN:    grep {ret i32 -1}
-; RUN: opt %s -constprop | llvm-dis | \
+; RUN: opt %s -constprop -S | \
 ; RUN:    grep {ret i32 1}
 
 define i32 @test1() {
index 9211aeb635e2c64856cf114c288de5463088b7be..cb69564144f481b2604d237981d3a510ff0c222a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -constprop | llvm-dis | grep 1065353216
+; RUN: opt %s -constprop -S | grep 1065353216
 
 define i32 @test() {
         %A = bitcast float 1.000000e+00 to i32          ; <i32> [#uses=1]
index 93e3c4b904f5181034b82fdeac1202bec704a297..0fba0808822e7201a9890cabf4d9464e92a1f2b3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -constprop | llvm-dis | grep {ret i13 13}
+; RUN: opt %s -constprop -S | grep {ret i13 13}
 ; PR1816
 declare i13 @llvm.cttz.i13(i13)
 
index 07516764da72375b61f54b48bd70de73ba3f1f2c..900a9afeaa57b9829fd944fafe465892b26a130e 100644 (file)
@@ -1,7 +1,7 @@
 ; This is a basic sanity check for constant propogation.  The add instruction 
 ; should be eliminated.
 
-; RUN: opt %s -constprop -die | llvm-dis | not grep add
+; RUN: opt %s -constprop -die -S | not grep add
 
 define i32 @test(i1 %B) {
         br i1 %B, label %BB1, label %BB2
index b2bc122f28f59be0d22b767f4f7ae672ae0ed0e3..5c5eab1879c3ab4daa26af3e6963d33a7920258e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep bitcast
+; RUN: opt < %s -instcombine -S | not grep bitcast
 ; PR2165
 
 define <1 x i64> @test() {
index 0c4f0454d742e3359e84641138f9c40a8880f844..df1ee491e508d9255a18fb34d72e4940670b81bf 100644 (file)
@@ -1,6 +1,6 @@
 ; bswap should be constant folded when it is passed a constant argument
 
-; RUN: opt %s -constprop | llvm-dis | not grep call
+; RUN: opt %s -constprop -S | not grep call
 
 declare i16 @llvm.bswap.i16(i16)
 
index 4337cca1bdba3b109b381a89fa7f83275a7e48ec..3c266fe62ed884dc45235d2803a861f9907223d9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -constprop | llvm-dis | not grep call
+; RUN: opt < %s -constprop -S | not grep call
 
 declare double @cos(double)
 
index 74c7449f02af5157c9759e6bd1d6caf4a306bfca..e96061d3b69bcde08df4d96c76e9ce74d43fbc94 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ret i32 0}
+; RUN: opt %s -instcombine -S | grep {ret i32 0}
 ; PR4424
 declare void @ext()
 
index f65d51e41b76fa34f3cdf381f65584759132567e..8ab76d997b1a80eebbb92bb1a58c6f40cd7d3cff 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -constprop | llvm-dis | \
+; RUN: opt %s -constprop -S | \
 ; RUN:    grep -F {ret i32* null} | count 2
 
 define i32* @test1() {
index 022e6ae11e69f674a1d0f5ac9bc2da4f86a9bf7b..7a90a7199f8da4a93724c4ed9b500a7ba13b9f65 100644 (file)
@@ -1,6 +1,6 @@
 ; Ensure constant propogation of logical instructions is working correctly.
 
-; RUN: opt %s -constprop -die | llvm-dis | \
+; RUN: opt < %s -constprop -die -S | \
 ; RUN:   not egrep {and|or|xor}
 
 define i32 @test1() {
index d1fb83abd16238ce6439320f93c097eeaf4d75e7..f7a18d45c3fcc4db1e2603acd807d745e5206c78 100644 (file)
@@ -1,6 +1,6 @@
 ; Ensure constant propogation of 'not' instructions is working correctly.
 
-; RUN: opt %s -constprop -die | llvm-dis | not grep xor
+; RUN: opt %s -constprop -die -S | not grep xor
 
 define i32 @test1() {
         %R = xor i32 4, -1              ; <i32> [#uses=1]
index 9ec87766bde5dbcaa5de17903fcb68706d00d1b4..3d9e284457cf6e5884b3b8b9c3ccd9d231e80680 100644 (file)
@@ -1,7 +1,7 @@
 ; This is a basic sanity check for constant propogation.  The add instruction 
 ; should be eliminated.
 
-; RUN: opt %s -constprop -die | llvm-dis | not grep phi
+; RUN: opt < %s -constprop -die -S | not grep phi
 
 define i32 @test(i1 %B) {
 BB0:
index ac9509d5f4ef9d5bfcb6d5ec15acdc63fb724bd6..efd2d48332a2ac17e5af6ecdecb26b4a291bad03 100644 (file)
@@ -1,6 +1,6 @@
 ; Ensure constant propagation of remainder instructions is working correctly.
 
-; RUN: opt %s -constprop -die | llvm-dis | not grep rem
+; RUN: opt < %s -constprop -die -S | not grep rem
 
 define i32 @test1() {
         %R = srem i32 4, 3              ; <i32> [#uses=1]
index d61a65194cad59d2f822a3b63fa6501c3280cef0..74ce5156266dd214f7a45ebd40a6f149cbb23611 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -constmerge | llvm-dis | grep foo
-; RUN: opt %s -constmerge | llvm-dis | grep bar
+; RUN: opt %s -constmerge -S | grep foo
+; RUN: opt %s -constmerge -S | grep bar
 
 ; Don't merge constants in different sections.
 
index 2df4aa841c288e9e996060895e4aca753c0479f8..deb9aed65de316e9e4007958647ac4099c45895f 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -deadargelim | llvm-dis | grep {@test(}
-; RUN: opt %s -deadargelim | llvm-dis | not grep dead
+; RUN: opt %s -deadargelim -S | grep {@test(}
+; RUN: opt %s -deadargelim -S | not grep dead
 
 define internal i32 @test(i32 %X, i32 %dead) {
        ret i32 %X
index 4a24c8a96fbe8e6f5cd095f96b9c88553f6d464b..bfbb636bb718dc8f3b81ed49efb80db0d17d4fcd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -deadargelim | llvm-dis | not grep {ret i32 0}
+; RUN: opt %s -deadargelim -S | not grep {ret i32 0}
 ; PR1735
 
 define internal i32 @test(i32 %A, ...) { 
index cb866f66a1cd309516074c0b638e699d47b0a490..306d1b7d7d67f86d79a4755c7e4d438fad02435f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -deadargelim | llvm-dis > %t
+; RUN: opt %s -deadargelim -S > %t
 ; RUN: cat %t | grep nounwind | count 2
 ; RUN: cat %t | grep signext | count 2
 ; RUN: cat %t | not grep inreg
index 34b084064ecd90cae7026d1b99b96b6dc65e57d6..093476df35bb5067ca35b17c30ee15a02a0fbddf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -deadargelim | llvm-dis | grep byval
+; RUN: opt %s -deadargelim -S | grep byval
 
        %struct.point = type { double, double }
 @pts = global [4 x %struct.point] [ %struct.point { double 1.000000e+00, double 2.000000e+00 }, %struct.point { double 3.000000e+00, double 4.000000e+00 }, %struct.point { double 5.000000e+00, double 6.000000e+00 }, %struct.point { double 7.000000e+00, double 8.000000e+00 } ], align 32         ; <[4 x %struct.point]*> [#uses=1]
index bdaa6405dbb6712a17b12189eaa7b08ec8425de9..c6cb14fb3e666356b977aca10db0ea18104d94e4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -deadargelim -die | llvm-dis > %t
+; RUN: opt %s -deadargelim -die -S > %t
 ; RUN: cat %t | grep 123
 
 ; This test tries to catch wrongful removal of return values for a specific case
index 672df3d6e6011c48cb808fba6507d216e599fe46..10bb0c00ff3411dd1005f750fa9995c2794c1e6d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -deadargelim | llvm-dis | not grep DEADARG
+; RUN: opt %s -deadargelim -S | not grep DEADARG
 
 ; test - an obviously dead argument
 define internal i32 @test(i32 %v, i32 %DEADARG1, i32* %p) {
index 3213b0e6b430545009d29211c663ada1bd3f567c..914fa8f35c5375a10f0ed0851a61ee23fbd35c70 100644 (file)
@@ -1,5 +1,5 @@
 ; This test shows a few canonicalizations made by deadargelim
-; RUN: opt %s -deadargelim | llvm-dis > %t
+; RUN: opt %s -deadargelim -S > %t
 ; This test should remove {} and replace it with void
 ; RUN: cat %t | grep {define internal void @test}
 ; This test shouls replace the {i32} return value with just i32
index 411fb029843162dd2299fb84c4819589d16c177b..beaf51b228e419714877e6bf8f31a81d61406d7d 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -deadargelim | llvm-dis | not grep 47 
-; RUN: opt %s -deadargelim | llvm-dis | not grep 1.0
+; RUN: opt %s -deadargelim -S | not grep 47 
+; RUN: opt %s -deadargelim -S | not grep 1.0
 
 define i32 @bar(i32 %A) {
         %tmp4 = tail call i32 (i32, ...)* @foo( i32 %A, i32 %A, i32 %A, i32 %A, i64 47, double 1.000000e+00 )   ; <i32> [#uses=1]
index dadf36cd44946d4a592c43599f654ec781433a04..21cedf55e9da026f5a0511a875d958486b7870fe 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -deadargelim | llvm-dis | not grep DEAD
+; RUN: opt %s -deadargelim -S | not grep DEAD
 
 ; Dead arg only used by dead retval
 define internal i32 @test(i32 %DEADARG) {
index 6093132347c9bc68273e9baa9798164e35aa6552..6a07de7c7e037d71739d0601527d54c4f65a7fcf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -deadargelim -die | llvm-dis > %t
+; RUN: opt %s -deadargelim -die -S > %t
 ; RUN: cat %t | not grep DEAD
 ; RUN: cat %t | grep LIVE | count 4
 
index 98aae1b2936b0eaa5d50ba734c9e191f4375d198..c2a7fa16dd70bad2320c9b775d6adba392a1f815 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -deadargelim | llvm-dis > %t
+; RUN: opt %s -deadargelim -S > %t
 ; RUN: grep {define internal zeroext i32 @test1() nounwind} %t
 ; RUN: grep {define internal %Ty @test2} %t
 
index 3d9c29c82ab61431495fbc7c8b1d68c6099d2e80..018395595aa4994c39b6a4f97a11e5aff531af83 100644 (file)
@@ -2,7 +2,7 @@
 ; are unused. All unused values are typed i16, so we can easily check. We also
 ; run instcombine to fold insert/extractvalue chains and we run dce to clean up
 ; any remaining dead stuff.
-; RUN: opt %s -deadargelim -instcombine -dce | llvm-dis | not grep i16
+; RUN: opt %s -deadargelim -instcombine -dce -S | not grep i16
 
 define internal {i16, i32} @test(i16 %DEADARG) {
         %A = insertvalue {i16,i32} undef, i16 1, 0
index d03bbc9f99528fb028f9c240d6621810c7b754f1..4fdeda6b50556583e0513b0f0436d387b41c4fa6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -dse | llvm-dis | \
+; RUN: opt %s -dse -S | \
 ; RUN:    grep {store i32 1234567}
 
 ; Do not delete stores that are only partially killed.
index 244dab8dbb27b7b855762eda551b3f8cd0768651..87881665b7fb6cc4007400b5b881b0afcb98e3b6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -dse | llvm-dis | grep store
+; RUN: opt %s -dse -S | grep store
 
 define double @foo(i8* %X) {
         %X_addr = alloca i8*            ; <i8**> [#uses=2]
index 7b818f851093d48aad3321fee27da160f8d752ff..4fd70519a8a755e0ace80349a5ad968d11777380 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -dse | llvm-dis | not grep tmp5
+; RUN: opt %s -dse -S | not grep tmp5
 ; PR2599
 
 define void @foo({ i32, i32 }* %x) nounwind  {
index d22e4afda58ca38513e545df2a1a58edf43fd877..87d99ee8b93c020f0859815caa7e84dd352d7d47 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -dse | llvm-dis | \
+; RUN: opt %s -dse -S | \
 ; RUN:    not grep {store i8}
 ; Ensure that the dead store is deleted in this case.  It is wholely
 ; overwritten by the second store.
index 6d23c8048bfbf66ecabac60ffe3221bb2445c671..665207ed66cb9e617b91348007aa2002ba16c5d6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -dse | llvm-dis | not grep DEAD
+; RUN: opt %s -dse -S | not grep DEAD
 
 define void @test(i32* %Q) {
         %P = alloca i32         ; <i32*> [#uses=1]
index a0d96ed0aad5c11267e19b30c67f4907a2fb18d2..6d63858e5995bac27fb9e9342373f1d43cd565a7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -dse | llvm-dis | not grep store
+; RUN: opt %s -dse -S | not grep store
 
 %struct.x = type { i32, i32, i32, i32 }
 
index af43b31d6c574420714a655c8db322c60e58eb66..974384d239fed688b1b8cdd16201ebc14d2c80f5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -dse | llvm-dis | not grep DEAD
+; RUN: opt %s -dse -S | not grep DEAD
 
 declare void @ext()
 
index cc0a826668190d249531c53c5566e6e824a326ed..2e2bcaea01ede96aeb7f93595894d60d7a6e75ef 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -dse | llvm-dis | not grep DEAD
+; RUN: opt %s -dse -S | not grep DEAD
 
 define void @test(i32* %Q, i32* %P) {
         %DEAD = load i32* %Q            ; <i32> [#uses=1]
index 4d63aa3427b2aedc00e47fc238a39ad7defc1605..e65d4416de53e318e2769be97253787ffb838520 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -dse | llvm-dis | not grep alloca
+; RUN: opt %s -dse -S | not grep alloca
 ; ModuleID = 'placeholder.adb'
 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 240cb085e9fcfb803ea2fb45042befc5f0243976..dae2d078f875b17b139989e4c5126dba2190ac65 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -dse | llvm-dis | not grep DEAD
+; RUN: opt %s -dse -S | not grep DEAD
 
 define void @test(i32* %Q, i32* %P) {
         %DEAD = load i32* %Q            ; <i32> [#uses=1]
index c9891bc3228974cf1b1140fcd97acaac7c243987..ecf5e76cf624665ec970bdf5877014db965aa28f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -dse | llvm-dis | grep {volatile load}
+; RUN: opt %s -dse -S | grep {volatile load}
 
 @g_1 = global i32 0
 
index 43411f860c308d5b7087db889e2c425688f14c28..53e02089d2436638032cc9c064f1604ee81c5662 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -functionattrs | llvm-dis | grep readnone
+; RUN: opt %s -functionattrs -S | grep readnone
 
 define i32 @a() {
        %tmp = call i32 @b( )           ; <i32> [#uses=1]
index ec7311272870511ade01d1da9c3855e05284802a..55a72a5b29f540a00cd3473b5b41e65bb50f6067 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -functionattrs | llvm-dis | grep readnone | count 4
+; RUN: opt %s -functionattrs -S | grep readnone | count 4
 @x = global i32 0
 
 declare i32 @e() readnone
index f69647ae2d51d435f76fab95aa604ad5331adee2..b3ba85119e6f88d98bc367e8f712bf73dfca0efe 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -functionattrs | llvm-dis | grep readonly | count 2
+; RUN: opt %s -functionattrs -S | grep readonly | count 2
 
 define i32 @f() {
 entry:
index 62d7d2ebcac678b2e4c0a428ad31e258f7fad74c..6dee766b74d1c488ff60bee12b9f38a426a1abd2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -functionattrs | llvm-dis | not grep read
+; RUN: opt %s -functionattrs -S | not grep read
 ; PR2792
 
 @g = global i32 0              ; <i32*> [#uses=1]
index 98cd446910a77f7c09f4ad26013bf2a1badc8dfb..b8fb5dea7a0490de59b41ac5b79b953043f4f8b9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -functionattrs | llvm-dis | grep readnone | count 2
+; RUN: opt %s -functionattrs -S | grep readnone | count 2
 
 declare i32 @g(i32*) readnone
 
index 604a91e8426060f78a4f57d557165d5f39fcb69e..e85a3ef1d0d4d823626ecfb4d32cb2e1e808255e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -functionattrs | llvm-dis | grep readnone
+; RUN: opt %s -functionattrs -S | grep readnone
 
 @s = external constant i8              ; <i8*> [#uses=1]
 
index a015cf95cb8f2707e60152d8c104f5883eed619d..e8938020071391a1a0561d4e36c86286475ae75e 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -functionattrs | llvm-dis | not grep {nocapture *%%q}
-; RUN: opt %s -functionattrs | llvm-dis | grep {nocapture *%%p} | count 6
+; RUN: opt %s -functionattrs -S | not grep {nocapture *%%q}
+; RUN: opt %s -functionattrs -S | grep {nocapture *%%p} | count 6
 @g = global i32* null          ; <i32**> [#uses=1]
 
 define i32* @c1(i32* %q) {
index 870f924ed186ccc99720c6eda214373410dbf74b..dea0a2272764b820db64951f68826d2aee90d206 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -functionattrs | llvm-dis | not grep {nocapture *%%q}
-; RUN: opt %s -functionattrs | llvm-dis | 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 a4da263af16f901f5e7d43315887cb5447db6393..5cc92759d2489abfd6e943dad7671f89fb1eba4d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -functionattrs | llvm-dis | not grep read
+; RUN: opt %s -functionattrs -S | not grep read
 ; PR3754
 
 define i8* @m(i32 %size) {
index 8e096c401be1265956d473fa9c1b57333f4ab7d5..1f5456b835c647d65f4750e9ea1f26263b0ab558 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | not grep {tmp10 =}
+; RUN: opt %s -gvn -S | not grep {tmp10 =}
 
        %struct.INT2 = type { i32, i32 }
 @blkshifts = external global %struct.INT2*             ; <%struct.INT2**> [#uses=2]
index 606d940cabb3b0b7fa3be19b7a2800165ce43755..0f569db7ee782c16069c492d38af12cb8161a9d0 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -gvn | llvm-dis | grep {tmp17625.* = phi i32. }
-; RUN: opt %s -gvn | llvm-dis | grep {tmp17631.* = phi i32. }
+; RUN: opt %s -gvn -S | grep {tmp17625.* = phi i32. }
+; RUN: opt %s -gvn -S | grep {tmp17631.* = phi i32. }
 
 @last = external global [65 x i32*]            ; <[65 x i32*]*> [#uses=1]
 
index e4d674a6aec3dc7a8753967887b1cd125f1e659f..1bcf47a41b852429cd9d8652b885a86b9a9a0fd9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | grep {tmp298316 = phi i32 }
+; RUN: opt %s -gvn -S | grep {tmp298316 = phi i32 }
 
        %struct..0anon = type { i32 }
        %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 }
index e036f1f394dd4343cf7431dc1d8214f618333e66..9cb70ae0907a76c110d76884f9242ad4bcfeb91b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | grep {tmp47 = phi i32 }
+; RUN: opt %s -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 6f75ecb284657f8aa75c797bde21959f364e71e6..dec2cae12917567b327a9376ab93f44250fac7d4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | not grep {tmp701 =}
+; RUN: opt %s -gvn -S | not grep {tmp701 =}
 
 @img_width = external global i16               ; <i16*> [#uses=2]
 
index 02a2d5f8e58751c42c80796614ddebc80a6e7238..1e3e463d127a51a89680b58eeb269aa09de0d2fa 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | not grep load
+; RUN: opt %s -gvn -S | not grep load
 ; PR1996
 
 %struct.anon = type { i32, i8, i8, i8, i8 }
index 5c7658788ca587931c125fdde77ffe2a6c1c67bb..285c2ca8cadea0ba270462be40b933a5ca5c5752 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn -dse | llvm-dis | grep {call.*memcpy} | count 1
+; RUN: opt %s -gvn -dse -S | grep {call.*memcpy} | count 1
 
 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-darwin8"
index b90925b1e77482f77349a4f5f302d1110b3710a9..6c89b7e903a6ff0c7e5610f93a78ae661fc85ae4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn -dse | llvm-dis | grep {call.*memcpy.*cell} | count 2
+; RUN: opt %s -gvn -dse -S | grep {call.*memcpy.*cell} | count 2
 ; PR2099
 
 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 98a50bead0b8f00ea897607209c0d624ae3ce342..ad6dbd0acf15a353f5ea52b52a2b7b034aca6c65 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | grep {ret i8 \[%\]tmp3}
+; RUN: opt %s -gvn -S | grep {ret i8 \[%\]tmp3}
 ; PR2503
 
 @g_3 = external global i8              ; <i8*> [#uses=2]
index 49258146091c36e523b35ccf34f436c40ec4d3a5..784307e372c97aaa9173171876bc0186a9b422e7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | grep getelementptr | count 1
+; RUN: opt %s -gvn -S | grep getelementptr | 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.5"
index d53b49904a7527d828441c90fdcd36aaec5f2b14..3373c72cb2622a4d6e6b0acea0db97efa1d75376 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn -enable-load-pre | llvm-dis | not grep pre1
+; RUN: opt %s -gvn -enable-load-pre -S | not grep pre1
 ; GVN load pre was hoisting the loads at %13 and %16 up to bb4.outer.  
 ; This is invalid as it bypasses the check for %m.0.ph==null in bb4. 
 ; ModuleID = 'mbuf.c'
index 063b9279672d567af649a05c5b4d0f691069c14a..ff33949b114b45a38a45d6b6d2998e2366324846 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | not grep {%z2 =}
+; RUN: opt %s -gvn -S | not grep {%z2 =}
 
 define i32 @main() {
 block1:
index 983a9e988a584cc74a9f7986c0df4e30f32ef07d..f835f32a310b340da6bcf52c77fa598320f6b7a4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | not grep tmp2
+; RUN: opt %s -gvn -S | not grep tmp2
 ; PR2213
 
 define i32* @f(i8* %x) {
index 93964091c9780c5ef9292d5c98f699edc262e855..5b353856c405cb61a87536ae75aab62ed78f8f90 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | grep strlen | count 2
+; RUN: opt %s -gvn -S | grep strlen | 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-darwin9"
 
index c48226139f4947ea7a3c49ba0625aa85dcd494c0..41be32463f2a0dc8719df8a85af54d9a213a765c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -basicaa -gvn | llvm-dis | 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 884a826fd7dfb30acb4efa233d84b425f7046381..4a959c40a7c76fb8aa5a1d61a94b936461a3b031 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | grep {br i1 false}
+; RUN: opt %s -gvn -S | grep {br i1 false}
 
 @a = external global i32               ; <i32*> [#uses=7]
 
index 0fa003c510debd210a4a9c58763dcaffef718e00..428e03ca540b14cdde64ae9d873cf2f1496901c4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn -instcombine | llvm-dis | grep {ret i32 0}
+; RUN: opt %s -gvn -instcombine -S | grep {ret i32 0}
 ; PR4189
 @G = external constant [4 x i32]
 
index 1f2ea9603ac28736bbf0359d3d7ee32f7ab043c8..009e30d4850a096251b0893bbe5e9d260f98a0d9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn -enable-pre | llvm-dis | grep {b.pre}
+; RUN: opt %s -gvn -enable-pre -S | grep {b.pre}
 
 define i32 @main(i32 %p) {
 block1:
index 215b6ea7bef2742523038a482fb84fcefb5a4307..99fb1b00814f35124ea569984fc82aaa86f20b2e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn -enable-load-pre | llvm-dis | grep {%PRE = phi}
+; RUN: opt %s -gvn -enable-load-pre -S | grep {%PRE = phi}
 
 define i32 @test(i32* %p, i1 %C) {
 block1:
index 0a605712e2566bc406c9f6710aa59d692b57bca3..5cba290f1294de9bcf6fa8f9057ce7aef8b70932 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -gvn | llvm-dis | not grep DEADLOAD
-; RUN: opt %s -gvn | llvm-dis | not grep DEADGEP
+; RUN: opt %s -gvn -S | not grep DEADLOAD
+; RUN: opt %s -gvn -S | not grep DEADGEP
 
 define i32 @main(i32** %p) {
 block1:
index e9d7047e8b925e7e362dd0db9314d4777f1b0c7d..0c1b55de4cb3287a4358e95416426f375b1880b3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn -enable-pre | llvm-dis | 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 8a1a42199296e41aa60a96cfe68da3297daab02c..ef184df8040c33803d8bdd4bcadf1d1b369c47d5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn -enable-load-pre | llvm-dis | not grep {tmp3 = load}
+; RUN: opt %s -gvn -enable-load-pre -S | not grep {tmp3 = load}
 
 @p = external global i32
 define i32 @f(i32 %n) nounwind {
index cf67d855b8b9c882e9d5e8d8affaebb2ef60c448..e4bf0a2e4c6a8c150ea8658f2cc5d5298d7222a9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | grep load | count 2
+; RUN: opt %s -gvn -S | grep load | count 2
 
 define i32 @main(i32** %p) {
 block1:
index 80919679baba7f2011c85520fc78f80be9d020cc..4a4643a320d0e0f4d571b1bddf2a1f36e27417e2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | grep {DEAD = phi i32 }
+; RUN: opt %s -gvn -S | grep {DEAD = phi i32 }
 ; XFAIL: *
 
 ; FIXME: GVN should eliminate the fully redundant %9 GEP which 
index 498f6389d1f26ae6499e4d20a1740ac9aed468d5..7b563fd5f328108791dbbbe35eec70522a062575 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | grep load
+; RUN: opt %s -gvn -S | grep load
 ; FIXME: This should be promotable, but memdep/gvn don't track values
 ; path/edge sensitively enough.
 
index e44a3e73c08294bf271a05f0260eca9654adcb95..929b6af52476aa9829fa1e42c49a5251bbe04555 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | grep {%DEAD = phi i32. }
+; RUN: opt %s -gvn -S | grep {%DEAD = phi i32. }
 
 define i32 @main(i32** %p) {
 block1:
index 63008f2dd98ab292a0ef1f47b6a9767308336c1e..030393b9f8b34fbf30eea1305878c7557a31278e 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -gvn | llvm-dis | grep {%cv = phi i32}
-; RUN: opt %s -gvn | llvm-dis | grep {%bv = phi i32}
+; RUN: opt %s -gvn -S | grep {%cv = phi i32}
+; RUN: opt %s -gvn -S | grep {%bv = phi 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"
 
index 2ee99adb2ae73a1238340656f4b3b2075fdb19e4..fd34a87587c2b820950e31ccc06352a0d42e9605 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn | llvm-dis | grep {DEAD = phi i32 }
+; RUN: opt %s -gvn -S | grep {DEAD = phi i32 }
 
 define i32 @main(i32* %p) {
 block1:
index 6c65a56754ac2567d560ecf0c31f9f3f3aac8b95..157ae15be992e95e3126d18b1de1edcfa71182fd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvnpre | llvm-dis | grep tmp114115.gvnpre
+; RUN: opt %s -gvnpre -S | grep tmp114115.gvnpre
 
        %struct.AV = type { %struct.XPVAV*, i32, i32 }
        %struct.CLONE_PARAMS = type { %struct.AV*, i32, %struct.PerlInterpreter* }
index ebe84aadb672ca92f0e3938128ea68b4a41dc69b..89245faf61e2034c57c2c8771b0f8d24bfdedbf5 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -gvnpre | llvm-dis | not grep {%z3 =}
-; RUN: opt %s -gvnpre | llvm-dis | not grep {%z9 =}
+; RUN: opt %s -gvnpre -S | not grep {%z3 =}
+; RUN: opt %s -gvnpre -S | not grep {%z9 =}
 
 define i32 @main() {
 block1:
index bd91c00a47516b6adab2d19776003c87c922623f..25a31db1735a7848ba0789b0ff6c6dec3616813c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvnpre | llvm-dis | grep b.gvnpre
+; RUN: opt %s -gvnpre -S | grep b.gvnpre
 
 define i32 @extract() {
 entry:         ; preds = %cond_false, %entry
index 6523f3e8ef2498d5edc2a1011e8b00778378138e..478b841d9fb092b789853eae6d5ef9f7a470b8ed 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvnpre | llvm-dis | grep b.gvnpre
+; RUN: opt %s -gvnpre -S | grep b.gvnpre
 
 define i32 @extract() {
 entry:         ; preds = %cond_false, %entry
index 95b5815b0a75ec3b34f263906316aa12077134a1..63ad89aa4decb3f1c220455ebab7a2e2e4ef866a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvnpre | llvm-dis | grep b.gvnpre
+; RUN: opt %s -gvnpre -S | grep b.gvnpre
 
 define i32 @extract({ i32 }* %P) {
 entry:         ; preds = %cond_false, %entry
index 2e0b94bcf3e4a99036f56bf9d481638c88cc0600..69bfdae87bb59417de114a5a748ca620918d39f4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvnpre | llvm-dis | grep b.gvnpre
+; RUN: opt %s -gvnpre -S | grep b.gvnpre
 
 define i32 @extract() {
 entry:         ; preds = %cond_false, %entry
index 7e465c05661de7e37eddd9bbb16c7c354be327d0..0ca3994106c50ab31c185bff6095540b5abeaad3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvnpre | llvm-dis | grep b.gvnpre
+; RUN: opt %s -gvnpre -S | grep b.gvnpre
 
 define i32 @extract() {
 entry:         ; preds = %cond_false, %entry
index e991e948c32c15f5f84988ebf004c5ebfa032e93..718044454d8b00398cd31a254f9015d47f5ed63d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvnpre | llvm-dis | grep b.gvnpre
+; RUN: opt %s -gvnpre -S | grep b.gvnpre
 
 define i32 @extract() {
 entry:         ; preds = %cond_false, %entry
index 443fe91984aa6741fc31496134d9a87b6d63de59..faa61f98767efc575ab798888dbe8d906f5773f1 100644 (file)
@@ -1,7 +1,7 @@
 ; Make sure that functions are removed successfully if they are referred to by
 ; a global that is dead.  Make sure any globals they refer to die as well.
 
-; RUN: opt %s -globaldce | llvm-dis | not grep foo
+; RUN: opt %s -globaldce -S | not grep foo
 
 ;; Unused, kills %foo
 @b = internal global i32 ()* @foo               ; <i32 ()**> [#uses=0]
index fe3467ea1ef8d149f4a447e447c195bc267f9483..f3917b84ee49b5f8fddfa3ccb9399044f37ac0f1 100644 (file)
@@ -1,7 +1,7 @@
 ; This testcase tests that a worklist is being used, and that globals can be 
 ; removed if they are the subject of a constexpr and ConstantPointerRef
 
-; RUN: opt %s -globaldce | llvm-dis | not grep global
+; RUN: opt %s -globaldce -S | not grep global
 
 @t0 = internal global [4 x i8] c"foo\00"                ; <[4 x i8]*> [#uses=1]
 @t1 = internal global [4 x i8] c"bar\00"                ; <[4 x i8]*> [#uses=1]
index fd449b801ef95b2cc3ab9c1d662ac82936c8bc68..a09ed462420d879936ee910016597b1387cb4349 100644 (file)
@@ -1,5 +1,5 @@
 ; distilled from 255.vortex
-; RUN: opt %s -globaldce | llvm-dis | not grep testfunc
+; RUN: opt %s -globaldce -S | not grep testfunc
 
 declare i1 ()* @getfunc()
 
index 611e155ea8cb889f4afa9d46771ede7b0740860a..92af3ec3dec8df56e2eab0e36b39b80a5d47e0a0 100644 (file)
@@ -1,6 +1,6 @@
 ; Weak variables should be preserved by global DCE!
 
-; RUN: opt %s -globaldce | llvm-dis | grep @A
+; RUN: opt %s -globaldce -S | grep @A
 
 
 @A = weak global i32 54
index 432ae4bc9768473bb2048b66c17a0af4d0d2e48f..d3e93a8779efa3121b9572035235816583092c64 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -globaldce | llvm-dis | not grep @D
-; RUN: opt %s -globaldce | llvm-dis | grep @L | count 3
+; RUN: opt %s -globaldce -S | not grep @D
+; RUN: opt %s -globaldce -S | grep @L | count 3
 
 @A = global i32 0
 @D = alias internal i32* @A
index 77ce3bcae741bc663f6da8c149a2f2327f3bec8c..ff12e630775724d04e2310af5a817b84fad7bc9d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globaldce | llvm-dis | not grep global
+; RUN: opt %s -globaldce -S | not grep global
 
 @X = external global i32
 @Y = internal global i32 7
index 0e8f1dacfb1b65aad46d15ec744229192334a08f..5d7909078765783ac3670465d7cf977a524e290a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globaldce | llvm-dis | not grep test_
+; RUN: opt %s -globaldce -S | not grep test_
 
 ; test_function should not be emitted to the .s file.
 define available_externally i32 @test_function() {
index 39731fc36246727594b9bc1bac4601363a5fb5fd..99c55949d5f3ef0f311a25f5865b5ca746106718 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | 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 ac2d458c014b473a29ccf2d18576d5deb8691acf..c82c9af39f95753837d0b8318ac4147196acf0ef 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | grep {volatile load}
+; RUN: opt %s -globalopt -S | grep {volatile load}
 @t0.1441 = internal global double 0x3FD5555555555555, align 8          ; <double*> [#uses=1]
 
 define double @foo() nounwind  {
index ef047f875d1d90c86ace23d3507ae22c850c3b7c..0ba97e052f7023ac50ed0d80736190d48ac9c4b0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | grep { nest } | count 1
+; RUN: opt %s -globalopt -S | grep { nest } | count 1
        %struct.FRAME.nest = type { i32, i32 (i32)* }
        %struct.__builtin_trampoline = type { [10 x i8] }
 @.str = internal constant [7 x i8] c"%d %d\0A\00"              ; <[7 x i8]*> [#uses=1]
index 4a20e3f031e4784d058c3e01a24bdd7d13fd071a..14f470d89c1c437b8c209e42d424ede2b48079f4 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 | llvm-dis | grep {@G.0 = internal global .*align 16}
-; RUN: opt %s -globalopt | llvm-dis | grep {@G.1 = internal global .*align 8}
-; RUN: opt %s -globalopt | llvm-dis | grep {@G.2 = internal global .*align 16}
+; RUN: opt %s -globalopt -S | grep {@G.0 = internal global .*align 16}
+; RUN: opt %s -globalopt -S | grep {@G.1 = internal global .*align 8}
+; RUN: opt %s -globalopt -S | grep {@G.2 = internal 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 06007e5cbe3311988f9072220ef7dd0af8bc6db5..f120db52f07718a019a820b3df1e8a2e9e7afaf7 100644 (file)
@@ -2,7 +2,7 @@
 ; values. This used to crash, because globalopt forgot to put the new var in the
 ; same address space as the old one.
 
-; RUN: opt %s -globalopt | llvm-dis > %t
+; RUN: opt %s -globalopt -S > %t
 ; Check that the new global values still have their address space
 ; RUN: cat %t | grep global.*addrspace
 
index c4e85892d2ed540c8685e2f143916d618a5de89e..69e555dedf1e91dcf25fb62a0a013ba60183426e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | 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 97c8468dd204e0ad06b19c40429eb3ca24652c25..7c30d87dc1b35fa1dc3b7a5575341c705b5fc068 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | grep {define void @a}
+; RUN: opt %s -globalopt -S | grep {define void @a}
 
 define internal void @f() {
        ret void
index 0df0fe70ef789904bf1fdd99b4c1b7604b09bc2a..c03c16a66ee33ccc2bea7a935bb23c8cb8fbe8f4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep global_variable42
+; RUN: opt %s -globalopt -S | not grep global_variable42
 ; XFAIL: *
 
        %llvm.dbg.anchor.type = type { i32, i32 }
index 2750845263b19e861871c730790115a4fae38329..42168b06294111dc9d4d45aff8408439cde26160 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | grep internal | count 2
+; RUN: opt %s -globalopt -S | grep internal | count 2
 
 global i32 0
 define i32* @1() {
index 7aca75ec7f95609f799d9644c2fbaa8df42b97b3..61e3fa8b9fb47b141364c00837497e68005b4056 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | grep {@X = internal global i32}
+; RUN: opt %s -globalopt -S | grep {@X = internal 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 45f93189312390d5affa3e0a8d34d8f53ae9a0c0..ead599896a1b0db3f16f1e3b8bd3cffab52352e5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis > %t
+; RUN: opt %s -globalopt -S > %t
 ; RUN: cat %t | grep foo1 | count 1
 ; RUN: cat %t | grep foo2 | count 4
 ; RUN: cat %t | grep bar1 | count 1
index b0b3661ab2da7b27eb3a21dedf1b440afaab1860..4fd0ecea1df4a7003ad72ed696aabb82f8ae0b79 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep global
+; RUN: opt %s -globalopt -S | not grep global
 
 @X = internal global i32 4              ; <i32*> [#uses=1]
 
index 31947152d0a2680990576276668ed7d30d4f60ff..85887578d5b0bebfb9d875465da6604d345bfed7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine -globalopt | llvm-dis | \
+; RUN: opt %s -instcombine -globalopt -S | \
 ; RUN:   grep {internal fastcc float @foo}
 
 define internal float @foo() {
index d1f20d0d0f1333534233f838b809f687020373c0..b5c65c812337452893e0268de96733a7261a40cc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep CTOR
+; RUN: opt %s -globalopt -S | not grep CTOR
 @llvm.global_ctors = appending global [10 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @CTOR1 }, { i32, void ()* } { i32 65535, void ()* @CTOR1 }, { i32, void ()* } { i32 65535, void ()* @CTOR2 }, { i32, void ()* } { i32 65535, void ()* @CTOR3 }, { i32, void ()* } { i32 65535, void ()* @CTOR4 }, { i32, void ()* } { i32 65535, void ()* @CTOR5 }, { i32, void ()* } { i32 65535, void ()* @CTOR6 }, { i32, void ()* } { i32 65535, void ()* @CTOR7 }, { i32, void ()* } { i32 65535, void ()* @CTOR8 }, { i32, void ()* } { i32 2147483647, void ()* null } ]               ; <[10 x { i32, void ()* }]*> [#uses=0]
 @G = global i32 0              ; <i32*> [#uses=1]
 @G2 = global i32 0             ; <i32*> [#uses=1]
index a127f5c5f3489601d3ea5c90ca7ba017c2bbdcfb..29d59748234055a89014c52247032484fbcef0a7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | FileCheck %s
+; RUN: opt %s -globalopt -S | FileCheck %s
 
 ; Don't get fooled by the inbounds keyword; it doesn't change
 ; the computed address.
index 6a38d40a24c28d5122f0990ad60610081d4aac09..608b19b6aecdd90dad4066d825cc4df6c824efec 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep CTOR
+; RUN: opt %s -globalopt -S | not grep CTOR
 @llvm.global_ctors = appending global [10 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @CTOR1 }, { i32, void ()* } { i32 65535, void ()* @CTOR1 }, { i32, void ()* } { i32 65535, void ()* @CTOR2 }, { i32, void ()* } { i32 65535, void ()* @CTOR3 }, { i32, void ()* } { i32 65535, void ()* @CTOR4 }, { i32, void ()* } { i32 65535, void ()* @CTOR5 }, { i32, void ()* } { i32 65535, void ()* @CTOR6 }, { i32, void ()* } { i32 65535, void ()* @CTOR7 }, { i32, void ()* } { i32 65535, void ()* @CTOR8 }, { i32, void ()* } { i32 2147483647, void ()* null } ]               ; <[10 x { i32, void ()* }]*> [#uses=0]
 @G = global i32 0              ; <i32*> [#uses=1]
 @G2 = global i32 0             ; <i32*> [#uses=1]
index 15d266dd1b95f391c7402d4d6be6dd431cc6cc79..919cbdcf9ec175be6c83e144a166f0ecb7e56cfe 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep internal
+; RUN: opt %s -globalopt -S | not grep internal
 
 ; This is a harder case to delete as the GEP has a variable index.
 
index 3ec3a797d4deee196b8364ecb19ee4be6dba292d..514a57c43b9d36eef5bea93b48dd2ceb8e235d5c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep internal
+; RUN: opt %s -globalopt -S | not grep internal
 
 @G = internal global i32 123            ; <i32*> [#uses=1]
 
index 4fa541cc7abb92faa33588ea6b5eeee4fbc59525..29be57de3cc579cbc58044a5db62b0e37ab8fd2d 100644 (file)
@@ -1,6 +1,6 @@
 ; In this case, the global can only be broken up by one level.
 
-; RUN: opt %s -globalopt | llvm-dis | not grep 12345
+; RUN: opt %s -globalopt -S | not grep 12345
 
 @G = internal global { i32, [4 x float] } zeroinitializer               ; <{ i32, [4 x float] }*> [#uses=3]
 
index debfcb2413f26415276f3b9e51e3becf5bd7ff5d..f1eb8674889e81f368cdd0415a74dd35c7027d29 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis > %t
+; RUN: opt %s -globalopt -S > %t
 ; RUN: grep {@Y = internal global \\\[3 x \[%\]struct.X\\\] zeroinitializer} %t
 ; RUN: grep load %t | count 6
 ; RUN: grep {add i32 \[%\]a, \[%\]b} %t | count 3
index 670df0e6f8f65963672b04d48ca660fe6346dcd5..276ca64d7869be84fe854afed5a918ec562e7f02 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep global
+; RUN: opt < %s -globalopt -S | not grep global
 
 @G = internal global { i32, float, { double } } {
     i32 1, 
index bd3495fe664bc85bd455af406d403fbcc4bbabf3..a22e5fded075e3a36ae7bd8c4910adb34cbe1cf5 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -globalopt | llvm-dis | grep {@X.f0}
-; RUN: opt %s -globalopt | llvm-dis | grep {@X.f1}
+; RUN: opt %s -globalopt -S | grep {@X.f0}
+; RUN: opt %s -globalopt -S | grep {@X.f1}
 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"
 
index 6a46f941ff1a46e81b0fdaa727bc225286243cca..2cbc0531894b66c8104a4b307014832c37705a6a 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -globalopt | llvm-dis | grep {@X.f0}
-; RUN: opt %s -globalopt | llvm-dis | grep {@X.f1}
+; RUN: opt %s -globalopt -S | grep {@X.f0}
+; RUN: opt %s -globalopt -S | grep {@X.f1}
 
 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"
index b26947cb8864617df7c355eea8ee4227fc96bd54..cc8e74c04238e1329e4774e1ba2f8e6fe0299ea9 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -globalopt | llvm-dis | grep {tmp.f1 = phi i32. }
-; RUN: opt %s -globalopt | llvm-dis | 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: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"
index fc1fd631610f30e6d40814a1a8a8a7dcd61281ae..9c5ea38f6040ec406f43eb0e2f84b835c369fe4b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep %G
+; RUN: opt %s -globalopt -S | not grep %G
 
 @G = internal global i32 0              ; <i32*> [#uses=1]
 @H = internal global { i32* } { i32* @G }               ; <{ i32* }*> [#uses=1]
index 0759da47ad9a2355f99ffd3e5897c965dbd0f7b5..f824b2c11cbf9094359d1ad493100a9c885a00ba 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep G
+; RUN: opt < %s -globalopt -S | not grep G
 
 @G = internal global i32 17             ; <i32*> [#uses=3]
 
index 28193f76d4da9ede5ab01f712ca0bd7da13b1d11..7a37da74271611122650db2fcaf43241212ec494 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep global
+; RUN: opt %s -globalopt -S | not grep global
 
 @G = internal global i32* null          ; <i32**> [#uses=3]
 
index 017c0dd8551cbcab31b42c5276c143c8fdff1669..0d03835cf5309df522cbe5359758fbaee1997ac8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep malloc
+; RUN: opt < %s -globalopt -S | not grep malloc
 
 @G = internal global i32* null          ; <i32**> [#uses=3]
 
index 65ab097e8622f7590caf96e6c8ffc70663b4a1ff..d4ee4e861c2d77df2275d54f67fe61343c8db30e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep malloc
+; RUN: opt < %s -globalopt -S | not grep malloc
 
 @G = internal global i32* null          ; <i32**> [#uses=4]
 
index 1a5a8e2f1f2cdd80f1d6d26854d2ea7e06399932..400e1addc9c820d2f1900b0797b1c77cc274122d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | \
+; RUN: opt %s -globalopt -S | \
 ; RUN:   grep {G1 = internal constant}
 
 @G1 = internal global [58 x i8] c"asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd\00"         ; <[58 x i8]*> [#uses=1]
index 5f13844307b9261786fcf7f19f59fdbc7d1fd969..48f6dfa8aedd2badd99df5136ca4d58f55d6d1bf 100644 (file)
@@ -1,6 +1,6 @@
 ; both globals are write only, delete them.
 
-; RUN: opt %s -globalopt | llvm-dis | \
+; RUN: opt %s -globalopt -S | \
 ; RUN:   not grep internal
 
 @G0 = internal global [58 x i8] c"asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd\00"         ; <[58 x i8]*> [#uses=1]
index 39bbac5c39d48d9d668633103101e531ab388f78..1734752dcdeb6e4695f104b8556434fcfdfef8ae 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that PHI nodes and select instructions do not necessarily make stuff
 ; non-constant.
 
-; RUN: opt %s -globalopt | llvm-dis | not grep global
+; RUN: opt %s -globalopt -S | not grep global
 
 @X = internal global i32 4              ; <i32*> [#uses=2]
 @Y = internal global i32 5              ; <i32*> [#uses=2]
index ca49ea6a8aaa7ec93f0cc7eae0b603664d62bc85..9ce03cb3a1d2e0b52a87d032e2df8c25bc4126dd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | \
+; RUN: opt %s -globalopt -S | \
 ; RUN:   grep {call void @Actual}
 
 ; Check that a comparison does not prevent an indirect call from being made 
index c260048a6415053397cc296e17971b07f3fab352..2f327270d7b98733848e7ceb1a3246adf1ac8859 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep global
+; RUN: opt %s -globalopt -S | not grep global
 
 @G = internal global void ()* null              ; <void ()**> [#uses=2]
 
index c2ba0d66b1bb680baf996e26105bb5cab835b58f..21437f33b26dc78c01e07c679f93e10444373187 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep G
+; RUN: opt < %s -globalopt -S | not grep G
 
 @G = internal global i32 17             ; <i32*> [#uses=3]
 
index fb9ed7e0581ebc3422677025f50615bfecce1357..ed9d62292959b71df8118314d684ca5abb9d06dc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt | llvm-dis | not grep store
+; RUN: opt %s -globalopt -S | not grep store
 
 @llvm.global_ctors = appending global [1 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @_GLOBAL__I__Z3foov } ]          ; <[1 x { i32, void ()* }]*> [#uses=0]
 @X.0 = internal global i32 undef                ; <i32*> [#uses=2]
index 4b91f8695609f3209193480dfc821b849171ee0c..87f63758abc712f959edaf1272173194f67b0b1f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -ipconstprop | llvm-dis | grep {ret i32 %r}
+; RUN: opt %s -ipconstprop -S | grep {ret i32 %r}
 ; Should not propagate the result of a weak function.
 ; PR2411
 
index 7aa81013243fd68fdf979b998ddbbcf90a5198bb..d6ccac78c38241f8821dc01bb06c07d988d07d00 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -ipconstprop -deadargelim | llvm-dis | not grep %X
+; RUN: opt %s -ipconstprop -deadargelim -S | not grep %X
 define internal i32 @foo(i32 %X) {
         %Y = call i32 @foo( i32 %X )            ; <i32> [#uses=1]
         %Z = add i32 %Y, 1              ; <i32> [#uses=1]
index ad0e5fbec0ca1c5b3a937384c0e8049840d2f027..93071cc6df7fa392e1d5b1db26a70443e81cfd42 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -ipconstprop | llvm-dis > %t
+; RUN: opt %s -ipconstprop -S > %t
 ; RUN: cat %t | grep {store i32 %Z, i32\\* %Q}
 ; RUN: cat %t | grep {add i32 1, 3}
 
index 7a4c8c585f8ad42af7172e545555792699428705..f83440dd56c9a1cd07fb3a5faf15de4872d869dd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -ipconstprop | llvm-dis > %t
+; RUN: opt %s -ipconstprop -S > %t
 ;; Check that the 21 constants got propagated properly
 ; RUN: cat %t | grep {%M = add i32 21, 21}
 ;; Check that the second return values didn't get propagated
index dc80eeeca3b830509da8eba7459b7844001c455e..e6d67497e325113eccd51ce394b93cb3a090b9b9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indmemrem | llvm-dis | grep bounce | grep noalias
+; RUN: opt %s -indmemrem -S | grep bounce | grep noalias
 
 declare i8* @malloc(i32)
 
index 8ac714ce60341167fe0f56b4b7efab00e2097a93..a5bb87eecf91701f8746c45248afa52a4e0e8dd1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | grep indvar
+; RUN: opt %s -indvars -S | grep indvar
 
 define i32 @test() {
 ; <label>:0
index 6f0b9942d5c39f64da06d1cff26cd339d114f0e3..189ae950dd32b5a7e7bb4eee82f3c33edf773119 100644 (file)
@@ -1,7 +1,7 @@
 ; The induction variable canonicalization pass shouldn't leave dead
 ; instructions laying around!
 ;
-; RUN: opt %s -indvars | llvm-dis | \
+; RUN: opt %s -indvars -S | \
 ; RUN:   not grep {#uses=0}
 
 define i32 @mul(i32 %x, i32 %y) {
index bed49a8de2db9acc617597ff60e9734cf98e22d8..7f9bb0d422011f9673ec280673550e79d7c2b617 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | grep indvar | not grep i32
+; RUN: opt %s -indvars -S | grep indvar | not grep i32
 
 @G = global i64 0               ; <i64*> [#uses=1]
 
index f99dbce28b9575db2ea9d2020c21825f9fd8efb2..4b55d8707c96a137cff28ecf40e2a544b511bef2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | \
+; RUN: opt %s -indvars -S | \
 ; RUN:   grep {ret i32 152}
 
 define i32 @main() {
index f6570395e3e4ddc94f5c68fdff0f8343b66374a7..82e1a6b56bfdd1b0dbf7cfc262bfa16060747e6d 100644 (file)
@@ -1,5 +1,5 @@
 ; PR726
-; RUN: opt %s -indvars | llvm-dis | \
+; RUN: opt %s -indvars -S | \
 ; RUN:   grep {ret i32 27}
 
 ; Make sure to compute the right exit value based on negative strides.
index 02791a1342c0a4730d648af2f7a2d473064c1dbe..d68541c1d544dc0389d755ddcef607b99e414ce2 100644 (file)
@@ -1,5 +1,5 @@
 ; PR1015
-; RUN: opt %s -indvars | llvm-dis | not grep {ret i32 0}
+; RUN: opt %s -indvars -S | not grep {ret i32 0}
 
 target datalayout = "e-p:32:32"
 target triple = "i686-apple-darwin8"
index 75c559c48a9418b43bb33e5a9ac1bc8b638f70dd..1822fa5434675f3d1dce26bbfdb991dc6551b1d5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | grep sext | count 1
+; RUN: opt %s -indvars -S | grep sext | count 1
 ; ModuleID = '<stdin>'
 
        %struct.App1Marker = type <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }>
index 4eba4cb5e0ae79c14aa754f504c3d752d0a57869..d352da6662142baae4ee7d3774e0a00b54b71459 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | grep icmp | count 4
+; RUN: opt %s -indvars -S | grep icmp | count 4
 define void @bar() nounwind {
 entry:
        br label %bb
index 00d9feaf70f23a6057a6a46f808c92961e451706..137a5f43ba1d365d43764718ef7fddbf4ff54b5f 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -indvars | llvm-dis | grep icmp | count 2
-; RUN: opt %s -indvars | llvm-dis | grep sitofp | count 1
-; RUN: opt %s -indvars | llvm-dis | grep uitofp | count 1
+; RUN: opt %s -indvars -S | grep icmp | count 2
+; RUN: opt %s -indvars -S | grep sitofp | count 1
+; RUN: opt %s -indvars -S | grep uitofp | count 1
 
 define void @bar() nounwind {
 entry:
index bf5edf094c8f77c32f34ba3e3360106acd7a6dcf..8b9554ba93aa890c7b528628ee1803f8f3eefda4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | not grep {sext}
+; RUN: opt %s -indvars -S | not grep {sext}
 ; ModuleID = '<stdin>'
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
 target triple = "x86_64-apple-darwin9.6"
index 4a94939838f17e617093acf987771ea25d714e70..10f52b64cef2f61ae379b52b40023893496f6fb0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars -instcombine | llvm-dis | not grep {\[sz\]ext}
+; RUN: opt %s -indvars -instcombine -S | not grep {\[sz\]ext}
 ; ModuleID = '<stdin>'
 ;extern int *a, *b, *c, *d, *e, *f;  /* 64 bit */
 ;extern int K[256];
index 23a46e7744639b291e7b693364fe3a634916bab3..3a3117184179ba7699214f25a87701653f67289a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | grep icmp | grep next
+; RUN: opt %s -indvars -S | grep icmp | grep next
 ; PR4086
 declare void @foo()
 
index 85077b7ab436e01a24727dd7154bd613d4f03cc6..b5fcbed8fc802e7de3e4bc310e7c15d90e4bdbd6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt %s -indvars -S > %t
 ; RUN: grep phi %t | count 4
 ; RUN: grep {= phi i32} %t | count 4
 ; RUN: not grep {sext i} %t
index 37f24532cff7b09cd80d4154e515ead157b75704..319fd5ecef306fa04e68227ff4b6b52209408dd8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt %s -indvars -S > %t
 ; RUN: grep getelementptr %t | count 1
 ; RUN: grep {mul .*, 37}  %t | count 1
 ; RUN: grep {add .*, 5203}  %t | count 1
index c1a4058cac0716e72fe77b519b1170b3f404f957..5d63c0caa1ed4c708e9a51fc87c958673928ab35 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt %s -indvars -S > %t
 ; RUN: grep sext %t | count 1
 
 ; Indvars should be able to eliminate all of the sign extensions
index eca76886e09fee404a52345da304a0da0568323a..28e9e4a97efec459c716d5f4b5ed9fb83fe9044f 100644 (file)
@@ -1,7 +1,7 @@
 ; The i induction variable looks like a wrap-around, but it really is just
 ; a simple affine IV.  Make sure that indvars eliminates it.
 
-; RUN: opt %s -indvars | llvm-dis | grep phi | count 1
+; RUN: opt %s -indvars -S | grep phi | count 1
 
 define void @foo() {
 entry:
index b1399b82ddd44571aa0691b8822f1323fe2d8692..780959407630ceb9205a1e4d2aa443fc31ca83fc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt < %s -indvars -S > %t
 ; RUN: grep add %t | count 8
 ; RUN: grep mul %t | count 7
 
index eaa9eecaf831705efd904d30207deb36afd8bf88..8f3ce92f3c214b862a58b7e074600fc40deff276 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt %s -indvars -S > %t
 ; RUN: grep {= sext} %t | count 4
 ; RUN: grep {phi i64} %t | count 2
 
index b7628154d72b453cbc5dc589852337d631c9586e..1cc559fd79f1b207f1b8b8c2f59e10c97dbab2b0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt < %s -indvars -S > %t
 ; RUN: not grep and %t
 ; RUN: not grep zext %t
 
index b9bf3d2de2d30a5ac7100d9d1c3277e4fca75665..29a5b6f860e6538ad4bb0ea87873ff3be5d99526 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | grep add | count 1
+; RUN: opt %s -indvars -S | grep add | count 1
 
 ; Indvars should be able to compute the exit value of this loop
 ; without any additional arithmetic. The only add needed should
index 686185d797b385c8ce06afcd7fec9bb2dee4cb27..37603eb6c2e179395ab915328541332c71e52785 100644 (file)
@@ -1,6 +1,6 @@
 ; LFTR should eliminate the need for the computation of i*i completely.  It 
 ; is only used to compute the exit value.
-; RUN: opt %s -indvars -dce | llvm-dis | not grep mul
+; RUN: opt %s -indvars -dce -S | not grep mul
 
 @A = external global i32                ; <i32*> [#uses=1]
 
index 969de427c0e1354192c12c3a1be50ab6ea441484..9ea99620f52ef29063572d03c44669a10fc0678c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | not grep select
+; RUN: opt %s -indvars -S | not grep select
 
 ; This loop has backedge-taken-count zero. Indvars shouldn't expand any
 ; instructions to compute a trip count.
index 7f13841807f675f529effeb6075605e99d36c66f..9dd7ef0ff68eec69ba0d5e4993e90570b50911e9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt %s -indvars -S > %t
 ; RUN: grep {\[%\]tmp7 = icmp eq i8 -28, -28} %t
 ; RUN: grep {\[%\]tmp8 = icmp eq i8 63, 63} %t
 ; PR4477
index cd75c4369102dbe7fe93a720e498e337ad382b9b..c57ab0dc1819d1f611d9233c252cd8333f0589a1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars -loop-deletion -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -indvars -loop-deletion -simplifycfg -S | not grep br
 ;
 ; Testcase distilled from 256.bzip2
 
index cff09ba4cc5b0f26f67fecc8ac9444f89d81d4c0..787c284089eee83c81e463cba99679f0746f19d3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | grep {ret i32 600000}
+; RUN: opt %s -indvars -S | grep {ret i32 600000}
 ; PR1179
 
 define i32 @foo() {
index 6d2b004a2aedf21299e7039f6fadaad5b405696f..f7959459f84b52fbb0992694cfd2146c5cf59417 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | grep {ret i32 9900}
+; RUN: opt %s -indvars -S | grep {ret i32 9900}
 ; PR1179
 
 define i32 @test4() {
index 7851a70afbb2e63288c9539959debc09a693987d..0d9ed0a8a057b2ecdea08d866803fed97496fae6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | 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 d434e7909ac04424cd3be532918ec9f63ca9852c..aa8fe30a86a0832493b250c3d2bd5d8e517e16d4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars -loop-deletion | llvm-dis | grep phi | count 1
+; RUN: opt %s -indvars -loop-deletion -S | grep phi | count 1
 ; XFAIL: *
 
 ; Indvars can't evaluate this loop, because ScalarEvolution can't compute
index 94829c4a70ed85ce2a79bc1b65ac537c61976401..013885222439cdfc3ee62a132fe21d46a487655d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt %s -indvars -S > %t
 ; RUN: not grep trunc %t
 ; RUN: grep and %t | count 1
 
index dce6d70cce5f59ff8eed2878f42f393475b4ef88..644e3ec071d4fa09929cb20f75bc7ebcb6274305 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt %s -indvars -S > %t
 ; RUN: grep {icmp ugt i8\\\*} %t | count 1
 ; RUN: grep {icmp sgt i8\\\*} %t | count 1
 
index 896a3d7e20f862514c132a2daa731793cee298eb..c2dee6a72ed6fcf25ebd810bbc177c13c624a7db 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | grep indvar
+; RUN: opt %s -indvars -S | grep indvar
 @G = global i32* null           ; <i32**> [#uses=1]
 @Array = external global [40 x i32]             ; <[40 x i32]*> [#uses=1]
 
index 0a10580018365ffe572a610be7def8bb1f6469cf..ae59055fc679144d98e387769392f789a81ee564 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt %s -indvars -S > %t
 ; RUN: grep {%exitcond = icmp eq i64 %indvar.next, %n} %t
 ; RUN: grep {getelementptr i8\\* %A, i64 %indvar} %t
 ; RUN: grep getelementptr %t | count 1
index 602deddefd94930414b9df643459735057b5ac7b..a247f7b499d39282572201168b6a0ea880648331 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt %s -indvars -S > %t
 ; Exactly one getelementptr for each load+store.
 ; RUN: grep getelementptr %t | count 6
 ; Each getelementptr using %struct.Q* %s as a base and not i8*.
index 0bb338a8c3141ba5f373baf9eab08d67968e5119..8781d748fa613721d3eefd7e07526586c75592ed 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt %s -indvars -S > %t
 ; RUN: not grep ptrtoint %t
 ; RUN: not grep inttoptr %t
 ; RUN: grep getelementptr %t | count 1
index c649fbe1449332bacea9ec348a13481c805cdb0f..2727752ba07d4f51eeca82b4b765fc5644f3a0b6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt %s -indvars -S > %t
 ; RUN: grep sext %t | count 1
 ; RUN: grep phi %t | count 1
 ; RUN: grep {phi i64} %t
index 6b88a1e198ba9d883a45ff67a68ee167400903c3..4f46cafbe525fbb85acb225d98e294b7f0918e10 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt %s -indvars -S > %t
 ; RUN: not grep sext %t
 
 define i64 @test(i64* nocapture %first, i32 %count) nounwind readonly {
index 40ff26b017f79179487e381e78eb6f10ec9b2d26..d16abd45137bf4b8cb7f1b5c7304f2265a190f09 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis > %t
+; RUN: opt %s -indvars -S > %t
 ; RUN: not grep sext %t
 ; RUN: grep phi %t | count 1
 
index a3a3ceac74d38560934680e6f859b981d89837ae..38448d8ff5ddf4cb2106dfc7b4fd2afc8421861f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | FileCheck %s
+; RUN: opt %s -indvars -S | FileCheck %s
 ; PR4775
 
 ; Indvars shouldn't sink the alloca out of the entry block, even though
index 9e5477bb624b42d4e2a3fcb0d467c231f3089a7b..7544e011ab5c1cb26d4d3da0cffa2139c0ebe8dc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | FileCheck %s --check-prefix=CHECK
+; RUN: opt %s -indvars -S | FileCheck %s --check-prefix=CHECK
 
 declare i1 @b()
 
index abbe518f06ab2d44cdb678219ca8fa64c5c753a0..db8136ac21fd894fd189cc01826fbef112963d26 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars | llvm-dis | grep indvar
+; RUN: opt %s -indvars -S | grep indvar
 
 @G = global i64 0               ; <i64*> [#uses=1]
 
index c7b9bafcaa09bda1351c739a6f6a0e592b3b0528..63338213ac8e05d2c046b1daa527f32c056dc6f0 100644 (file)
@@ -3,7 +3,7 @@
 ; the exit value of the loop will be for some value, allowing us to substitute
 ; it directly into users outside of the loop, making the loop dead.
 ;
-; RUN: opt %s -indvars -loop-deletion -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -indvars -loop-deletion -simplifycfg -S | not grep br
 
 define i32 @linear_setne() {
 entry:
index 7df4fcbfa3e2ae38bdf4b4995930cb68ca251715..db457447c836e5433f6cd2c4ffc2eee4d8ea8f72 100644 (file)
@@ -1,7 +1,7 @@
 ; These tests have an infinite trip count.  We obviously shouldn't remove the 
 ; loops!  :)
 ;
-; RUN: opt %s -indvars -adce -simplifycfg | llvm-dis | grep icmp | wc -l > %t2
+; RUN: opt %s -indvars -adce -simplifycfg -S | grep icmp | wc -l > %t2
 ; RUN: llvm-as < %s | llvm-dis | grep icmp | wc -l > %t1
 ; RUN: diff %t1 %t2
 
index fb0323c4bd72fe73f75b35d9b6c0eb6324c95a6b..b4d510deca7aadcf693d30b89fa19a7c37963ffe 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -indvars -instcombine | llvm-dis | \
+; RUN: opt %s -indvars -instcombine -S | \
 ; RUN:   grep {store i32 0}
 ; Test that -indvars can reduce variable stride IVs.  If it can reduce variable
 ; stride iv's, it will make %iv. and %m.0.0 isomorphic to each other without 
index 8ed1d90ed7fac7333ed03b2031a8060ba5ddf381..43ff4061404841c9ecd39744473f6ba20890306d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline | llvm-dis | not grep {invoke void asm}
+; RUN: opt %s -inline -S | not grep {invoke void asm}
 ; PR1335
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
index b7f5a86e17a9d926b0cd6e1a8bb1fe232be60970..4a7ced8bed5fcabf130063e43c5d5ab4c7bfca60 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline | llvm-dis | grep "define internal i32 @bar"
+; RUN: opt %s -inline -S | grep "define internal i32 @bar"
 @llvm.noinline = appending global [1 x i8*] [ i8* bitcast (i32 (i32, i32)* @bar to i8*) ], section "llvm.metadata"             ; <[1 x i8*]*> [#uses=0]
 
 define internal i32 @bar(i32 %x, i32 %y) {
index 0abe7b5ec6fdc8edbaa4238d00596a98e90688d7..941326efb4e83298fa7e2b82ed4f35657671a0b3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline | llvm-dis | grep call
+; RUN: opt %s -inline -S | grep call
 
 ; 'bar' can be overridden at link-time, don't inline it.
 
index 5f7da15fc1b2edc56b8b803f54b238d29c93bbc2..962accec123d16c4ed4cc66648fea89c07480eec 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as %s -o - | opt -inline | llvm-dis | grep nounwind
-; RUN: llvm-as %s -o - | opt -inline | llvm-dis | grep unreachable
+; RUN: llvm-as %s -o - | opt -inline -S | grep nounwind
+; RUN: llvm-as %s -o - | opt -inline -S | grep unreachable
 
 declare i1 @extern()
 
index 45c9a5a97e9f3098ccb6186927a9f5ffe319008b..f8c95844e13afe9a32024691e332f8acae3697d1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s  -inline-threshold=0 -inline | llvm-dis | not grep call 
+; RUN: opt %s  -inline-threshold=0 -inline -S | not grep call 
 
 define i32 @fn2() alwaysinline {
   ret i32 1
index 65b80e449d592895f474ba7ef228e64082fdbf47..cc0e51b1e0b5f2177b1e4651d862048c1782ad50 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline | llvm-dis | grep call | count 1
+; RUN: opt %s -inline -S | grep call | count 1
 
 define i32 @fn2() noinline {
   ret i32 1
index 12f9d2831e2152d82dddd10664ce316d4ec0f0a3..34b95b70ac0158fef91fbb54359c16d5eee9e19b 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: opt %s -always-inline | llvm-dis | not grep call 
+; RUN: opt %s -always-inline -S | not grep call 
 
 ; Ensure that threshold doesn't disrupt always inline.
-; RUN: opt %s -inline-threshold=-2000000001 -always-inline | llvm-dis | not grep call 
+; RUN: opt %s -inline-threshold=-2000000001 -always-inline -S | not grep call 
 
 
 define internal i32 @if0() alwaysinline {
index 36408ef7bbb2da5a9037ad145621d27ba661a977..79c0302e3291662577878cb3c9f07d0e78ffdc3a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -always-inline | llvm-dis | grep {@foo}
+; RUN: opt %s -always-inline -S | grep {@foo}
 ; Ensure that foo is not removed by always inliner
 ; PR 2945
 
index cb9ab17f3dc103473622fdd34edd36a12012bef4..a34e6808b8fb8fcb607764c3dfab4f72c6c57625 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline | llvm-dis | grep call
+; RUN: opt %s -inline -S | grep call
 ; Do not inline calls to variable-sized alloca.
 
 @q = common global i8* null            ; <i8**> [#uses=1]
index 4dd374835bbafbc32c5e665ccee96d10eae08fba..b8ab4a3e6b5362eefafd9f766fa6fcdeb2477d21 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline | llvm-dis | grep {call.*fib} | count 4
+; RUN: opt %s -inline -S | grep {call.*fib} | count 4
 ; First call to fib from fib is inlined, producing 2 instead of 1, total 3.
 ; Second call to fib from fib is not inlined because new body of fib exceeds
 ; inlining limit of 200.  Plus call in main = 4 total.
index 85ad66f18ec698900d7e0ec4a1eac8a3f50c8182..a44d90682ad4a46523c26882c8eca7a84ad356ba 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline | llvm-dis | not grep callee
+; RUN: opt %s -inline -S | not grep callee
 ; rdar://6655932
 
 ; If callee is marked alwaysinline, inline it! Even if callee has dynamic
index ce2268570c448cc11d1e22d3ca0e2c21b7cd05ca..9294a06c4d15d4725fd5b7acc9223fb2c2ef95c2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline | llvm-dis | FileCheck %s
+; RUN: opt %s -inline -S | FileCheck %s
 ; rdar://7173846
 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-darwin10.0"
index 5fd871d3366a6b34a5237066a3b32c024daee9cc..907e3e2c18395d62936037cb0dbaa2c952edd4a7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline | llvm-dis | grep {llvm.memcpy}
+; RUN: opt %s -inline -S | grep {llvm.memcpy}
 
 ; Inlining a byval struct should cause an explicit copy into an alloca.
 
index e88c824983d15423e7b805e527ad872bdff0480e..04c61ee34f0b7c08efcea25325c231f5ad6810ab 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline | llvm-dis | not grep {llvm.memcpy}
+; RUN: opt %s -inline -S | not grep {llvm.memcpy}
 
 ; Inlining a byval struct should NOT cause an explicit copy 
 ; into an alloca if the function is readonly
index f10200b4a2ff00e4d78e6c204d124198d923402a..1b9902b027beec83b658fbfa100edf40b8624d54 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline | llvm-dis | grep {ret i32 1}
+; RUN: opt %s -inline -S | grep {ret i32 1}
 ; ModuleID = 'short.opt.bc'
 
 define i32 @testBool(i1 %X) {
index 33656e4772466803733dc837573e57392abc2ba5..021c9e73ba689bf132386a4d5e3c6ba0e7c30e17 100644 (file)
@@ -1,6 +1,6 @@
 ; This test ensures that inlining an "empty" function does not destroy the CFG
 ;
-; RUN: opt %s -inline | llvm-dis | not grep br
+; RUN: opt %s -inline -S | not grep br
 
 define i32 @func(i32 %i) {
         ret i32 %i
index b0bc4ded62173097a7944696ece3853820f95f4b..b6b0971e79a24b003a185b93d8540ede1e16a2f9 100644 (file)
@@ -3,9 +3,9 @@
 ; Functions with dynamic allocas can only be inlined into functions that
 ; already have dynamic allocas.
 
-; RUN: opt %s -inline | llvm-dis | \
+; RUN: opt %s -inline -S | \
 ; RUN:   grep llvm.stacksave
-; RUN: opt %s -inline | llvm-dis | not grep callee
+; RUN: opt %s -inline -S | not grep callee
 
 
 declare void @ext(i32*)
index cc51f00c24b4ab0224cae4d6407720db7e220dc6..c975131d6eb430a3590129ca8a21bdb76294cb25 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline -constprop | llvm-dis > %t
+; RUN: opt %s -inline -constprop -S > %t
 ; RUN: not grep test_function %t
 ; RUN: grep {ret i32 5} %t
 
index 0039b70e8d7a1749b6fa301e3013baef55df268e..ce56fee9e3aacb5c0c149c3c6ce614d7015d3f34 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline | llvm-dis | not grep {tail call void @llvm.memcpy.i32}
+; RUN: opt %s -inline -S | not grep {tail call void @llvm.memcpy.i32}
 ; PR3550
 
 define internal void @foo(i32* %p, i32* %q) {
index 3d437114ebc668b154a31cb3f63636ef942873b9..8bb059d01a0c29fb526fe5ded44fa6d67fc9dc6c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline | llvm-dis | not grep tail
+; RUN: opt < %s -inline -S | not grep tail
 
 declare void @bar(i32*)
 
index 853a0ee42f25409e2dad65a4df5a284a36d550f7..915aef00da34f7d2b3067bb5fbf1fcaf383f2ffc 100644 (file)
@@ -1,9 +1,9 @@
 ; Test that the inliner doesn't leave around dead allocas, and that it folds
 ; uncond branches away after it is done specializing.
 
-; RUN: opt %s -inline | llvm-dis | \
+; RUN: opt %s -inline -S | \
 ; RUN:    not grep {alloca.*uses=0}
-; RUN: opt %s -inline | llvm-dis | \
+; RUN: opt %s -inline -S | \
 ; RUN:    not grep {br label}
 @A = weak global i32 0         ; <i32*> [#uses=1]
 @B = weak global i32 0         ; <i32*> [#uses=1]
index 9d5d34170538bebbdebed7ee352d32ead4fbc480..3066d45ff4b1b08e188528f077f1ea6ded93d686 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -inline | llvm-dis | not grep callee
-; RUN: opt %s -inline | llvm-dis | not grep div
+; RUN: opt %s -inline -S | not grep callee
+; RUN: opt %s -inline -S | not grep div
 
 
 define internal i32 @callee(i32 %A, i32 %B) {
index 1b861ca855596d7a5e56bf84743dff74058a514a..632a9e4ca0dc591b4ce80a817d415df765ecfd48 100644 (file)
@@ -1,7 +1,7 @@
 ; This checks to ensure that the inline pass deletes functions if they get 
 ; inlined into all of their callers.
 
-; RUN: opt %s -inline | llvm-dis | \
+; RUN: opt %s -inline -S | \
 ; RUN:   not grep @reallysmall
 
 define internal i32 @reallysmall(i32 %A) {
index c024032a0e2af624cae67b1f44380d1c3c90cd0e..62d4d22361361add984cf16a89ee934aa4a43301 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -inline | llvm-dis | \
+; RUN: opt %s -inline -S | \
 ; RUN:    not grep {callee\[12\](}
-; RUN: opt %s -inline | llvm-dis | not grep mul
+; RUN: opt %s -inline -S | not grep mul
 
 define internal i32 @callee1(i32 %A, i32 %B) {
         %cond = icmp eq i32 %A, 123             ; <i1> [#uses=1]
index 8eb140c109e3f6801c716e984cfea2b39a935177..f611becda295d3f2c5dce5a1a15664b38760c5a1 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that we can inline a simple function, turning the calls in it into invoke
 ; instructions
 
-; RUN: opt %s -inline | llvm-dis | \
+; RUN: opt %s -inline -S | \
 ; RUN:   not grep {call\[^e\]}
 
 declare void @might_throw()
index e57b03f7c7bb4c1dd3dd282f7f27886289a861d5..b04f8abc34c2ca80a0754084865c7706cda51a2c 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that if an invoked function is inlined, and if that function cannot
 ; throw, that the dead handler is now unreachable.
 
-; RUN: opt %s -inline -simplifycfg | llvm-dis | \
+; RUN: opt %s -inline -simplifycfg -S | \
 ; RUN:   not grep UnreachableExceptionHandler
 
 declare void @might_throw()
index 693fbee0c7d2fe0bfc0b08c8fd2339a274057118..b170ecfd048d40692703c6b362d2e69113d45ad3 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that any rethrown exceptions in an inlined function are automatically
 ; turned into branches to the invoke destination.
 
-; RUN: opt %s -inline | llvm-dis | not grep unwind$
+; RUN: opt %s -inline -S | not grep unwind$
 
 declare void @might_throw()
 
index 5d7911d16b7910bbfd475f4910ed5fab058b80ad..95dcbf9034e920255eda644843ba786a7ee71fef 100644 (file)
@@ -1,6 +1,6 @@
 ; Instcombine was missing a test that caused it to make illegal transformations
 ; sometimes.  In this case, it transforms the sub into an add:
-; RUN: opt %s -instcombine | llvm-dis | grep sub
+; RUN: opt %s -instcombine -S | grep sub
 ;
 define i32 @test(i32 %i, i32 %j) {
         %A = mul i32 %i, %j
index 67c8a4f21e45420c13cb861678436f4442a4371a..5835d473da35f7eebe6549fddb7d336b8727e8d8 100644 (file)
@@ -1,7 +1,7 @@
 ; This testcase is incorrectly getting completely eliminated.  There should be
 ; SOME instruction named %c here, even if it's a bitwise and.
 ;
-; RUN: opt %s -instcombine | llvm-dis | grep %c
+; RUN: opt %s -instcombine -S | grep %c
 ;
 define i64 @test3(i64 %A) {
         %c1 = trunc i64 %A to i8                ; <i8> [#uses=1]
index 8f4ba2b7aad25b2e3bce99a832d51e16735ca8ed..b06aaf93af0969e7fa6fabcf30ba08f7f258f4ce 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep add
+; RUN: opt %s -instcombine -S | not grep add
 
 define i32 @test(i32 %A) {
         %A.neg = sub i32 0, %A          ; <i32> [#uses=1]
index b75fc0e9b887583162a8110c47e6940431e48955..21a7a8ef0a399d21479cd0a26460e1a840446e0a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep 4294967295
+; RUN: opt %s -instcombine -S | grep 4294967295
 
 define i64 @test(i64 %Val) {
         %tmp.3 = trunc i64 %Val to i32          ; <i32> [#uses=1]
index 1adb208223f4abbb059b973b4b4844375f1b8462..6f63837e133d3161d3a745b26b88e9d3131ca15a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep load
+; RUN: opt %s -instcombine -S | grep load
 
 define void @test(i32* %P) {
         ; Dead but not deletable!
index 45aaf1ac4fb899d78fd7ab45089e84e9db30c08b..ce608f9d2446b8f1cc463f438f9502b710ae3164 100644 (file)
@@ -1,5 +1,5 @@
 ; The cast in this testcase is not eliminable on a 32-bit target!
-; RUN: opt %s -instcombine | llvm-dis | grep inttoptr
+; RUN: opt %s -instcombine -S | grep inttoptr
 
 target datalayout = "e-p:32:32"
 
index f35f59f7655afc7b685570e392b14a553e1893ef..f529b2471893aa0ac4824f616b60eb06220f5835 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep call | notcast
+; RUN: opt %s -instcombine -S | grep call | notcast
 
 declare void @free(i8*)
 
index 6e4a3adb9a81bdffd9ccf82ef350c67436b18dd6..b0a4d89561a121cb848e3ddff297064df9e54687 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep 34
+; RUN: opt %s -instcombine -S | not grep 34
 
 define i32 @test(i32 %X) {
         ; Do not fold into shr X, 34, as this uses undefined behavior!
index 4bcebde5fb96329192a28ccfd2fae910210dfdbf..759096a985109e2acc16300ca875a3b772c29af8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    grep {ret i1 false}
 
 define i1 @test(i1 %V) {
index 498da27acf659dfdf685cfe886301bb3ab673be5..48a440f994c38c50f50d1a48a1f2c00e01134358 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine -mem2reg | llvm-dis | \
+; RUN: opt %s -instcombine -mem2reg -S | \
 ; RUN:   not grep {i32 1}
 
 ; When propagating the load through the select, make sure that the load is
index 9f8e7b5829fa93a7c6a6a813e64354cf5bb362c4..86b29d6219fa74608fab98b12f7067901cdc85f8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep -- -65536
+; RUN: opt %s -instcombine -S | not grep -- -65536
 
 define i1 @test(i32 %tmp.124) {
         %tmp.125 = shl i32 %tmp.124, 8          ; <i32> [#uses=1]
index fe4a2ef4ee66fcf6932f1ab00d91cb34e4b220cb..730fdc26aabd56d7182012359540be907753b7d0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep and
+; RUN: opt < %s -instcombine -S | not grep and
 
 define i8 @test21(i8 %A) {
         ;; sign extend
index 53bb4965cb49309d2c6ea9238a0c338b816219ea..6218cf65c88300b5c2ba93bd9859e321302b6fe4 100644 (file)
@@ -9,7 +9,7 @@
 ; be eliminated. In many cases the setCC is also eliminated based on the
 ; constant value and the range of the casted value.
 ;
-; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | \
+; RUN: llvm-as %s -o - | opt -instcombine -S | \
 ; RUN:    notcast .*int
 ; END.
 define i1 @lt_signed_to_large_unsigned(i8 %SB) {
index f8e820198f92444daecc86e3239e8b2bba4be193..ad3c5521ad25a9994b8e47e2ad1b1f77f0769ad5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   not grep {ret i1 false}
 
 define i1 @test(i64 %tmp.169) {
index dd53d31087d4e5f9e926e3485e49fe606982e00f..79ce58b38b72a4d7d70b1c9f102fb9388d7da9d9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   grep {ret i1 true}
 ; PR586
 
index 710cc302ebdba0e099ad27f0043716cc08682a58..ca4aa57dcfda6f652078991c8535cbf6b3698eba 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   not grep undef
 
 define i32 @test(i8 %A) {
index 81ee113a7f414d7538f65368b3e4e5af351cdd82..6d829ed34ff08ed1c5bf95e0f471cd6462215f67 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep shl
-; RUN: opt %s -instcombine | llvm-dis | notcast
+; RUN: opt %s -instcombine -S | grep shl
+; RUN: opt %s -instcombine -S | notcast
 
 ; This cannot be turned into a sign extending cast!
 
index 5278e8d20c50280370c3f721f8edeeb95a2d3017..71d173920c050a1cb4ed6b03b895e22d73cb5dc6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep and
+; RUN: opt %s -instcombine -S | grep and
 ; PR913
 
 define i32 @test(i32* %tmp1) {
index 4ca3dc1ec1c1c894feae67f0efa81e0a2dd533dd..1cccf54efdc4d51e38c0dcfa965eb3be381de356 100644 (file)
@@ -1,5 +1,5 @@
 ; The optimizer should be able to remove cast operation here.
-; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | \
+; RUN: llvm-as %s -o - | opt -instcombine -S | \
 ; RUN:    not grep sext.*i32
 
 define i1 @eq_signed_to_small_unsigned(i8 %SB) {
index 8678a85c4648cfa7ee411918ba1ba54ea7b38729..294ca46388dddddd327c58165f8db6f954c1de44 100644 (file)
@@ -1,6 +1,6 @@
 ; This test case is reduced from llvmAsmParser.cpp
 ; The optimizer should not remove the cast here.
-; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | \
+; RUN: llvm-as %s -o - | opt -instcombine -S | \
 ; RUN:    grep sext.*i32
 
 
index a5864f1c1831f2b135d63733c965cb54a812f592..f98126331ab497bb37215ce67fe10c5b18e89d25 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | \
+; RUN: llvm-as %s -o - | opt -instcombine -S | \
 ; RUN:    grep and
 
 define i64 @foo(i64 %tmp, i64 %tmp2) {
index b6e250acaa0314d83fbfbe865797cdd15dc4298b..ba0248c58bebe7c1c7fb1e141a0aed0784177f54 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   grep mul | count 2
 
 define <4 x float> @test(<4 x float> %V) {
index b3d591354669357fc4a4680340fc765f44cb3225..10a08ddc0f75273004519a710093a076546dee17 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    not grep memmove.i32
 ; Instcombine was trying to turn this into a memmove.i32
 
index a64f3cad4303c5d94e37d3a25e244b6950e0f1a9..9bf19ba662ea97d4226b4e3d5bf8acaeb3a1a1ae 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep lshr
+; RUN: opt %s -instcombine -S | grep lshr
 ; Verify this is not turned into -1.
 
 define i32 @test(i8 %amt) {
index 958151cf5ae5a24be2673e032d8f81edac8163ff..ba33186efa196b7b5894e3e4dd7dc4cdf4e3c2bf 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep and.*32
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | grep and.*32
+; RUN: opt %s -instcombine -S | \
 ; RUN:    not grep or.*153
 ; PR1014
 
index 9fca6687dba73503018dd0e1af957af55c63d3af..8d38f93acbceb68e8f4bc7ae5b5841bec6764739 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep sub
-; RUN: opt %s -instcombine | llvm-dis | grep add
+; RUN: opt %s -instcombine -S | grep sub
+; RUN: opt %s -instcombine -S | grep add
 
 define <4 x float> @test(<4 x float> %tmp26, <4 x float> %tmp53) {
         ; (X+Y)-Y != X for fp vectors.
index bcea0e94eea8313dcdd14b3a8e8c36c80fdfaa94..08399bf0cc2dfefe46f7b5e0470cd6de193cc33c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep zext
+; RUN: opt %s -instcombine -S | grep zext
 
 ; Never merge these two conversions, even though it's possible: this is
 ; significantly more expensive than the two conversions on some targets
index 0d3dd34810ac9b3ff521047f764aaa9f7a4892a5..ad8619971541325e41d8932b2e6379e2a5b34dba 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    grep {%bothcond =}
 
 define i1 @Doit_bb(i32 %i.0) {
index 071998fcc57b6b34c2db8577320de6b55a4bab0e..c71d7b6b599c52d09a3bb6051b143446f0490e38 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   grep {icmp sgt}
 ; END.
 target datalayout = "e-p:32:32"
index 8309a9f7dcdeb53ce2013a3531d1271679fe17d5..ab97e08f235f4ddf488f35622964bdc51f53267f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep select
+; RUN: opt %s -instcombine -S | grep select
 ; END.
 
 target datalayout = "e-p:32:32"
index 5fec3d420edb6356558e0db7bdfb775b847bde32..0233d96b7a912afd107d8c9a01b89222a0916f79 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   grep icmp | count 1
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   grep {icmp ugt} | count 1
 ; END.
 
index 7ae7e96f91f7745349c107809b1eaf129b24a435..01c630163ff8eb2f0520f53a1af62f335414e414 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {icmp ugt}
+; RUN: opt %s -instcombine -S | grep {icmp ugt}
 ; PR1107
 ; PR1940
 
index 79267d9038d625171f074629878753b6c054d3b7..e807766c414dc340f21bf1fb64530e2172434d04 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 2b62e988f1db8a2194ef581cf899601908ab936e..8aa096da0fa6e7fe2f82196a92630c279a94178b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 4ab6036bc8c742301308074fbafec482c701e591..78c5e3d364f86b3d1f75fa1320af7079a1a1c3ea 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine -mem2reg | llvm-dis | grep {%A = alloca} 
-; RUN: opt %s -instcombine -mem2reg | llvm-dis | \
+; RUN: opt %s -instcombine -mem2reg -S | grep {%A = alloca} 
+; RUN: opt %s -instcombine -mem2reg -S | \
 ; RUN:    not grep {%B = alloca}
 ; END.
 
index f86eb157610cab7c5e1f07008cab67155750f49a..da312041197dcb49a41a49bfb443861c61935052 100644 (file)
@@ -1,4 +1,4 @@
-;RUN: opt %s -instcombine | llvm-dis | grep zext
+;RUN: opt %s -instcombine -S | grep zext
 
 ; Make sure the uint isn't removed.  Instcombine in llvm 1.9 was dropping the 
 ; uint cast which was causing a sign extend. This only affected code with 
index 19410ec5b9fb1ac5b98cca7a4cdc80c91769d25f..c16d54cd6be0c197c803013d20e1a26825a5ebd0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep ret
+; RUN: opt %s -instcombine -S | grep ret
 ; PR1217
 
 target datalayout = "e-p:32:32"
index a1fee14ff7bf469ae4e8fc67df12d02e2747894e..2e4e5c456946d203cd5c64dc2764839f009d9e19 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 da58dec1dcaabc53b5d12079ade41e92677fe6f3..a72f1f22ef30a3d4d9956b0f23bd9e4a69a224df 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | grep zext
+; RUN: llvm-as %s -o - | opt -instcombine -S | grep zext
 ; PR1261. 
 
 define i16 @test(i31 %zzz) {
index c8dafd166299be68f24eefbf720ab117dd2a11f8..d670a7e0707563324e104024d4a9ed240cb17c65 100644 (file)
@@ -1,5 +1,5 @@
 ; For PR1248
-; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | grep {ugt i32 .*, 11}
+; RUN: llvm-as %s -o - | opt -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 1e26af39ec6ce3082d3bfd0c7ae79d7ec1e010bd..90e22a4c19857baa6e8f20187a7943e679699e60 100644 (file)
@@ -1,5 +1,5 @@
 ; PR1271
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    grep {icmp eq i32 .tmp.*, 2146435072}
 %struct..0anon = type { i32, i32 }
 %struct..1anon = type { double }
index 92a78992299654632952b0a135bfee5a45e3762a..fec93314b307b1d156e8d5ee1c783758794f4016 100644 (file)
@@ -1,5 +1,5 @@
 ; PR1271
-; RUN: opt %s -instcombine | llvm-dis | grep and
+; RUN: opt %s -instcombine -S | grep and
 define i1 @test(i32 %tmp13) {
 entry:
        %tmp14 = shl i32 %tmp13, 12             ; <i32> [#uses=1]
index a32358eb53aa68679ca2827580e9a73b1bc9c669..8489102c2caea52b8cfb028ba92d7550428e0f40 100644 (file)
@@ -1,5 +1,5 @@
 ; PR1271
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    grep {ashr i32 %.mp137, 2}
 ; END.
 
index 5e2121450976836b9c21b92a4bd9c54924e6611e..a5ac78e4d92a810c6e2f19404beb9b634775c38a 100644 (file)
@@ -4,7 +4,7 @@
 ;          is not done. It should be removed when code gen supports "funny"
 ;          bit widths.
 
-; RUN: opt %s -instcombine | llvm-dis | grep {add i49.*-8388608}
+; RUN: opt %s -instcombine -S | grep {add i49.*-8388608}
 
 define i49 @test5(i49 %x) {
         ;; If we have ADD(XOR(AND(X, 0xFF), 0x80), 0xF..F80), it's a sext.
index e48949c5933aa7eee56204a061b8749cab46b1c0..cfaff182f3dbfe232f447d146da05a3145022aed 100644 (file)
@@ -2,7 +2,7 @@
 ; a malloc messes up the element count, causing an extra 4GB to be allocated on
 ; 64-bit targets.
 ;
-; RUN: opt %s -instcombine | llvm-dis | not grep {= add }
+; RUN: opt %s -instcombine -S | not grep {= add }
 
 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:32:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "x86_64-unknown-freebsd6.2"
index ea86cbc3effacb4a8237af5cd2d25548cc63fc86..a73a0738b6d592e1e9f67dd9f54046408c08d6f6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 b06d0b3417d8e841cd6de20228e9e3168ee1b89a..b214900839b363b3e71478a9c91bff64693edf68 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ashr}
+; RUN: opt %s -instcombine -S | grep {ashr}
 ; PR1499
 
 define void @av_cmp_q_cond_true(i32* %retval, i32* %tmp9, i64* %tmp10) {
index 03d6bc8eb07efa5564146e8c5fedc8921ab4a84f..fa79790a3142810c152ebbb534b9fab0607b6215 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ret i1 true}
+; RUN: opt %s -instcombine -S | grep {ret i1 true}
 ; rdar://5278853
 
 define i1 @test(i32 %tmp468) {
index 771ed454a1cbb4bf0bd5ccb1712047c8be81f363..bcd5a2870a8f39e87c92e0cb7c0b19a59d0e0bc1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep icmp
+; RUN: opt %s -instcombine -S | grep icmp
 ; PR1646
 
 @__gthrw_pthread_cancel = alias weak i32 (i32)* @pthread_cancel                ; <i32 (i32)*> [#uses=1]
index 7e098c38e48674336546e5e365387542d7e8a583..16d523b29dd15411af8b2a5dfec61f0451065b9f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {call i32 @f}
+; RUN: opt %s -instcombine -S | grep {call i32 @f}
 
        %struct.FRAME.nest = type { i32, i32 (i32)* }
        %struct.__builtin_trampoline = type { [10 x i8] }
index 614a6f03206e620c148105738c67114b29453ee7..7fa691f6750359c6dad2851643a0273fd321743f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep icmp
+; RUN: opt %s -instcombine -S | grep icmp
 ; PR1678
 
 @A = alias weak void ()* @B            ; <void ()*> [#uses=1]
index 4baf2220cd09013bed5625cf03c03bc4c18b2407..c64cb220a7ed9778fbf339fa07c77ec15d75e84c 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep call
-; RUN: opt %s -std-compile-opts | llvm-dis | not grep xyz
+; RUN: opt %s -instcombine -S | not grep call
+; RUN: opt %s -std-compile-opts -S | not grep xyz
 
 @.str = internal constant [4 x i8] c"xyz\00"           ; <[4 x i8]*> [#uses=1]
 
index e7a5d050b8ebb54e9a5fee15222cf10386d7be7e..6790a2e659403a6a8ec9b16ae549c3bf3dc18619 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 fa0d4d65acbbf91607c9371452c586154c7ef6a8..051b5f480caceb0a2881f3cab72f170463efcece 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {icmp eq i32 %In, 1}
+; RUN: opt %s -instcombine -S | grep {icmp eq i32 %In, 1}
 ; PR1800
 
 define i1 @test(i32 %In) {
index 6a12bf72c78e09ac7b85f40cd122c61929b0d5c4..c904d009c5b6df7bbb6905db1379f7d15db5f4b7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep bitcast
+; RUN: opt %s -instcombine -S | not grep bitcast
 ; PR1716
 
 @.str = internal constant [4 x i8] c"%d\0A\00"         ; <[4 x i8]*> [#uses=1]
index 2143caab0f39f5746a7b51c9af1cd41461e508a1..29a82f3dfadc9f9a34fa0d1e6ff699aa1ee745f7 100644 (file)
@@ -1,6 +1,6 @@
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
 target triple = "i686-pc-linux-gnu"
-; RUN: opt %s -instcombine | llvm-dis | not grep {ret i1 0}
+; RUN: opt %s -instcombine -S | not grep {ret i1 0}
 ; PR1850
 
 define i1 @test() {
index 9b59b250f2608bda676c3ae56393f90a9c668361..dae18aee619b10ac2486ed001e3707f4e38c31a8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep 1431655764
+; RUN: opt %s -instcombine -S | not grep 1431655764
 
 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 1474573dcc91c6ba5e83952a91eda1d85fb43833..f4229251f23fda3355a5175847b544acf55ea6e2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep nounwind
+; RUN: opt %s -instcombine -S | grep nounwind
 
 define void @bar() {
 entry:
index a1983936d095c6a699ca26bfa411936a50e5c59d..7e1f3dc66ee58d3c1e1f7f5fa54d96d16f98e944 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {add} | count 1
+; RUN: opt %s -instcombine -S | grep {add} | count 1
 
 define i32 @foo(i32 %a) {
 entry:
index 5788ef54ae6b1ae1da4a57b98682eb258f5be738..0fa3c66cabe5763d968803738c1d183b3a37c053 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -mem2reg -instcombine | llvm-dis | grep "ret i32 1" | count 8
+; RUN: opt %s -mem2reg -instcombine -S | grep "ret i32 1" | count 8
 
 define i32 @test1() {
 entry:
index 5ef3832871c8390dc4bec993d55b0bf0a53b99c0..d01c404e03fda026d5ab6c4da598ba1ad2cfccfb 100644 (file)
@@ -1,5 +1,5 @@
 ; Ignore stderr, we expect warnings there
-; RUN: opt %s -instcombine 2> /dev/null | llvm-dis | not grep bitcast
+; RUN: opt %s -instcombine 2> /dev/null -S | not grep bitcast
 
 define void @a() {
        ret void
index 7a95ddb6e0b8964686e26961a8175be1fda1ef4f..d31d4ac6f77b6950590c28ba1f3d25ed78ef2260 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep bitcast
+; RUN: opt %s -instcombine -S | not grep bitcast
 
 define void @f(i16 %y) {
        ret void
index 6e931016b9affd675906c8c4ef88aec62c503ba1..a823210fcac5c94e0db7d325dbd156a358aa795b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep and
+; RUN: opt %s -instcombine -S | grep and
 ; PR1907
 
 define i1 @test(i32 %c84.17) {
index 7ede10bf0f2b04feb5542c0f9ae40e3d910a83d8..b573f8a173fe89c845ecd6a61a9a873cc8ed3f2a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep bitcast | count 2
+; RUN: opt %s -instcombine -S | grep bitcast | count 2
 
 define i32 @b(i32* inreg  %x) signext  {
        ret i32 0
index b73c416e044aa584f74bc05f066a4bcb2549a6cc..dabd2e6300c935dd8d0d56364e09635e1ca2092b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep zeroext
+; RUN: opt %s -instcombine -S | grep zeroext
 
        %struct.FRAME.nest = type { i32, i32 (...)* }
        %struct.__builtin_trampoline = type { [10 x i8] }
index 39915cc3516ff055aa24f36605580cf4ce187693..a49853dc0f7c82ec34493be9dd7dcb77f1683e6e 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | notcast
-; RUN: opt %s -instcombine | llvm-dis | not grep {icmp s}
+; RUN: opt %s -instcombine -S | notcast
+; RUN: opt %s -instcombine -S | not grep {icmp s}
 ; PR1940
 
 define i1 @test1(i8 %A, i8 %B) {
index b8f4946ffc60ce2da5fff76dd7cdb065e13ab567..5defb65428228370c173935e9b3291f112093a6b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | notcast
+; RUN: opt %s -instcombine -S | notcast
 
 define i16 @test1(i16 %a) {
         %tmp = zext i16 %a to i32               ; <i32> [#uses=2]
index b69f20f230c4bd7ee15ce436a8332022cfda7536..0684d209d37669f56f40de538801efe15e73452b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep select
+; RUN: opt %s -instcombine -S | grep select
 
 define double @fold(i1 %a, double %b) {
 %s = select i1 %a, double 0., double 1.
index a8052267b03eaed8c5ed65d77eb6bdcade6cd388..0c984356c9bc96751cd91e492f6dcb31e05cecd1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep {a.off}
+; RUN: opt %s -instcombine -S | not grep {a.off}
 ; PR1949
 
 define i1 @test1(i32 %a) {
index e129c08de6c8a9fdc887ee0b1d8db99ef5dd6450..c10128e33f24687b245bc3dcdc467d0b889d00a1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep rem
+; RUN: opt %s -instcombine -S | grep rem
 ; PR1933
 
 define i32 @fold(i32 %a) {
index 65c7351d3b797c0779b04519cc0cb2ee02aa2260..f6ba64d938e72629f97597e1618b677d1808bcbb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ret i.* 0} | count 2
+; RUN: opt %s -instcombine -S | grep {ret i.* 0} | count 2
 ; PR2048
 
 define i32 @i(i32 %a) {
index 5b3a7acdc7ac6a34817f1b38dd0e253f3b3322f9..706a82a86d1ebd9952dc12ed6f22d07716798589 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {sdiv i8 \%a, 9}
+; RUN: opt %s -instcombine -S | grep {sdiv i8 \%a, 9}
 ; PR2048
 
 define i8 @i(i8 %a) {
index a4cf99e3add26ac1581626a8c1a9d9389ed71fe6..a89e83b7e34261e7792a0da8055d4cf228143589 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep mul
+; RUN: opt %s -instcombine -S | not grep mul
 
 define i26 @test(i26 %a) nounwind  {
 entry:
index 442d3642d4cee8be1181fa55b2bb35100217d126..8bdfac7345f03a8d11f19f0b2514946390a73b59 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 a83627660c0b8bb3b87707fc81e5a019d50ab210..47b9d50ef9679e8c9047cb033da92b6fc67668cf 100644 (file)
@@ -1,6 +1,6 @@
 ;; The bitcast cannot be eliminated because byval arguments need
 ;; the correct type, or at least a type of the correct size.
-; RUN: opt %s -instcombine | llvm-dis | grep bitcast
+; RUN: opt %s -instcombine -S | grep bitcast
 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"
        %struct.NSRect = type { [4 x float] }
index bca0753f8fc3eddc6a01db1337a558c0b71ab3c2..e7d2d931a0d67ba7c2b5a1cf3e11377d43b2f9ab 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {volatile store}
+; RUN: opt %s -instcombine -S | grep {volatile store}
 
 define void @test() {
        %votf = alloca <4 x float>              ; <<4 x float>*> [#uses=1]
index 8ac2662381cf003024f8b18ba404ccc57a94d5e5..469492b6548ebf37b39ef8ee2612bf81bfe6394e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {volatile load} | count 2
+; RUN: opt %s -instcombine -S | grep {volatile load} | 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 dec764aae9f9f85106306fd23b32f5b1dd11df6a..7ca62ba2d563866dc49da5dcc001a1eeb42fbc79 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {volatile load} | count 2
+; RUN: opt %s -instcombine -S | grep {volatile load} | 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 006c0f30b83ba1878d455e5c139e96f96cae6fd0..2b2e2aae114d369645e4ba836a2cab130c1a2440 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 194bcc6facb7c7c061bf143b373b8699c012eadc..8e508d01ce20951d985a674e7f6b0fbf779bb426 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 9db2549e3cd74896d3e20d883839fa296c64f0fb..94e63c86495bac0e13d9b757ff1003a559738507 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep sub
+; RUN: opt %s -instcombine -S | not grep sub
 
 define <3 x i8> @f(<3 x i8> %a) {
   %A = sub <3 x i8> zeroinitializer, %a
index 25a750334b22c7f301fbd00f57deecc20e682841..f61fb2553326e1e52f4d50b3da41a7f9bb3517df 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ret i1 false}
+; RUN: opt %s -instcombine -S | grep {ret i1 false}
 ; PR2359
 define i1 @f(i8* %x) {
 entry:
index db6bbaa125be97837896c4bb74fd8a49444e128b..9cbf0504e2a14b445dcaec1f06c2cf418424ad10 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {xor}
+; RUN: opt %s -instcombine -S | grep {xor}
 ; PR2389
 
 define i1 @test(i1 %a, i1 %b) {
index 929e3018e54eb15e7792596c0cbe9f2d596dd2a4..b87136a690d6120bee844cb08cc6ea0f334f5376 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis > %t
+; RUN: opt %s -instcombine -S > %t
 ; RUN: grep {xor} %t
 ; RUN: grep {and} %t
 ; RUN: not grep {div} %t
index 8f45f67c20773ce5f79b7d861381c96877abea5d..e6214ab505c1a9203ff1660ca714c160ddcf3cf1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {phi i32} | count 2
+; RUN: opt %s -instcombine -S | grep {phi i32} | count 2
 
 define void @test() nounwind  {
 entry:
index a7fdcf721ba0cb3f96b035076d9777a47122d9b7..5440c36d623cb0cc78e8db70555164446dd9b4a2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {store i32} | count 2
+; RUN: opt %s -instcombine -S | grep {store i32} | count 2
 
 @g_139 = global i32 0           ; <i32*> [#uses=2]
 
index 47584893675979650e6e1e7e5d704ed504fdac2f..9b32b00e299a1212fe7d968c651b010b47fbe382 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {store i8} | count 2
+; RUN: opt %s -instcombine -S | grep {store i8} | count 2
 
 define i32 @a(i8* %s) nounwind  {
 entry:
index 9216726829ea5c922ae23b6930e19e8210648d85..4307baa5b51a3ca3024780c7fa31e9ccd51159eb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep load | count 3
+; RUN: opt %s -instcombine -S | grep load | count 3
 ; PR2471
 
 declare i32 @x(i32*)
index d91d5c6436bd71ca46e7b878279560cc0f88856e..d88ff16090b832463c427be3e18d2ec2b2cd8e0e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {icmp eq i32 %In, 15}
+; RUN: opt %s -instcombine -S | grep {icmp eq i32 %In, 15}
 ; PR2479
 ; (See also PR1800.)
 
index 54e6332d95a89f9f1474dff2f4a0138c0fa4fd1a..fa91cf124b66a98e0a0ceca53eef8f6039075192 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 11d8ec2d40361a3b81d454e425eb7f303e33947b..4244b4ba2f081e01ce03f6c9731b9fdef0bef447 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep icmp | count 1
+; RUN: opt %s -instcombine -S | grep icmp | count 1
 ; PR2330
 
 define i1 @foo(i32 %a, i32 %b) nounwind {
index 30d58f657edff4e8edb3bd82a1c8e110d93a90ae..2bb22ee03cee6c36957d1287d02e943403ea22a6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {icmp ne i32 \%a}
+; RUN: opt %s -instcombine -S | grep {icmp ne i32 \%a}
 ; PR2330
 
 define i1 @foo(i32 %a) nounwind  {
index 090e457a02b590ff59a45b196030c4d3b34f5b42..299891fb2c842f4132672256fe0805f8650af099 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep -v {i32 8}
+; RUN: opt %s -instcombine -S | grep -v {i32 8}
 ; PR2330
 
 define i32 @a(i32 %a) nounwind  {
index e41f6491de823078fc610aff1373db9bc4dc7381..93613718daaf9937c1663725941df59b07b6d5a6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {volatile load} | count 2
+; RUN: opt %s -instcombine -S | grep {volatile load} | 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 0e4da6161e0309983b9dc34a9a8286ae38ad3397..b60d190fb7421bd453802b9c4802b5c9ee9b48a7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep {sub i32 0}
+; RUN: opt %s -instcombine -S | not grep {sub i32 0}
 ; PR2330
 
 define i32 @foo(i32 %a) nounwind {
index b066e2f5d3de659991884f8b4215e6a257242cf9..2c18a533dc6e6ab131305341e4a385b7414ffe27 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {%C = xor i1 %A, true}
-; RUN: opt %s -instcombine | llvm-dis | 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 ae92a000124ed6ad135d591a5ccd386e76507d36..20c7760e5b3b89afb97767813c9b57d257675d39 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep add
-; RUN: opt %s -instcombine | llvm-dis | not grep mul
+; RUN: opt %s -instcombine -S | not grep add
+; RUN: opt %s -instcombine -S | not grep mul
 ; PR2330
 
 define i1 @f(i32 %x, i32 %y) nounwind {
index 771c7ff72f540c1b7f567c5f906f2f68cc1ed19a..34b604e49a47e9b14f1a619e769d8a6ebcc80788 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep rem
+; RUN: opt %s -instcombine -S | not grep rem
 ; PR2330
 
 define i32 @a(i32 %b) nounwind  {
index 6c0a3b1bd2f3b351737787400315c8267d846a33..77ca9c62eb8e3cea9f7f13ad041f86ef3a359ce2 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {lshr.*3}
-; RUN: opt %s -instcombine | llvm-dis | 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 350f97e7c448c2147befb759daa32ca4b03f19bf..fad21f11bdd3491be73c3e91ae904d2c314eafe4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep sub
+; RUN: opt %s -instcombine -S | grep sub
 ; PR2553
 
 define double @test(double %X) nounwind {
index e700e93fef83113963312f51d8b2821041882d15..8922635bc5047a274a0dc0482528015d4461d1c6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep {store }
+; RUN: opt %s -instcombine -S | not grep {store }
 ; PR2296
 
 @G = common global double 0.000000e+00, align 16
index 07b834391044a1a1b8ba7425895ca2a90a563a59..9773c2d76249f512be9a061d341d89a608878a0c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep or
+; RUN: opt < %s -instcombine -S | not grep or
 ; PR2629
 
 define void @f(i8* %x) nounwind  {
index 5f5f5452ece3ce285074f7ccd0c04eba707cf8e5..4359c0ad4752b818e8a3f6952822f6f53c2e9e79 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep xor
+; RUN: opt %s -instcombine -S | not grep xor
 
 define i1 @test1(i8 %x, i8 %y) {
   %X = xor i8 %x, 128
index b3415878589d6f68acd169ea2b43a7f99c34b7f8..44429ae7a88e3409f4bb3e8dce4ca3a2921d5ef8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {or i1}
+; RUN: opt %s -instcombine -S | grep {or i1}
 ; PR2844
 
 define i32 @test(i32 %p_74) {
index 3feb0355df23f68461e0ffc55c83be313ea8892a..59622527d66cbbdb05c3386ebc85339c08e3a4a3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ret i1 false}
+; RUN: opt %s -instcombine -S | grep {ret i1 false}
 ; PR2697
 
 define i1 @x(i32 %x) nounwind {
index bfe429a8872a9b68485bf1eee19d063bbda8c958..81258349870c04b3ae083e59b3b801ac9ad0c7d5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ret i1 true}
+; RUN: opt %s -instcombine -S | grep {ret i1 true}
 ; PR2993
 
 define i1 @foo(i32 %x) {
index 260ded73497a04d87df04dcb6a3feb73234ad5a3..517d30f3fd2267c3dc40297b95813f983f128071 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis > %t
+; RUN: opt %s -instcombine -S > %t
 ; RUN: grep {icmp eq} %t
 ; RUN: grep {ret i1 false} %t | count 2
 ; RUN: grep {ret i1 true} %t | count 2
index ae1cb04b5f88a031160a2817cc13bc3c6f1b32e8..94859cc039ef991f8f6a567a5b79e16c5e980a22 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis > %t
+; RUN: opt %s -instcombine -S > %t
 ; RUN: grep urem %t | count 3
 ; RUN: grep srem %t | count 1
 ; RUN: grep sub %t | count 2
index 5eba641c6dd7ca8ebb3cdd4776a802bc76f14fa7..12855b8a47fc2215f4b45ed9f8ce248c8fdbca29 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep div
+; RUN: opt %s -instcombine -S | not grep div
 
 define <2 x i8> @f(<2 x i8> %x) {
   %A = udiv <2 x i8> %x, <i8 1, i8 1>
index 326cb1b310ddc980201bc94f9b022da992fa66f9..a2578a8bf8bee15b5c9dec695f572d6a4128c33a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep mul
+; RUN: opt %s -instcombine -S | not grep mul
 
 define <2 x i8> @f(<2 x i8> %x) {
   %A = mul <2 x i8> %x, <i8 1, i8 1>
index 397492300d0f4456fabde429980e10aaf7e1bac0..a50e1e87a4717570203bcd91566bf56e240a0eed 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep div
+; RUN: opt %s -instcombine -S | not grep div
 
 define i8 @test(i8 %x) readnone nounwind {
   %A = udiv i8 %x, 250
index 9221257ca6f7e7044de5afff3acb0a986af48e5f..46c9ff2c6929408ef57def08f5645863560cec85 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 f421de20336aec978dd5f3fe93b584dc25d211f1..ab8c7a556bce15136d16a853a9fba5f75d6ec154 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis > %t
+; RUN: opt %s -instcombine -S > %t
 ; RUN: grep {, align 4} %t | count 3
 ; RUN: grep {, align 8} %t | count 3
 ; rdar://6480438
index a6b190db2b57371b8c39eb049f849395845e9797..75bdb1e3f886ed54226cb8380b4978b8dc26e67c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 982caecc15e4e8dd30fc0880f9426d693454570f..7ab0e3e2d0c4ca67b34389c58b3ae68cbedef3c5 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: opt %s -simplifycfg -instcombine | llvm-dis | grep 0x7FF8000000000000 | count 7
-; RUN: opt %s -simplifycfg -instcombine | llvm-dis | grep 0x7FF00000FFFFFFFF | count 5
-; RUN: opt %s -simplifycfg -instcombine | llvm-dis | grep {0\\.0} | count 3
-; RUN: opt %s -simplifycfg -instcombine | llvm-dis | grep {3\\.5} | count 1
+; RUN: opt %s -simplifycfg -instcombine -S | grep 0x7FF8000000000000 | count 7
+; RUN: opt %s -simplifycfg -instcombine -S | grep 0x7FF00000FFFFFFFF | count 5
+; 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 455279c4b907e2bc25fa9f5b40bed9f2823afc5c..1f4b2d272bc66e8276995ebc55e4f555f640f8ff 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -simplifycfg -instcombine | llvm-dis | grep 0x3FB99999A0000000 | count 2
-; RUN: opt %s -simplifycfg -instcombine | llvm-dis | grep 0xBFB99999A0000000 | count 2
+; RUN: opt %s -simplifycfg -instcombine -S | grep 0x3FB99999A0000000 | count 2
+; RUN: opt %s -simplifycfg -instcombine -S | grep 0xBFB99999A0000000 | count 2
 ; check constant folding for 'frem'.  PR 3316.
 
 ; ModuleID = 'tt.c'
index 9455525db47a994993f162a4302cba7f5da98837..36bfb412641a4a883f9d0a2bb2ba91ba41518dc2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {%B = add i8 %b, %x}
+; RUN: opt %s -instcombine -S | grep {%B = add i8 %b, %x}
 ; PR2698
 
 declare void @use1(i1)
index 728bde5e4c7033363aaf8ab46daf0bf9f4df05fb..d4c98b5d32dc0f153d51179edf3bf9822f017a52 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine -scalarrepl | llvm-dis | not grep { = alloca}
+; RUN: opt %s -instcombine -scalarrepl -S | not grep { = alloca}
 ; rdar://6417724
 ; Instcombine shouldn't do anything to this function that prevents promoting the allocas inside it.
 
index 76bc69f3693ba0ddfd55443f5702d8378cf928ef..9c77a69eba9f43aa5a364333b110a26484707455 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 1f207c2ab01e24936eea0a3cee8e2506eef9f9df..6b21296ea569dedefa1758d2ea51d6c7db66d958 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ashr i32 %val, 31}
+; RUN: opt %s -instcombine -S | grep {ashr i32 %val, 31}
 ; PR3851
 
 define i32 @foo2(i32 %val) nounwind {
index 88663f3bd15ec8fa0fc302e65f9590e3c44495e5..417cc4ef92f0e852509b9e2ba9438e8d1355036a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 8137875aa3c1273801274e09545d8dd9eb7c570b..dcbf5cc5345a7d94ab5e7515b90c9ec3b8f8b1cc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep cmp
+; RUN: opt %s -instcombine -S | not grep cmp
 ; rdar://6903175
 
 define i1 @f0(i32 *%a) nounwind {
index 7db92a2ed38d1f21d9cf122b94078b4ce8073c38..cce14e985eb65bc48af2282137d3ef0294398750 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {store i32 0,}
+; RUN: opt %s -instcombine -S | grep {store i32 0,}
 ; PR4366
 
 define void @a() {
index 30119d480ce4d07128ca3b2f6c2666d3914242ee..5b959d75cb155b0369e088dbb2d1d9bc20288b71 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep srem
+; RUN: opt %s -instcombine -S | grep srem
 ; PR3439
 
 define i32 @a(i32 %x) nounwind {
index 5d400b71029924541f0d7b01e6b38ed3a286c0ac..d1e39b81c3e6bd1c9f254e18821f4f477615b25a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   grep select | not grep {i32\\*}
 
 ; This testcase corresponds to PR362, which notices that this horrible code
index be050fccd48d21db0e4e2e6bfef08345690ae7bb..5a997e01540c25e2ed3e960cad116716a6a5f848 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | notcast
+; RUN: opt %s -instcombine -S | notcast
 target datalayout = "e-p:32:32"
 
 define i32* @test(i32* %P) {
index 7b5dbb2bf0acf83fa840a83e52720b51f5877637..bb38ad49edc88746f62b462a3038791c7b78d1c8 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 | llvm-dis | grep {%c3 = icmp sle i32 %A, %B}
+; RUN: opt %s -instcombine -S | grep {%c3 = icmp sle i32 %A, %B}
 
 define i1 @le(i32 %A, i32 %B) {
         %c1 = icmp sgt i32 %A, %B               ; <i1> [#uses=1]
index bd428cfb58f0b035e72e901141560114d2fa7574..b0ad522fb7d90ed5d20ab2c4eec9098670084992 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {add i32}
-; RUN: opt %s -instcombine | llvm-dis | grep sext | count 1
+; RUN: opt %s -instcombine -S | grep {add 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 d3e44c2bddec7001a99c22de4928c805e89b8805..b2befdd0842b476bd91905e4337426d55cc57478 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {add i32}
+; RUN: opt %s -instcombine -S | grep {add i32}
 
 define double @x(i32 %a, i32 %b) nounwind {
   %m = lshr i32 %a, 24
index c20d6b7679aeefa3d28485d5a8760a4740eb5bfd..4719809d6d36944107595bbd71540fa9e63de629 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that add instructions are properly eliminated.
 
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt < %s -instcombine -S | \
 ; RUN:    grep -v OK | not grep add
 
 define i32 @test1(i32 %A) {
index 3469abc81c10a81bca0c4c2ab208a399d3595125..1cbdd3a3cd54ffb8d8ec1ef5ca0e2cf331a01af7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep add
+; RUN: opt < %s -instcombine -S | not grep add
 
 define i64 @test1(i64 %A, i32 %B) {
         %tmp12 = zext i32 %B to i64
index d4c2684fdf9ee8214a2706a28283266ab8a79388..d95ab5dc6d095aa4fa0cb21ec835d9b2e99f16a9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep inttoptr | count 2
+; RUN: opt %s -instcombine -S | grep inttoptr | count 2
 
 ;; Target triple for gep raising case below.
 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 f113915cfe553b1578780a8df6630b94791e4bb9..0f39d71294565ab54259c694aa49e2bdea399cfd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 01dc3d7d60b14a29d9385aa5db1a685718c358f0..afe2f8fc88c74ab88292a09a49f7ad32a53f620d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 d29f834130803a27df56e35f30c85a7686ec5f61..b5d25d3aa78f48c55ce55e816b67c0ea4a12b1dd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {align 16} | count 1
+; RUN: opt %s -instcombine -S | grep {align 16} | count 1
 
 ; A multi-dimensional array in a nested loop doing vector stores that
 ; aren't yet aligned. Instcombine can understand the addressing in the
index 3ce5ca346c2b063eff8176de02a9e52601cdd9c5..da2faabc18fa9ec06db5158f13b595742cf77f37 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {align 16} | count 1
+; RUN: opt %s -instcombine -S | grep {align 16} | count 1
 
 ; Instcombine should be able to prove vector alignment in the
 ; presence of a few mild address computation tricks.
index 9304bbe24a668bccf5e36558bf5d63a0bad07c47..025d54e7e8285c3fa0568dbbb9e84e425f1e68e2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | FileCheck %s
+; RUN: opt %s -instcombine -S | FileCheck %s
 
 ; Don't assume that external global variables have their preferred
 ; alignment. They may only have the ABI minimum alignment.
index fb2deb25b1f13409c32d60cf24d38dc0d5814038..545da15a205684054f8a76ee621c93bb5665e5b4 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {GLOBAL.*align 16}
-; RUN: opt %s -instcombine | llvm-dis | grep {tmp = load}
+; RUN: opt %s -instcombine -S | grep {GLOBAL.*align 16}
+; RUN: opt %s -instcombine -S | grep {tmp = load}
 
 @GLOBAL = internal global [4 x i32] zeroinitializer
 
index 4c497b0a6cfa1b5ee6d2281d4ddef6a9ab11e394..13d664d5599914d68a0732af392f887e9349b28c 100644 (file)
@@ -1,6 +1,6 @@
 ; Zero byte allocas should be deleted.
 
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt < %s -instcombine -S | \
 ; RUN:   not grep alloca
 ; END.
 
index 97a3f17f55ba9248f497501fdf74732e0f3547a7..c30a245e4156587dff289156a765456b4a15970d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt < %s -instcombine -S | \
 ; RUN:    grep and | count 1
 
 ; Should be optimized to one and.
index 26a19704a0804176afb9b3eb46c32c92ae3ccaef..91868d1d07591629bbb1117b03c14899b016d318 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep fcmp | count 3
-; RUN: opt %s -instcombine | llvm-dis | grep ret | grep 0
+; RUN: opt < %s -instcombine -S | grep fcmp | count 3
+; RUN: opt < %s -instcombine -S | grep ret | grep 0
 
 define zeroext i8 @t1(float %x, float %y) nounwind {
        %a = fcmp ueq float %x, %y
index ff56f477d81d3b0ff0fe605c56f08d955dccb80b..9dce7b4e6fb3962bb660c6dd3801f1fcd593d5e8 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {and i32 %x, %y} | count 4
-; RUN: opt %s -instcombine | llvm-dis | 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 9a6ac3afbb1fd417546d7735387462bc3e595b95..8f2a130168700681d21a0e8e1bf00453fcec2521 100644 (file)
@@ -9,7 +9,7 @@
 ;
 ; Which corresponds to test1.
 
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   not grep {or }
 
 define i32 @test1(i32 %X, i32 %Y) {
index 76f3209363dd43411e752d9a9b824a6cd167a055..37ec3bc1aabbe094a99e89d868eddadf8ca3847a 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -instcombine | llvm-dis | grep xor | count 4
-; RUN: opt %s -instcombine | llvm-dis | not grep and
-; RUN: opt %s -instcombine | llvm-dis | not grep { or}
+; RUN: opt < %s -instcombine -S | grep xor | count 4
+; RUN: opt < %s -instcombine -S | not grep and
+; RUN: opt < %s -instcombine -S | not grep { or}
 
 ; PR1510
 
index 5aa53fda0937b38e7cc093b78e69dafaa63871dd..fe770f78fd6655e957a65208ed9415b66acfe0c3 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {and i32 %a, 1} | count 4
-; RUN: opt %s -instcombine | llvm-dis | 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 5472b04dd02a13d9f49d416fadbc1d8ed29432a5..e432a9aef7d14f282e47d63248d6500a11826e39 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep and | count 1
-; RUN: opt %s -instcombine | llvm-dis | grep xor | count 2
+; RUN: opt < %s -instcombine -S | grep and | count 1
+; RUN: opt < %s -instcombine -S | grep xor | count 2
 
 ; (x&z) ^ (y&z) -> (x^y)&z
 define i32 @test1(i32 %x, i32 %y, i32 %z) {
index c5cdf72de8627e77f5e4fd1e6fa85db1da764ef1..8492df9a1209c00d14c21bf557a9f927516a89a6 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 
-; RUN: opt %s -instcombine | llvm-dis | not grep and
+; RUN: opt < %s -instcombine -S | not grep and
 
 define i32 @test1(i32 %A) {
         ; zero result
index 012fa25aadd204e592d380249e567716f4706440..0af9bfaff3941f1013116826d0ca75213a643bdf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep and
+; RUN: opt < %s -instcombine -S | not grep and
 
 
 ; PR1738
index 3dcff56444e4c5f993a2f294132489ff78e693d6..02f1baf53996766ebc152b12de0c54c43750cfb9 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that add instructions are properly eliminated.
 ; This test is for Integer BitWidth <= 64 && BitWidth % 8 != 0.
 
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt < %s -instcombine -S | \
 ; RUN:    grep -v OK | not grep add
 
 
index f34b6ae65d3d8812b42b04c0a4a930bdb138b494..913a70f1b458f4db9f2533ba1d8eb66b4a2872d0 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that add instructions are properly eliminated.
 ; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
 
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt < %s -instcombine -S | \
 ; RUN:    grep -v OK | not grep add
 ; END.
 
index 61a117b2f504454afd8c1be6e691c0687f516dc3..53e591e69c9df66443d8c3c0917006c7781a5ab3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep and | count 2
+; RUN: opt < %s -instcombine -S | grep and | count 2
 
 ; Should be optimized to one and.
 define i1 @test1(i33 %a, i33 %b) {
index 7682407268448bf8e4e6e99f70375ffb92356b00..6aad6f0693d2904c68fc1d228a6a4d47f9cd5944 100644 (file)
@@ -11,7 +11,7 @@
 ; 
 ; This tests arbitrary precision integers.
 
-; RUN: opt %s -instcombine | llvm-dis | not grep {or }
+; RUN: opt %s -instcombine -S | not grep {or }
 ; END.
 
 define i17 @test1(i17 %X, i17 %Y) {
index d46cf6ec82ce3572fc9d269626eb854cb4f7d2cb..8adffde36273514d4f0a0660d09b51cc9cc362b0 100644 (file)
@@ -1,8 +1,8 @@
 ; This test case checks that the merge of and/xor can work on arbitrary
 ; precision integers.
 
-; RUN: opt %s -instcombine | llvm-dis | grep and | count 1
-; RUN: opt %s -instcombine | llvm-dis | grep xor | count 2
+; RUN: opt < %s -instcombine -S | grep and | count 1
+; RUN: opt < %s -instcombine -S | grep xor | count 2
 
 ; (x &z ) ^ (y & z) -> (x ^ y) & z
 define i57 @test1(i57 %x, i57 %y, i57 %z) {
index deaa471f7143d9f18fdd177198c418e4fd806454..9fcdee54661ffad45af54f432360a0a7dd320ba8 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that and instructions are properly eliminated.
 ; This test is for Integer BitWidth <= 64 && BitWidth % 8 != 0.
 
-; RUN: opt %s -instcombine | llvm-dis | not grep {and }
+; RUN: opt %s -instcombine -S | not grep {and }
 ; END.
 
 define i39 @test0(i39 %A) {
index 9ae0b5d978236d90d560cd05b6cd005ae042b7ed..16afb7bab439832e47314be06349971b52d138ae 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that and instructions are properly eliminated.
 ; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
 
-; RUN: opt %s -instcombine | llvm-dis | not grep {and }
+; RUN: opt %s -instcombine -S | not grep {and }
 ; END.
 
 
index bcaef2df1c5efe398a5b7e7b93f3652aec88b762..ca2440cb8b550e542f86b15325b0623adb33d74a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep call | not grep bitcast
+; RUN: opt %s -instcombine -S | grep call | not grep bitcast
 
 target datalayout = "e-p:32:32"
 target triple = "i686-pc-linux-gnu"
index 35948eb97610b71bf9bd7d83dcc774492552bfab..6dc73098df30eda40647b57437cf03c837fafd24 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep bitcast
+; RUN: opt %s -instcombine -S | not grep bitcast
 
 define i19 @test1(i43 %val) {
   %t1 = bitcast i43 %val to i43 
index 1e7ac10fd921eaf3e64b253763e524ffb428cd58..ccd030689fe6286ae8d84bf7533528d444c8b125 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep i41
+; RUN: opt %s -instcombine -S | not grep i41
 
 define i61 @test1(i61 %X) {
         %Y = trunc i61 %X to i41 ;; Turn i61o an AND
index 83640f0d3289cb8428f902239091c80422f7069c..6fad55776258a9b014c7c8219960701250ab9523 100644 (file)
@@ -1,5 +1,5 @@
 ; Tests to make sure elimination of casts is working correctly
-; RUN: opt %s -instcombine | llvm-dis | notcast
+; RUN: opt < %s -instcombine -S | notcast
 
 define i17 @test1(i17 %a) {
         %tmp = zext i17 %a to i37               ; <i37> [#uses=2]
index b1ec5abf006490288dd4b3262354ed3253bc147c..68aadac1de44fd27d4de55799ebead5d77e87b3f 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that div instructions are properly eliminated.
 ; This test is for Integer BitWidth < 64 && BitWidth % 2 != 0.
 ;
-; RUN: opt %s -instcombine | llvm-dis | not grep div
+; RUN: opt < %s -instcombine -S | not grep div
 
 
 define i33 @test1(i33 %X) {
index 41b28b0eb61ea3d5bf16327fb987513d6ebce035..2d7ac78a210fc6b3e6063af547351b5c97d06159 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that div instructions are properly eliminated.
 ; This test is for Integer BitWidth >= 64 && BitWidth <= 1024.
 ;
-; RUN: opt %s -instcombine | llvm-dis | not grep div
+; RUN: opt < %s -instcombine -S | not grep div
 
 
 define i333 @test1(i333 %X) {
index b3bef0bf177aa933ee71f6cdf01e69916658409c..c507375fb700f5fa1611465ce5e5f2fbddc9e1b5 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that elimination of logical operators works with 
 ; arbitrary precision integers.
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    not grep {(and\|xor\|add\|shl\|shr)}
 ; END.
 
index d35f03c2abfeb39fdfb7d80f5ad3d7f9cff2094f..6a5b3e7f03c84745f8dbef1238bbac97b78e49f3 100644 (file)
@@ -2,7 +2,7 @@
 ; This test is for Integer BitWidth < 64 && BitWidth % 2 != 0.
 ;
 
-; RUN: opt %s -instcombine | llvm-dis | not grep mul
+; RUN: opt < %s -instcombine -S | not grep mul
 
 
 define i17 @test1(i17 %X) {
index b99e2a5af8f650a769659e5e53d36059d5b12089..558d2fb63c1e30c6efc86054820658aa0b44fbf4 100644 (file)
@@ -2,7 +2,7 @@
 ; This test is for Integer BitWidth >= 64 && BitWidth % 2 >= 1024.
 ;
 
-; RUN: opt %s -instcombine | llvm-dis | not grep mul
+; RUN: opt < %s -instcombine -S | not grep mul
 
 
 define i177 @test1(i177 %X) {
index 205154351c4df8b06fe383c628221cf67743c55d..49af162202affbebc43afeb95bd7868c07d9ed4c 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that the xor instructions are properly eliminated
 ; when arbitrary precision integers are used.
 
-; RUN: opt %s -instcombine | llvm-dis | not grep xor
+; RUN: opt %s -instcombine -S | not grep xor
 
 define i33 @test1(i33 %A) {
        %B = xor i33 %A, -1
index d5d2e7a1a0d021039ee46d15f3dd68ae30da2090..d4f87ac894d98230016456a4028ab1db2681e750 100644 (file)
@@ -2,7 +2,7 @@
 ; This test is for Integer BitWidth <= 64 && BitWidth % 2 != 0.
 ;
 
-; RUN: opt %s -instcombine | llvm-dis | not grep or
+; RUN: opt < %s -instcombine -S | not grep or
 
 
 define i7 @test0(i7 %X) {
index a38b59e3d3c78562006cb6d5d2f749c69ce26cd0..d7de255f7fd2b2e433ded0115cb167716924fba2 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that or instructions are properly eliminated.
 ; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
 ;
-; RUN: opt %s -instcombine | llvm-dis | not grep or
+; RUN: opt < %s -instcombine -S | not grep or
 
 
 define i777 @test0(i777 %X) {
index 6564b6816a6033f3a386d0a14fa81ad96beb26bb..030faccee8b43bb29e5a9bf9eae5a75b8278cb6c 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ; This test is for Integer BitWidth < 64 && BitWidth % 2 != 0.
 ;
-; RUN: opt %s -instcombine | llvm-dis | not grep rem
+; RUN: opt < %s -instcombine -S | not grep rem
 
 
 define i33 @test1(i33 %A) {
index fb290cc9ee5380f3cea83ec67704de889643d36b..9bfc4cde9521c706c7b74cdb6601ce82499ee98f 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ; This test is for Integer BitWidth >= 64 && BitWidth <= 1024.
 ;
-; RUN: opt %s -instcombine | llvm-dis | not grep rem
+; RUN: opt < %s -instcombine -S | not grep rem
 
 
 define i333 @test1(i333 %A) {
index 3b474254f8951120476b89cc12bc3d68ab0b7279..f2ea60101c5f9663990a6d14b90a6495072a4a40 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that these instructions are properly eliminated.
 
-; RUN: opt %s -instcombine | llvm-dis | not grep select
+; RUN: opt < %s -instcombine -S | not grep select
 
 
 define i41 @test1(i1 %C) {
index 1abe50520ba293ad0ea0e76995f97e4ce28fa889..421069a21ec5993e30b87e03a087644ea8ff17e9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    egrep {shl|lshr|ashr} | count 3
 
 define i41 @test0(i41 %A, i41 %B, i41 %C) {
index c2ee1d3225e00649e3abb06903613116b5bbac80..6573b5bf4f44f953631c4b8a31adc815d28c6420 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that shit instructions are properly eliminated
 ; even with arbitrary precision integers.
-; RUN: opt %s -instcombine | llvm-dis | not grep sh
+; RUN: opt < %s -instcombine -S | not grep sh
 ; END.
 
 define i47 @test1(i47 %A) {
index dd8576a15e6718bf489a1d14f10d841229d98064..be9720d04e1db16e5aefb8a086119ff977de28e8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep shl
+; RUN: opt %s -instcombine -S | grep shl
 ; END.
 
 define i1 @test0(i39 %X, i39 %A) {
index 5b92f1d718c7d29b9dc63524cd0aca016767a8f7..8b9ff143ea4e2fe83a25d09b61b55cfa29037ef5 100644 (file)
@@ -2,7 +2,7 @@
 ; even with arbitrary precision integers.
 ;
 
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt < %s -instcombine -S | \
 ; RUN:   grep -v {sub i19 %Cok, %Bok} | grep -v {sub i25 0, %Aok} | not grep sub
 ; END.
 
index 50446950a62793f2b8bbd108ea9c851e5eba56f0..c7007e968493d8f2939d2cafb4f3a28ad7bf303b 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that xor instructions are properly eliminated.
 ; This test is for Integer BitWidth <= 64 && BitWidth % 8 != 0.
 
-; RUN: opt %s -instcombine | llvm-dis | not grep {xor }
+; RUN: opt %s -instcombine -S | not grep {xor }
 
 
 define i47 @test1(i47 %A, i47 %B) {
index 60e0ac6a7967e7dff85cdaccab4dc6207b015fe0..b6227470424bca42f5fb4f5ac274d1449194386e 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that xor instructions are properly eliminated.
 ; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
 
-; RUN: opt %s -instcombine | llvm-dis | not grep {xor }
+; RUN: opt %s -instcombine -S | not grep {xor }
 ; END.
 
 
index 57500082a3717c87d5bb0bbf163ec434b56d473f..529a33b6b7cb458866ae9d3ef107971204321334 100644 (file)
@@ -1,6 +1,6 @@
 ; Tests to make sure elimination of casts is working correctly
 ; This test is for Integer BitWidth <= 64 && BitWidth % 2 != 0.
-; RUN: opt %s -instcombine | llvm-dis | notcast {} {%c1.*}
+; RUN: opt %s -instcombine -S | notcast {} {%c1.*}
 
 define i47 @test_sext_zext(i11 %A) {
     %c1 = zext i11 %A to i39
index 6341deee889e345ca5557edd651fb4bdfac57ceb..ebc427f1c9bd256c209ef6067f01a4c7103b32d8 100644 (file)
@@ -1,6 +1,6 @@
 ; Tests to make sure elimination of casts is working correctly
 ; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
-; RUN: opt %s -instcombine | llvm-dis | notcast {} {%c1.*}
+; RUN: opt %s -instcombine -S | notcast {} {%c1.*}
 
 define i1024 @test_sext_zext(i77 %A) {
     %c1 = zext i77 %A to i533
index 3fa07b043f67d82ca86499d879fd48ac5af24fbd..870ede38cd888f5a18be161944b4e85e7533b254 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep ashr
+; RUN: opt < %s -instcombine -S | not grep ashr
 
 define i32 @foo(i32 %x) {
   %o = and i32 %x, 1
index eb34a12d2bef8808b5a1137caa3b842732dedcf5..ee43fe00d169bc9c5881466f7175f67acfb39105 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | notcast
+; RUN: opt < %s -instcombine -S | notcast
 
 define i32 @testAdd(i32 %X, i32 %Y) {
        %tmp = add i32 %X, %Y
index 7363e38747ee00a56c0b8a4a082bcb5cc97c37c8..d375bdfd6c37cff1f335c28c65879c5cc5f39749 100644 (file)
@@ -1,6 +1,6 @@
 ; This file contains various testcases that require tracking whether bits are
 ; set or cleared by various instructions.
-; RUN: opt %s -instcombine -instcombine | llvm-dis |\
+; RUN: opt %s -instcombine -instcombine -S |\
 ; RUN:   not grep %ELIM
 
 ; Reduce down to a single XOR
index 3acee53b336a293f8c58230b65248d90f249f2c8..1448fc6f483d5126a0668af608af5970f282e7dc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ret i32 0}
+; RUN: opt %s -instcombine -S | grep {ret i32 0}
 ; PR4487
 
 ; Bitcasts between vectors and scalars are valid, despite being ill-advised.
index 0e8575377505466dcbb7d96a7c7b0cff4a32947a..194fdea52b2e3e2fa9adb63aa34c5dec2cdd8103 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep element | count 4
+; RUN: opt %s -instcombine -S | grep element | count 4
 
 define double @a(<1 x i64> %y) {
   %c = bitcast <1 x i64> %y to double
index d24368d831e20a7d723ff7963da7b7252d81e7cc..8feec229171afb2cac61079ed09e6629ecde74ff 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep bitcast
+; RUN: opt < %s -instcombine -S | not grep bitcast
 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 0a616b66e90296edf1eddd6a2a77a62e59ce4d83..3c10120393ea4dde6ca8f347bdec75d36583eff2 100644 (file)
@@ -1,6 +1,6 @@
 ; Tests to make sure bit counts of constants are folded
-; RUN: opt %s -instcombine | llvm-dis | grep {ret i32 19}
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | grep {ret i32 19}
+; RUN: opt %s -instcombine -S | \
 ; RUN:   grep -v declare | not grep llvm.ct
 
 declare i31 @llvm.ctpop.i31(i31 %val) 
index 7b73deafabc8983a3779d43367f8bdb19bf15272..c4819f8127ad12450359fecb590b3a57db11c0e0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine -simplifycfg | llvm-dis |\
+; RUN: opt %s -instcombine -simplifycfg -S |\
 ; RUN:    not grep {call void @abort}
 
 @b_rec.0 = external global i32          ; <i32*> [#uses=2]
index 6e6006a314bbf564ef2b6abf82399cd831a9954d..35b23e84557e69c667b1af19d92537594b6369ef 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep ret | count 6
-; RUN: opt %s -instcombine | llvm-dis | not grep call.*bswap
+; RUN: opt %s -instcombine -S | grep ret | count 6
+; RUN: opt %s -instcombine -S | not grep call.*bswap
 
 define i1 @test1(i16 %tmp2) {
         %tmp10 = call i16 @llvm.bswap.i16( i16 %tmp2 )          ; <i16> [#uses=1]
index 896a33271518f26b706a893ac257137517851ba1..8428e6b342a422ca71111376211d6a0fbe6ffdbc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    grep {call.*llvm.bswap} | count 6
 
 define i32 @test1(i32 %i) {
index 59794e52de8bb134132d72a51902a0f598e50345..9610ea9215cea7711dfdf85ce49cc268b61bd4a9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   grep call | not grep bitcast
 
 target datalayout = "e-p:32:32"
index 00518fc752f3ebf1b2758def7e8b8fd09bd10b4d..03d9a6a9087ecb8fff0eb2bc4330d9168a539d28 100644 (file)
@@ -1,5 +1,5 @@
 ; Ignore stderr, we expect warnings there
-; RUN: opt %s -instcombine 2> /dev/null | llvm-dis | \
+; RUN: opt %s -instcombine 2> /dev/null -S | \
 ; RUN:    grep call | notcast
 ; END.
 
index 874cd4e417ba3babf83cd4f4f61cf9bb4fe259be..1a9e966edb19ef9048bb9f06e5298f99eb751e90 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    not grep {icmp ne\|icmp ule\|icmp uge}
 
 define i32 @test1(i32 %X, i32 %Y) {
index 04943206ad8b693d18e9cc4dd8934c448dd0b6ee..8ac649fb6282598f1072bd9df621de8f9adfc576 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   not grep bitcast
 
 define i1 @test1(i32 %val) {
index 8f4e5d8bbe1d6650c3b1d15c68d73c8152c18c1d..521e9b462d37e6cad5ccfaf96688490e2e105d01 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   not grep i8 
 
 define i32 @test1(i32 %X) {
index 722f30a4529a19610ce6b449ffcf23bb5834b3ee..0f90bd55c437ee283c0fa08257caf731f349ca6c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine -globaldce | llvm-dis | \
+; RUN: opt %s -instcombine -globaldce -S | \
 ; RUN:   not grep Array
 
 ; Pulling the cast out of the load allows us to eliminate the load, and then 
index 2091d4ffe04a4b160546f83a96d8f49b5d4d23e3..8e1c6b9297a7f5e1b20da3c6ad08a648e0849142 100644 (file)
@@ -1,5 +1,5 @@
 ; test that casted mallocs get converted to malloc of the right type
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    not grep bitcast
 
 ; The target datalayout is important for this test case. We have to tell 
index 937b06b9ac3aae5300903634be10b215f7bb4dfe..7c59e2d9b8b8fdfcf829cae7ce783062034dfe4c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | notcast
+; RUN: opt < %s -instcombine -S | notcast
 
 define i32 @mul(i32 %x, i32 %y) {
   %A = trunc i32 %x to i8
index 178c3405cd3e87eb884578b538c851fdad167645..87acb45cd8b1339ccef319bf25227d5ff0f84536 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine -mem2reg | llvm-dis | \
+; RUN: opt %s -instcombine -mem2reg -S | \
 ; RUN:    not grep load
 
 define i32 @test1(i32* %P) {
index 8db7dc3a39af84af93b8c17694fe4073a4e7e617..ed920b94c77c549fb9440a789004812e7530a423 100644 (file)
@@ -1,7 +1,7 @@
 ; This tests for various complex cast elimination cases instcombine should
 ; handle.
 
-; RUN: opt %s -instcombine | llvm-dis | notcast
+; RUN: opt < %s -instcombine -S | notcast
 
 define i1 @test1(i32 %X) {
         %A = bitcast i32 %X to i32              ; <i32> [#uses=1]
index fd5e40e539df32cb5dd113a7d137dc4defd9e085..79bd5aa655db667f91a76715ca215c8da4174c84 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep sext
+; RUN: opt %s -instcombine -S | not grep sext
 ; XFAIL: *
 
 define zeroext i16 @t(i8 zeroext %on_off, i16* nocapture %puls) nounwind readonly {
index 9458b98660f0859fbc5b1afad19486e454589dc8..048106d0ccde89b986b2e8cd9a3dfe3ea7b61f9f 100644 (file)
@@ -1,5 +1,5 @@
 ; Tests to make sure elimination of casts is working correctly
-; RUN: opt %s -instcombine | llvm-dis | grep %c | notcast
+; RUN: opt %s -instcombine -S | grep %c | notcast
 
 @inbuf = external global [32832 x i8]           ; <[32832 x i8]*> [#uses=1]
 
index f0e55390a732aecadb181606fc1483e8953bf939..80366bd38510d67cc512cc15636f6f9e3d55d498 100644 (file)
@@ -1,5 +1,5 @@
 ; Tests to make sure elimination of casts is working correctly
-; RUN: opt %s -instcombine | llvm-dis | notcast
+; RUN: opt < %s -instcombine -S | notcast
 
 define i16 @test1(i16 %a) {
         %tmp = zext i16 %a to i32               ; <i32> [#uses=2]
index 7ba7b02c79fff614d8fd06ce86e41afa4489a553..c9119480b4d5fe8a2a65fbfd300025921524f2c1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep getelementptr
+; RUN: opt %s -instcombine -S | not grep getelementptr
 ; PR2831
 
 ; Don't raise arbitrary inttoptr+arithmetic+ptrtoint to getelementptr.
index 7a57bbe084633482ff84f4d3b7eaac55d2a66333..3ae2580f461512c22951acbeb5fac806e463ee65 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep bitcast | count 1
+; RUN: opt %s -instcombine -S | grep bitcast | count 1
 
 ; InstCombine can not 'load (cast P)' -> cast (load P)' if the cast changes
 ; the address space.
index 06ccf7215502d3f627c3a9243df465bd4f620ba7..c1bf81cacc7a10775692887fe1275f1e165e8ad6 100644 (file)
@@ -1,5 +1,5 @@
 ; Tests to make sure elimination of casts is working correctly
-; RUN: opt %s -instcombine | llvm-dis | FileCheck %s
+; RUN: opt %s -instcombine -S | FileCheck %s
 
 target datalayout = "p:32:32"
 
index 449bca0132d0bc098ca94767afec782a348a1db5..953f204b148997048ea9d32faff0a3053d559213 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | FileCheck %s
+; RUN: opt %s -instcombine -S | FileCheck %s
 
 ; Constant folding should fix notionally out-of-bounds indices
 ; and add inbounds keywords.
index 906099b547153505e4f193b4765f51ef66caa1a5..8550d6563782de14dc2b336295f1c8db3ebebefb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ret i32 2143034560}
+; RUN: opt %s -instcombine -S | grep {ret i32 2143034560}
 
 ; Instcombine should be able to completely fold this code.
 
index 4713c38a3dae812de031ed6d89010d767fa9aec1..f1c136b968e4aff380ac35c9374adc95ce97ad99 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 af2e9645018bfd1108d0c62023eca210f0546595..8f1158b7fe05c3402574108115fd6fb86f99bc44 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ret i32 %A}
-; RUN: opt %s -die | llvm-dis | not grep call.*llvm.stacksave
+; RUN: opt %s -instcombine -S | grep {ret i32 %A}
+; RUN: opt %s -die -S | not grep call.*llvm.stacksave
 
 define i32 @test(i32 %A) {
        %X = or i1 false, false         
index 006f1d67c230d0cada5ffd803c03b3e21443ca7b..8b91e24e10bebd42712e31c725cc7ea76402b1a2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep sdiv
+; RUN: opt %s -instcombine -S | not grep sdiv
 ; PR2740
 
 define i1 @func_75(i32 %i2) nounwind {
index 542fccf3ab2efde9d40c69221e3045429682fad2..0d1398082601e62d05a9276d3b65f720612087d3 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that div instructions are properly eliminated.
 
-; RUN: opt %s -instcombine | llvm-dis | not grep div
+; RUN: opt < %s -instcombine -S | not grep div
 
 define i32 @test1(i32 %A) {
         %B = sdiv i32 %A, 1             ; <i32> [#uses=1]
index 1b88b2b2e6e33571e595c731762907805f6a4528..89b01f5ac6c9f38491a3d670185700f337d5df2a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 4b8b1ae26f5fd51e624c3cb5ff4caf1d19ad34f5..698e658240e2543ebc539b19ac3d99d0c6e89acc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | FileCheck %s
+; RUN: opt %s -instcombine -S | FileCheck %s
 
 ; CHECK: define i32 @foo
 ; CHECK: sdiv i32 %x, 8
index a64ece4e4cc096b62533ce59dadf1c64b6308c15..875f860b3d7fa416f5dd8dc5f3fd09e3e434411d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep extractvalue
+; RUN: opt < %s -instcombine -S | not grep extractvalue
 
 ; Instcombine should fold various combinations of insertvalue and extractvalue
 ; together
index 23af69ead9f38cb9e134819cee21167144982f88..263088eee4b915678d16fd3ed7b32b24f5ca484b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep icmp
+; RUN: opt %s -instcombine -S | not grep icmp
 
 define i1 @f(i1 %x) {
        %b = and i1 %x, icmp eq (i8* inttoptr (i32 1 to i8*), i8* inttoptr (i32 2 to i8*))
index 2e1b5246a36459fcdd8c4f179f922876e7835fd0..dc25156880eece53ecb90b90906bb6d1e8074cc6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep zeroinitializer
+; RUN: opt %s -instcombine -S | not grep zeroinitializer
 
 define void @foo(i64 %A, i64 %B) {
 bb8:
index 69ff5fa507c7cd94ddf6e3cb7f74cc061fc0845c..8669082957bf74516e11aae9ff662a1185d83692 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    grep {call float bitcast} | count 1
        %struct.NSObject = type { %struct.objc_class* }
        %struct.NSArray = type { %struct.NSObject }
index 7f25092976f9cd3a3cc8da550c8cbafd86fc9993..5d0f55bc6443fa147c590d8b791fb3cd8578bbd8 100644 (file)
@@ -1,6 +1,6 @@
 ; Test some floating point casting cases
-; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | notcast
-; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | \
+; RUN: llvm-as %s -o - | opt -instcombine -S | notcast
+; RUN: llvm-as %s -o - | opt -instcombine -S | \
 ; RUN:   egrep {ret i8 \(-1\)\|\(255\)}
 
 define i8 @test1() {
index 19d4f61362e7e58b4c384f480e1df1daa0514c70..70e0c62dd70e12aca810641173ae3be428f19fb1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep fpext
+; RUN: opt < %s -instcombine -S | not grep fpext
 @X = external global float 
 @Y = external global float
 
index 95d6087aa6c9e18f391af626e18ce78a05b5cd00..94ebf090ff33b4923cb2098be006ec085c4946f5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep fsub | count 2
+; RUN: opt < %s -instcombine -S | grep fsub | count 2
 ; PR4374
 
 define float @func(float %a, float %b) nounwind {
index ff4ff741dd52836876fab9bb8aa3ec88570d6ffd..aa39752c4602b87ed6d823fe138b5b5bcdcfd8e0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | FileCheck %s
+; RUN: opt %s -instcombine -S | FileCheck %s
 
 target datalayout = "e-p:64:64"
 %intstruct = type { i32 }
index 3217d0549329c6ce3f151e3ec17e6b7eaaf8c528..d60363e6665a7e95bab455e3b9be7147c7d71aa0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | FileCheck %s
+; RUN: opt %s -instcombine -S | FileCheck %s
 
 ;; This tests that the div is hoisted into the then block.
 define i32 @foo(i1 %C, i32 %A, i32 %B) {
index 02845ccc9fb6469dc357585b43a318ee563a0b92..3b6f8c59ce6e9da9b4da0608760aaa188fd89db8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep icmp
+; RUN: opt < %s -instcombine -S | not grep icmp
 
 define i32 @test1(i32 %X) {
 entry:
index 78d1d4e8f1e03b9ba9ee4f77aaac164e748de2df..91fcc0c08692ce4bafadde8f4f9ae8aa96e1f36a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {align 1}
+; RUN: opt %s -instcombine -S | grep {align 1}
 ; END.
 
        %struct.p = type <{ i8, i32 }>
index 59d7bb3bcfbe3241a68172f41e64553af3cf6acf..6d068f55dce68b862eb6703158f06dcb1a5a50c9 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
-; RUN: opt %s -instcombine | llvm-dis | not grep load
+; RUN: opt < %s -instcombine -S | not grep load
 
 @X = constant i32 42           ; <i32*> [#uses=2]
 @X2 = constant i32 47          ; <i32*> [#uses=1]
index 1465efd4cd8a00753776f33bb56a4805586e11f9..611b0fb1c040e29c0188f4aac72f21c243039712 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep load
+; RUN: opt < %s -instcombine -S | not grep load
 
 @GLOBAL = internal constant [4 x i32] zeroinitializer
 
index 77fdd04be167b57cdb520587c27745334941a378..9c87316ece8049947d30a966234e26970210472d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep load | count 1
+; RUN: opt < %s -instcombine -S | grep load | count 1
 
 ; Instcombine should be able to do trivial CSE of loads.
 
index a2fcbb0419c08986042c0884d908c5867e71bf0c..368b300452aefd25ddb1b430782bafcf201a250c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {, align 16} | count 14
+; RUN: opt %s -instcombine -S | grep {, align 16} | count 14
 
 @x = external global <2 x i64>, align 16
 @xx = external global [13 x <2 x i64>], align 16
index 93e48663fb650f50709c0e966426f1acc8d85ebc..ece8bc317e5a74bd833dcef0d89a3dc63166c2b3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis > %t
+; RUN: opt < %s -instcombine -S > %t
 ; RUN: grep select %t | count 5
 ; RUN: not grep and %t
 ; RUN: not grep or %t
index 3a5ccc3b485ec5f2737a76fc0b3b6a7609e1b918..76a113face05e43c766ff4a7dbcc4c65cec6f63b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis > %t
+; RUN: opt < %s -instcombine -S > %t
 ; RUN: not grep lshr %t
 ; RUN: grep add %t | count 1
 
index 482084bb182b29693fbc7e46ef6db8f64992c6fc..2ed5ec6996d61c00d696086072da0726a5ea40cb 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ret i32 0}
-; RUN: opt %s -instcombine | llvm-dis | not grep malloc
+; RUN: opt < %s -instcombine -S | grep {ret i32 0}
+; RUN: opt < %s -instcombine -S | not grep malloc
 ; PR1201
 define i32 @main(i32 %argc, i8** %argv) {
         %c_19 = alloca i8*              ; <i8**> [#uses=2]
index d844ce57753d8de49260865bea983863a7d58c2f..88a003a1daa3ce6f0217ad9a9a1bbcf974ef70df 100644 (file)
@@ -1,5 +1,5 @@
 ; test that malloc's with a constant argument are promoted to array allocations
-; RUN: opt %s -instcombine | llvm-dis | grep getelementptr
+; RUN: opt %s -instcombine -S | grep getelementptr
 
 define i32* @test() {
        %X = malloc i32, i32 4
index 32753113d3ae85092c4c718125e711e9bc9f86e7..102422ee5fc7d3dae5b0af33657ea74077545d20 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ret i32 0}
-; RUN: opt %s -instcombine | llvm-dis | not grep malloc
+; RUN: opt < %s -instcombine -S | grep {ret i32 0}
+; RUN: opt < %s -instcombine -S | not grep malloc
 ; PR1313
 
 define i32 @test1(i32 %argc, i8* %argv, i8* %envp) {
index c09b4927d5ec367959850066f4ece59019df13ab..d95ed83f21772e288cf42aca85d52008da3f8c30 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {malloc.*struct.foo} | count 2
+; RUN: opt %s -instcombine -S | grep {malloc.*struct.foo} | count 2
 ; PR1728
 
 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 aeaf05839ed88b9e1735fa01cd67f53a9f2276b5..4817a25e13c56b69a676acf54ed5021884a2a8a6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 6c3c6874df557df0999985767a74bb9011dfe72e..e8939fa16ca4fa2bc5b37a9f6e87713ec1d913dc 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that memmove instructions are properly eliminated.
 ;
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    not grep {call void @llvm.memmove}
 
 @S = internal constant [33 x i8] c"panic: restorelist inconsistency\00"                ; <[33 x i8]*> [#uses=1]
index 57d0825d399ddc6327ac8b1a72a4312f811bd4ca..99f6c493b2b61b43de9e48601d0fb0aa4317ea6a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep {call.*llvm.memset}
+; RUN: opt %s -instcombine -S | not grep {call.*llvm.memset}
 
 declare void @llvm.memset.i32(i8*, i8, i32, i32)
 
index 88c4065ae2bc827976b46d2ce115e5614ab1b45b..d8bcfaf7c3500ed632782baedcd20c465ffb0a89 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep ashr
+; RUN: opt %s -instcombine -S | grep ashr
 
 define i32 @foo(i32 %x, i32 %y) {
   %a = and i32 %x, 7
index f3347801b22b989f08ea61b8ec75965b7631bcb2..7d8593a74ce44c874b9eb1de91c8d6f4ddd37d61 100644 (file)
@@ -1,5 +1,5 @@
 ; This test makes sure that mul instructions are properly eliminated.
-; RUN: opt %s -instcombine | llvm-dis | not grep mul
+; RUN: opt < %s -instcombine -S | not grep mul
 
 define i32 @test1(i32 %A) {
         %B = mul i32 %A, 1              ; <i32> [#uses=1]
index 4d84a853bea43bd8f57cd6e72bc2cb00b64007da..6357e466d01814a016877d0602de63af077cac30 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {add double .sx, .sy}
+; RUN: opt %s -instcombine -S | grep {add double .sx, .sy}
 ; The 'or' has multiple uses, make sure that this doesn't prevent instcombine
 ; from propagating the extends to the truncs.
 
index 420a5cadb7f42bbbc7f1997c741efbdbce73f067..ebe20db1ea690a918e00f89659434a37b08fc561 100644 (file)
@@ -1,6 +1,6 @@
 ; This file contains various testcases that check to see that instcombine
 ; is narrowing computations when possible.
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    grep {ret i1 false}
 
 ; test1 - Eliminating the casts in this testcase (by narrowing the AND
index 5c9837a8a3341b6fd8a1eeb9a8d419c6f01f7e5d..57440f67af442bc6eda47ba40b21a0e100040289 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep "fcmp uge"
+; RUN: opt %s -instcombine -S | grep "fcmp uge"
 ; PR1570
 
 define i1 @f(float %X, float %Y) {
index ee3d7253047edd51637c8cbab411f41f89339db4..0442ebb8f439d7933bcd8bbec798d5fe2013a0ff 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 
-; RUN: opt %s -instcombine | llvm-dis | not grep xor
+; RUN: opt %s -instcombine -S | not grep xor
 
 define i32 @test1(i32 %A) {
         %B = xor i32 %A, -1             ; <i32> [#uses=1]
index ab385baa5cddcbdebe95220d5ec6c60c64211c1c..e2a35e44394e3ecf6dbf80b86661c6aca49b206d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep call
+; RUN: opt %s -instcombine -S | not grep call
 ; rdar://6880732
 declare double @t1(i32) readonly
 
index afe6e35d96020baa5dca1fb9435dc81cc8f4831c..3662df0fbc753d0c8ea5c610bcd6bb394c0fbe7f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | FileCheck %s
+; RUN: opt %s -instcombine -S | FileCheck %s
 
 ; CHECK: define i32 @foo
 ; %y = sub i32 0, %x
index 72cf701f50e8964166939f52e9e02dc13f56615a..e72576bcb90a6035bbfc59c418fc192c6956ef1b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 2672f38d1e9dd2b00c0adbd1fdc96e0414bedca9..9692bfcc597030cc368205414df7c7d92ea823f8 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep fcmp | count 3
-; RUN: opt %s -instcombine | llvm-dis | grep ret | grep 1
+; RUN: opt < %s -instcombine -S | grep fcmp | count 3
+; RUN: opt < %s -instcombine -S | grep ret | grep 1
 
 define zeroext i8 @t1(float %x, float %y) nounwind {
        %a = fcmp ueq float %x, %y             ; <i1> [#uses=1]
index a7588d1911175eefa74a579f0a993d8673a5ca6c..7cab5430d68825c5acee2a283bd72e04dddde8c7 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {xor i32 %a, %b} | count 4
-; RUN: opt %s -instcombine | llvm-dis | 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 9bfc38f5c04eb59f66b783d08e4d085ce9f6f923..1911234561fa817a77c39f0e0880cf309af1c626 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    grep -v xor | not grep {or }
 ; END.
 
index 64fa8343a0d0ee5fda279d5d6550aa4eb27074db..0a5666f333fcc8ea17a0dc733233e1cfe0f5c8e2 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
-; RUN: opt %s -instcombine | llvm-dis | grep -v xor | not grep {or }
+; RUN: opt %s -instcombine -S | grep -v xor | not grep {or }
 
 ; PR1738
 define i1 @test1(double %X, double %Y) {
index 6deaa792e9b08f7cdea43aae79db7ef24a2a5af0..490ecde98e50d08fd5de05e66aacba56dcb23e1b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep {phi i32}
+; RUN: opt %s -instcombine -S | not grep {phi i32}
 ; PR1777
 
 declare i1 @rrr()
index ec34cec14449d5655a0b08cd1a2ee6f2b73bbbbf..24eca72d4b5398e31dbdb29a8396ed0e54a62fe1 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
-; RUN: opt %s -instcombine | llvm-dis | not grep phi
+; RUN: opt < %s -instcombine -S | not grep phi
 
 define i32 @test1(i32 %A, i1 %b) {
 BB0:
index d158a1786333e0d18ecf140ea7dc318bb7ad0292..56adb839092bc5f22f2c63be0ee679848797b726 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 5783ad703d8290b6791b78c00c4a2f480e9fdf5c..2972f6040cfdb0883343d5cd5083eaf9cfa0212b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep shufflevector
+; RUN: opt %s -instcombine -S | grep shufflevector
 ; PR2645
 
 ; instcombine shouldn't delete the shufflevector.
index d8e9e4c8421d92da9b5b9c6c4475e93d912f5e4c..df4ed8dbabffe6c9045ecc51b5a012566d2c9b77 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep { i32 \[%\]sd, \[\[:alnum:\]\]* \\?1\\>} | count 4
+; RUN: opt %s -instcombine -S | grep { i32 \[%\]sd, \[\[:alnum:\]\]* \\?1\\>} | count 4
 
 ; Instcombine normally would fold the sdiv into the comparison,
 ; making "icmp slt i32 %h, 2", but in this case the sdiv has
index 78b813ffa85c095e8af65c4fd8856d1593d5d748..781b2ffacd9126a95ac0671f406d81c1d60b63de 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis > %t
+; RUN: opt %s -instcombine -S > %t
 
 define i1 @test1(i32 *%x) nounwind {
 entry:
index 39a68e21139bde4deb5e043c4c783ea87e0e9f34..bac248e58d7ab393cba86325304aa447bb011e1d 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
-; RUN: opt %s -instcombine | llvm-dis | not grep rem
+; RUN: opt < %s -instcombine -S | not grep rem
 ; END.
 
 define i32 @test1(i32 %A) {
index 26aa24c874298a14423072121005ec342b600add..b62dff27ca34c9c8ae85d732625b332697081959 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine -inline | llvm-dis | not grep '-715827882'
+; RUN: opt %s -instcombine -inline -S | not grep '-715827882'
 ; PR3142
 
 define i32 @a(i32 %X) nounwind readnone {
index 1aa628b5bd706d61c3db90206fa96eee36e01fc5..f4d2b36cbbf8d4bc656dfefc6b5ff427cee73d07 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep div
+; RUN: opt < %s -instcombine -S | not grep div
 
 define i32 @a(i16 zeroext %x, i32 %y) nounwind {
 entry:
index 1a4e0b24f46adc2852bf1c596c0abfb2f1b8c410..a76addc9942b09b588616deebb781b6dc68af67f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep select | count 2
+; RUN: opt < %s -instcombine -S | grep select | count 2
 
 ; Make sure instcombine don't fold select into operands. We don't want to emit
 ; select of two integers unless it's selecting 0 / 1.
index c3d1b93340ed3a1ed97539c8718c8e99fcc8a27d..c134030e6189f1f21766c99dc921d309b5f3d9e1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ret i32 1}
+; RUN: opt %s -instcombine -S | grep {ret i32 1}
 
 declare void @test2()
 
index e3d071290d4e90d1c3c194ed0c65c402b3dda2e0..22fe57f2372208cdfaee33ae36335b4919d035b5 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ; PR1822
 
-; RUN: opt %s -instcombine | llvm-dis | not grep select
+; RUN: opt < %s -instcombine -S | not grep select
 
 define i32 @test1(i32 %A, i32 %B) {
         %C = select i1 false, i32 %A, i32 %B            ; <i32> [#uses=1]
index 7c7b13ef860a5f45bd516f45b9ed65e33e504802..39cb00a98e9e152f424560a3799e733397f8dac7 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
-; RUN: opt %s -instcombine | llvm-dis | not grep icmp
+; RUN: opt %s -instcombine -S | not grep icmp
 ; END.
        
 @X = external global i32                ; <i32*> [#uses=2]
index 00a95360a400a8bd9ce01f7ce633dfef0b7a2296..9e24ecafecf52033ecb9c181cee49274b9403553 100644 (file)
@@ -1,7 +1,7 @@
 ; This test case was reduced from MultiSource/Applications/hbd. It makes sure
 ; that folding doesn't happen in case a zext is applied where a sext should have
 ; been when a setcc is used with two casts.
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    not grep {br i1 false}
 ; END.
 
index ce55827afc91529e17d61562e5779e270dab1816..fde8b2e441154c722d82068350d40f35bba156f8 100644 (file)
@@ -2,7 +2,7 @@
 ; working.  Basically this boils down to converting setlt,gt,le,ge instructions
 ; into equivalent setne,eq instructions.
 ;
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    grep -v {icmp eq} | grep -v {icmp ne} | not grep icmp
 ; END.
 
index 49a0f0d7fb945a025a517e9bae4d539423fc84bc..107bba6e843fe57f2d170d0ba2a5a147225f0889 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep sext
+; RUN: opt < %s -instcombine -S | not grep sext
 
 declare i32 @llvm.ctpop.i32(i32)
 declare i32 @llvm.ctlz.i32(i32)
index 76911ec7d6bfe9e83d9336dd49b687bffa28173b..b18414dad4d47470be951ce7f4dc98f0c195ae71 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    egrep {shl|lshr|ashr} | count 3
 
 define i32 @test0(i32 %A, i32 %B, i32 %C) {
index 4ac925338b7969505db48d54492f5e6f6c87339a..f4c73a0179766cc5bc2b8802cca78ac330b99920 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    grep {lshr i32} | count 2
-; RUN: opt %s -instcombine | llvm-dis | not grep ashr
+; RUN: opt %s -instcombine -S | not grep ashr
 
 
 define i32 @test1(i32 %X, i8 %A) {
index 12f73e59e5284167d27671af1a157fb34b94aa5e..f4f4ce9becf5018036165883626cc210aa1bcb71 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep lshr.*63
+; RUN: opt %s -instcombine -S | grep lshr.*63
 
 define i32 @t1(i64 %d18) {
 entry:
index 358765c4c5ae297b7d8e52d894a6ab41985148d5..f09c0250379c30f9d629b3ddc99a78dd96057538 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
-; RUN: opt %s -instcombine | llvm-dis | not grep sh
+; RUN: opt < %s -instcombine -S | not grep sh
 ; END.
 
 define i32 @test1(i32 %A) {
index 6d2e6b5a948e089ba2d6b907b33609956cc73dd8..08569d37179f7a1715eccfa5bd599e81ca4afb2a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep shl
+; RUN: opt %s -instcombine -S | grep shl
 
 define i1 @test(i32 %X, i8 %A) {
         %shift.upgrd.1 = zext i8 %A to i32              ; <i32> [#uses=1]
index 9ee1aa854e88a7cfbbb701d05bbd7b4c6368918c..d7a6bc6d8ff54ef10737a9d2e52e82a2884a673c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep {shufflevector.\*i32 8}
+; RUN: opt %s -instcombine -S | not grep {shufflevector.\*i32 8}
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
 target triple = "i386-apple-darwin9"
index 2100e5d80eb3b24480877b99e739f4c1263bfb24..b37be5946c21e302b260754df761e883ff32b10c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep "2 x float"
+; RUN: opt %s -instcombine -S | grep "2 x float"
 
 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 2a2739b1bfe084563d55e0a20c07b15116bf4dc2..8a16b7e89c0ee8282cb811f22f6884319ea4c3a8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis > %t
+; RUN: opt %s -instcombine -S > %t
 ; RUN: not grep zext %t
 ; RUN: not grep slt %t
 ; RUN: grep {icmp ult} %t
index 17a45b67043063440bb9dd5a1230cbadea1e0362..d67a04a6488907ee3d8c36e143fc15eda25286b7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    not grep {(and\|xor\|add\|shl\|shr)}
 ; END.
 
index 8d4381afec278233cc00516820bd46929a4f3061..c46d210548fda00d4cb6a013c611b2737f9594ba 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -instcombine %s | llvm-dis | FileCheck %s
+; RUN: opt -instcombine %s -S | FileCheck %s
 
 ;; This tests that the instructions in the entry blocks are sunk into each
 ;; arm of the 'if'.
index 799666fe29c808aed8c630f8462c3fcaffb37ef5..bd31b89f7879afc5c7ae73046c8033c4d6341515 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep itofp
+; RUN: opt < %s -instcombine -S | not grep itofp
 
 define i1 @test1(i8 %A) {
   %B = sitofp i8 %A to double
index bd6428b1e87d58678fe68f5f525afe9b854fb3b5..3afbbe26c71d223ae10904c37eda29a55c59e92e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {ret i1 false}
+; RUN: opt %s -instcombine -S | grep {ret i1 false}
 ; PR2276
 
 define i1 @f(i32 %x) {
index 49fdbf3a2820b94bd4abd38d12845d00d0d16175..32aa9575f5dc09314072ef7be7879ee2b198544d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep srem
+; RUN: opt %s -instcombine -S | grep srem
 
 define i64 @foo(i64 %x1, i64 %y2) {
        %r = sdiv i64 %x1, %y2
index 54a9c2c0f6daaf877fcc253317ec82c6612ba0e4..f221544b44e913c7563c8d34a5910575892b95d1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 348ec3fb4761dd9e485489667f9e77ce1715726c..c86f884ee485518301627d2e19b6c7bd46ae830f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 db45541878e9ea8be84e40c87be9d818a5c18bc1..e334c90c9bee005d63e2638de464a92e09a80156 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    grep {ret i32 %.toremerge} | count 2
 ;; Simple sinking tests
 
index e31aa6dd97ef8d9013eac8bbcca3c4ee7a35ec99..d6f916dc8c7f209fcd3bf227a3d44280c6c8b24c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt < %s -instcombine -S | \
 ; RUN:   grep -v {store.*,.*null} | not grep store
 
 define void @test1(i32* %P) {
index e3cb2bccbd6125470450e8534c26834befe39bc8..bd7a700e22ee6c5873a5f3ec5ff9514d2e9d3ceb 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt < %s -instcombine -S | \
 ; RUN:   grep -v {sub i32 %Cok, %Bok} | grep -v {sub i32 0, %Aok} | not grep sub
 
 define i32 @test1(i32 %A) {
index 37146ed30c0a61d075fcee073a6751680c070215..666ce369378b99de1e80ff0c0dfb2acc050d04af 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis > %t
+; RUN: opt %s -instcombine -S > %t
 ; RUN: not grep zext %t
 ; RUN: not grep sext %t
 
index a65ee90782b5808f082ab53e710ba60b894ba386..c649955bc92acced5b311164c6f5dab15ec67345 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 b7c48f4a18f7e880a10feef3fb9a0c497d93bd2f..d95e8f8359085c0bb45a03a87ea17e4261620751 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis > %t1.ll
+; RUN: opt < %s -instcombine -S > %t1.ll
 ; RUN: grep udiv %t1.ll | count 2
 ; RUN: grep zext %t1.ll | count 2
 ; PR2274
index eb7a69a91695b4d791b5f34fc651e9c70a3ce572..475a19a4447eff8d39d869ca6a8157cb23043cda 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep zext
+; RUN: opt %s -instcombine -S | not grep zext
 ; PR4548
 
 define i8 @udiv_i8(i8 %a, i8 %b) nounwind {
index f41dfa9fa6c283877de52cf862090f33a0e4f8c3..f6c9df265086abf4ae17a5ed0c5f6b9ef092dbe4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 c1993deb679057794a6b6d04f0d36086c0bec2b1..6ecbbc68b1788352968a15f8fca9ae953eaffaac 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep urem
+; RUN: opt %s -instcombine -S | grep urem
 
 define i64 @rem_unsigned(i64 %x1, i64 %y2) {
        %r = udiv i64 %x1, %y2
index d2a3fd794af56d2f8937c98d26814e91a0050bb3..978c162212bb3a870f8b5c0b3db4031fd30a5847 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep extractelement
+; RUN: opt %s -instcombine -S | not grep extractelement
 
 define void @get_image() nounwind {
 entry:
index baa5ce2a56205f5e7b3992b722a7bdc9334f458b..4e42e6654e5899f847dc888a95e3d99458f4dfa0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep load
+; RUN: opt %s -instcombine -S | not grep load
 ; PR4340
 
 define void @vac(<4 x float>* nocapture %a) nounwind {
index 7ea46a56fbb72d6775b42c6ebbe485197f8979ab..62ea02a04ad5fa391a9d3895261740e0aa065298 100644 (file)
@@ -1,12 +1,12 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   grep {fadd float}
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   grep {fmul float}
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   not grep {insertelement.*0.00}
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   not grep {call.*llvm.x86.sse.mul}
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   not grep {call.*llvm.x86.sse.sub}
 ; END.
 
index 1f2335bb47ce2b971cb6806f91d7a29d81069593..5a078f1acf529fa44e903dd96539af6b19058f80 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep extractelement
+; RUN: opt %s -instcombine -S | not grep extractelement
 
 define i32 @test(float %f) {
         %tmp7 = insertelement <4 x float> undef, float %f, i32 0                ; <<4 x float>> [#uses=1]
index fc4642872177037001f665adefe6dbadeb36865d..34c89d82d6cd06155ccd483d166716cd1bf5dde7 100644 (file)
@@ -1,8 +1,8 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   grep shufflevec | count 1
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   not grep insertelement
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   not grep extractelement
 ; END.
 
index 79fce2f2f65b3e3f73d1c104b06a507a69d075b2..2ebf3ff3a72ca49862e30bcb662315a1df4b9dbf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 f54c6e4dd5477cedcd6d786dc983266fafdf898f..fcb64c77c19363aef215644c00a26c7022037da5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   grep {add float}
 
         %V = type <4 x float>
index 510a6c5108d515b2d48c4951dea51d465b323e31..24930c35a8ae6882e2aa91832d32b8a0b96ffead 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep vector_shuffle
+; RUN: opt %s -instcombine -S | not grep vector_shuffle
 ; END.
 
 %T = type <4 x float>
index 6da526cf785f3caddc8416e9bfc9fc5c7d451527..2e53665ec49ec716104f3356b466eac5dc6e538c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep undef | count 1
+; RUN: opt %s -instcombine -S | grep undef | count 1
 ; END.
 
 ; Test fold of two shuffles where the first shuffle vectors inputs are a
index 00448374ac059965a3327db10d3d29ca5e1b78dd..8baa9345e8ed44121177b1cc2fa496a8d7ce8ed2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | FileCheck %s
+; RUN: opt %s -instcombine -S | FileCheck %s
 
 ; This turns into a&1 != 0
 define <2 x i1> @test1(<2 x i64> %a) {
index 6d317ac69d2cde65aa7d69a395ef1d60d6201ba7..0a7c677cc830cf4d8b1bfd0dc0dc471c52ba56e8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | 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 30ef8cbcd964fe21ff677b63b3c371588b4c364c..c9f3c53405e75d4d8563eb471105fe09387d4c4d 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {volatile store}
-; RUN: opt %s -instcombine | llvm-dis | grep {volatile load}
+; RUN: opt %s -instcombine -S | grep {volatile store}
+; RUN: opt %s -instcombine -S | grep {volatile load}
 
 @x = weak global i32 0         ; <i32*> [#uses=2]
 
index 34b60bf9e20948496b1eef7463714c822608d520..6b5b2a2f3079cfa45f9ffee4cccea62fe6edbd76 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep {= or}
+; RUN: opt %s -instcombine -S | not grep {= or}
 ; PR3266
 ; XFAIL: *
 
index de341686782dcb8a388fa3a1994c02ad1075bdec..8616a421c9d431fb8597141141965043baee91d0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep zeroinitializer
+; RUN: opt %s -instcombine -S | grep zeroinitializer
 
 define <2 x i64> @f() {
        %tmp = xor <2 x i64> undef, undef
index 2456f03e532b9fa4e377cf5540a735b60c622ed2..e5dfa5bff28bfff1b329b85b16da19d19b813776 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:    not grep {xor }
 ; END.
 @G1 = global i32 0             ; <i32*> [#uses=1]
index 821a562f3eec64e3161946c26280e09ef7ba3854..424d1b157fd63150d3aa8ad3cdddda7f44bcf55e 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
-; RUN: opt %s -instcombine | llvm-dis | not grep {xor }
+; RUN: opt %s -instcombine -S | not grep {xor }
 
 ; PR1253
 define i1 @test0(i32 %A) {
index 9f38cadf054fc0c284b8bfcdcc6cf8210b389c87..b01a7134db90b2aade293e2f04f8c058254e0a41 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep 0.0 | count 1
+; RUN: opt %s -instcombine -S | grep 0.0 | count 1
 
 declare double @abs(double)
 
index 715edec3ec938906faf5a2fbf95b35c08219ec56..cdbb7b1a05394dcbc44ff70419e1ac7311c6fad7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   grep {and i32 %Y, 8}
 
 define i32 @test1(i8 %X) {
index c1b9d1437434dbfdb40b57907e8709ecad4451ed..11642733acc070034a8a9bb259c57822f39241ab 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | not grep zext
+; RUN: opt < %s -instcombine -S | not grep zext
 
 define i32 @a(i1 %x) {
 entry:
index 9597ad3d6fb40e9aa568ee0ea2ae7d88a445f4e1..008c5d0bb41fca4f007e38d6078018798d219e1a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep {zext } | count 1
+; RUN: opt %s -instcombine -S | grep {zext } | count 1
 ; PR1570
 
 define i32 @test2(float %X, float %Y) {
index dfd10997092974234ad323235490d151ea9886c2..969c3015703169b62e9baf7c591bfc0d9cb926f6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine | llvm-dis | grep icmp | count 1
+; RUN: opt < %s -instcombine -S | grep icmp | count 1
 
        %struct.FooBar = type <{ i8, i8, [2 x i8], i8, i8, i8, i8, i16, i16, [4 x i8], [8 x %struct.Rock] }>
        %struct.Rock = type { i16, i16 }
index e005a86f58c0e211d47a1a4a42fa3950f6cd6524..c926a65065350fdfd23e4b00682826322431cfdc 100644 (file)
@@ -1,5 +1,5 @@
 ; Tests to make sure elimination of casts is working correctly
-; RUN: opt %s -instcombine | llvm-dis | \
+; RUN: opt %s -instcombine -S | \
 ; RUN:   notcast {} {%c1.*}
 
 define i64 @test_sext_zext(i16 %A) {
index 770b0eb4156c6690704b7a8fafee21fe4839c361..5464c37e9e58fb2a8d4325abc050576615681a45 100644 (file)
@@ -1,12 +1,12 @@
 ; No arguments means internalize all but main
-; RUN: opt %s -internalize | llvm-dis | grep internal | count 4
+; RUN: opt %s -internalize -S | grep internal | count 4
 ; Internalize all but foo and j
-; RUN: opt %s -internalize -internalize-public-api-list foo -internalize-public-api-list j | llvm-dis | grep internal | count 3
+; RUN: opt %s -internalize -internalize-public-api-list foo -internalize-public-api-list j -S | grep internal | count 3
 ; Non existent files should be treated as if they were empty (so internalize all but main)
-; RUN: opt %s -internalize -internalize-public-api-file /nonexistent/file 2> /dev/null | llvm-dis | grep internal | count 4
-; RUN: opt %s -internalize -internalize-public-api-list bar -internalize-public-api-list foo -internalize-public-api-file /nonexistent/file 2> /dev/null | llvm-dis | grep internal | count 3
+; RUN: opt %s -internalize -internalize-public-api-file /nonexistent/file 2> /dev/null -S | grep internal | count 4
+; RUN: opt %s -internalize -internalize-public-api-list bar -internalize-public-api-list foo -internalize-public-api-file /nonexistent/file 2> /dev/null -S | grep internal | count 3
 ; -file and -list options should be merged, the .apifile contains foo and j
-; RUN: opt %s -internalize -internalize-public-api-list bar -internalize-public-api-file %s.apifile | llvm-dis | grep internal | count 2
+; RUN: opt %s -internalize -internalize-public-api-list bar -internalize-public-api-file %s.apifile -S | grep internal | count 2
 
 @i = weak global i32 0          ; <i32*> [#uses=0]
 @j = weak global i32 0          ; <i32*> [#uses=0]
index 023801effbb28013c3ecd8b3e00cb5188e287f0c..0f0dac178277f6b94fd9a5e387202a47771c4eaa 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -internalize | llvm-dis | grep internal | count 3
+; RUN: opt %s -internalize -S | grep internal | count 3
 
 @A = global i32 0
 @B = alias i32* @A
index 216dacb8d2682087099ceddbd58d8ec424e88d70..9968f649e60a034c6103133df8eb97d8d7d8a869 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s  | opt -jump-threading -simplifycfg | llvm-dis | grep {ret i32 0}
+; RUN: llvm-as < %s  | opt -jump-threading -simplifycfg -S | grep {ret i32 0}
 ; PR3138
 
 define i32 @jt() {
index 1135ac60a233c1cbc03349769056c923f5a22bde..58ca17700ee3332c27c614b387ef6ffce791e04c 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg  | llvm-dis | grep {ret i32 %v1}
+; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg  -S | grep {ret i32 %v1}
 ; There should be no uncond branches left.
-; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg  | llvm-dis | not grep {br label}
+; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg  -S | not grep {br label}
 
 declare i32 @f1()
 declare i32 @f2()
index 38d3c5358aeb691a7fbd792196e97feb7d59243f..be0d68434af2b08e9559502fbcf62b14e7219f8d 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg  | llvm-dis | grep {ret i32 %v1}
+; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg  -S | grep {ret i32 %v1}
 ; There should be no uncond branches left.
-; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg  | llvm-dis | not grep {br label}
+; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg  -S | not grep {br label}
 
 declare i32 @f1()
 declare i32 @f2()
index 7f851bd036ffc0c1f8460d5ceeec77d60f1ea866..4d3b4ae68f1489a5a111c4a307a3fa1b9d1763b1 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -jump-threading -simplifycfg -mem2reg | llvm-dis | grep {ret i32 %v1}
+; RUN: opt %s -jump-threading -simplifycfg -mem2reg -S | grep {ret i32 %v1}
 ; There should be no uncond branches left.
-; RUN: opt %s -jump-threading -simplifycfg -mem2reg | llvm-dis | not grep {br label}
+; RUN: opt %s -jump-threading -simplifycfg -mem2reg -S | not grep {br label}
 
 declare i32 @f1()
 declare i32 @f2()
index 4ee3e58f519b8826b5cf6ed8040466e448528178..a354056086046cf85b9aae36c68a1f7e28865842 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -jump-threading | llvm-dis | not grep phi
+; RUN: opt %s -jump-threading -S | not grep phi
 
 declare i8 @mcguffin()
 
index 4edd4a931072a04fcdfbcfecc91a164789324f5b..fdbfaffe1d7af0f5e4b533163fb4586b9721c384 100644 (file)
@@ -1,5 +1,5 @@
 ; There should be no phi nodes left.
-; RUN: opt %s -jump-threading -simplifycfg -mem2reg | llvm-dis | not grep {phi i32}
+; RUN: opt %s -jump-threading -simplifycfg -mem2reg -S | not grep {phi i32}
 
 declare i32 @f1()
 declare i32 @f2()
index 00e17cbadb8702cb194977475e01398b8d24299e..4681276a6a607aa9a5835efe5884985e921b2e6e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -jump-threading -die | llvm-dis | grep icmp | count 1
+; RUN: opt %s -jump-threading -die -S | grep icmp | count 1
 
 declare void @f1()
 declare void @f2()
index 4278c3badb9a231a45f06cafcad894e5cf8caa61..3e283f71541648c5c4e4febc097e9a6f39a09d2f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -jump-threading -loop-rotate -instcombine -indvars -loop-unroll -simplifycfg | llvm-dis > %t
+; RUN: opt %s -jump-threading -loop-rotate -instcombine -indvars -loop-unroll -simplifycfg -S > %t
 ; RUN: grep {volatile store} %t | count 3
 ; RUN: not grep {br label} %t
 
index 149acf0731cdb828f795d3e4bfcc5e56f45535b7..d0ca05fb39fcb2a301c8beb8de2cd4219d46bebc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -jump-threading -mem2reg -simplifycfg | llvm-dis | grep {ret i32 1}
+; RUN: opt %s -jump-threading -mem2reg -simplifycfg -S | grep {ret i32 1}
 ; rdar://6402033
 
 ; Test that we can thread through the block with the partially redundant load (%2).
index 8c285a3465190c8a8993a1a1243ff16f6847deae..e09af0aa9ff14c0af32a7c3f1cf926e7705c376e 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -jump-threading | llvm-dis | not grep {br }
-; RUN: opt %s -jump-threading | llvm-dis | grep {ret i32} | count 1
+; RUN: opt %s -jump-threading -S | not grep {br }
+; RUN: opt %s -jump-threading -S | grep {ret i32} | count 1
 
 define i32 @test(i1 %cond) {
        br i1 undef, label %T1, label %F1
index f9a3aa2ddde078e7ca52e98f5bbba18bed8c91f4..46df60a8ab4d387d16c58e95417091f001a179e2 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -lcssa | llvm-dis | \
+; RUN: opt %s -lcssa -S | \
 ; RUN:   grep {%%SJE.0.0.lcssa = phi .struct.SetJmpMapEntry}
-; RUN: opt %s -lcssa | llvm-dis | \
+; RUN: opt %s -lcssa -S | \
 ; RUN:   grep {%%SJE.0.0.lcssa1 = phi .struct.SetJmpMapEntry}
 
         %struct.SetJmpMapEntry = type { i8*, i32, %struct.SetJmpMapEntry* }
index a7bdaecf017c3d7056af99b66c78f1444f94c2be..4108d181a35cd3cbbd50d13868874b7847157727 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -lcssa | llvm-dis | \
+; RUN: opt %s -lcssa -S | \
 ; RUN:    grep {%X.1.lcssa}
-; RUN: opt %s -lcssa | llvm-dis | \
+; RUN: opt %s -lcssa -S | \
 ; RUN:    not grep {%X.1.lcssa1}
 
 declare i1 @c1()
index da8d0ecc8bf50d3b0fac4d1c48116518fa403ad5..087d7da5478442dc1873e376f49beb5fe84b7799 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -lcssa | llvm-dis | \
+; RUN: opt %s -lcssa -S | \
 ; RUN:   grep {X3.lcssa = phi i32}
-; RUN: opt %s -lcssa | llvm-dis | \
+; RUN: opt %s -lcssa -S | \
 ; RUN:   grep {X4 = add i32 3, %X3.lcssa}
 
 define void @lcssa(i1 %S2) {
index 5baef4db6a82bff06bee702ef150ac241ed2893d..b2db1695b5c086c3e570061676cc2c3b35f2c6ab 100644 (file)
@@ -3,7 +3,7 @@
 ; happens because preheader insertion doesn't insert a preheader for this
 ; case... bad.
 
-; RUN: opt %s -licm -loop-deletion -simplifycfg | llvm-dis | \
+; RUN: opt %s -licm -loop-deletion -simplifycfg -S | \
 ; RUN:   not grep {br }
 
 define i32 @main(i32 %argc) {
index e316bae3c3f518a8eef63479908ace0112133d63..022da994e80252c8792741aeb7da64ed0e3027c4 100644 (file)
@@ -3,7 +3,7 @@
 ; loaded from.  Basically if the load gets hoisted, the subtract gets turned
 ; into a constant zero.
 ;
-; RUN: opt %s -licm -gvn -instcombine | llvm-dis | grep load
+; RUN: opt %s -licm -gvn -instcombine -S | grep load
 
 @X = global i32 7              ; <i32*> [#uses=2]
 
index 0d4c70c0cbd3ab4ecf9ae1f738b5d7d8ebe88e44..72e509797a95d4f39edddaad00b26909dcc7277b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -licm | llvm-dis | grep {volatile store}
+; RUN: opt %s -licm -S | grep {volatile store}
 ; 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 8b0098e04ccf66959427299652deab99f0226783..c8d321b61634a04415398deae738356e4f59b0a2 100644 (file)
@@ -2,7 +2,7 @@
 ; Do not promote getelementptr because it may exposes load from a null pointer 
 ; and store from a null pointer  which are covered by 
 ; icmp eq %struct.decision* null, null condition.
-; RUN: opt %s -licm | llvm-dis | not grep promoted
+; RUN: opt %s -licm -S | not grep promoted
        %struct.decision = type { i8, %struct.decision* }
 
 define i32 @main() {
index 4eb52ec1362e66b880373fb270d5d9a8d8021dd3..4b428acaf2964bf043219e54ff0e8470afaa084d 100644 (file)
@@ -1,5 +1,5 @@
 ; Do not promote null value because it may be unsafe to do so.
-; RUN: opt %s -licm | llvm-dis | not grep promoted
+; RUN: opt %s -licm -S | not grep promoted
 
 define i32 @f(i32 %foo, i32 %bar, i32 %com) {
 entry:
index 08fe0ff20396a2d7b9863d044b614bbd297a17bf..796830f5fb2c057aa82b4eec019c31ad3662b06b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -licm | llvm-dis | grep promoted
+; RUN: opt %s -licm -S | grep promoted
 ; Promote value if at least one use is safe
 
 
index 11df8dfb4ce098be649aa84c7c09018566e310f7..d40ae940470fe6938267bb7616a835269d1c3194 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -licm -enable-licm-constant-variables | llvm-dis | grep -A 1 entry | grep load.*@a
+; RUN: opt %s -licm -enable-licm-constant-variables -S | grep -A 1 entry | grep load.*@a
 @a = external constant float*
 
 define void @test(i32 %count) {
index 48aa0aa9cdb56dda7ed0c5e52faca9bb9bc90576..677bd88d7d85a0d7928b00696206284d5abf37ee 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -licm | llvm-dis | FileCheck %s
+; RUN: opt %s -licm -S | FileCheck %s
 
 @X = global i32 0              ; <i32*> [#uses=1]
 
index e2a58b90a649d08ad1b672155fa96ca07240e7c6..9b28f1099f26392e3494f4c91db9cb2a11a7ec7e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s  -licm | llvm-dis | FileCheck %s
+; RUN: opt %s  -licm -S | FileCheck %s
 @X = global i32 7              ; <i32*> [#uses=4]
 
 define void @test1(i32 %i) {
index 7e1218ee8f7b4b0b049aa7d41db4173e36d9e8b3..e6baed23d948333c8163be979051164f5c4f7f61 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -basicaa -licm | llvm-dis | FileCheck %s
+; RUN: opt %s -basicaa -licm -S | FileCheck %s
 
 declare i32 @strlen(i8*) readonly
 
index 41786e500720542be63a0c1d4fd4da8c5940c160..dbd2b9b0196a019f107babd458b36da633ab9721 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-deletion | llvm-dis | grep switch
+; RUN: opt %s -loop-deletion -S | grep switch
 ; PR 1564
   
 define fastcc void @out() {
index ab4f287319216e69c1c63c704c075d2d0dc1cb1a..b7512445326dd0a5e38361bf6694ae732b7434e7 100644 (file)
@@ -1,7 +1,7 @@
 ; This is the test case taken from Appel's book that illustrates a hard case
 ; that SCCP gets right, and when followed by ADCE, is completely eliminated
 ;
-; RUN: opt %s -sccp -simplifycfg -indvars -loop-deletion -dce -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -sccp -simplifycfg -indvars -loop-deletion -dce -simplifycfg -S | not grep br
 
 define i32 @"test function"(i32 %i0, i32 %j0) {
 BB1:
index 700c0f222f629b0c1bd2cb55e7076ebb5cf62f4d..47f4fe3160cf4b82591ac7c024db83f5b941489e 100644 (file)
@@ -1,6 +1,6 @@
 
 ; Update loop iteraton space to eliminate condition inside loop.
-; RUN: opt %s -loop-index-split | llvm-dis | not grep bothcond
+; RUN: opt %s -loop-index-split -S | not grep bothcond
 define void @test(float* %x, i32 %ndat, float** %y, float %xcen, i32 %xmin, i32 %xmax, float %sigmal, float %contribution) {
 entry:
        %tmp519 = icmp sgt i32 %xmin, %xmax             ; <i1> [#uses=1]
index 3089ce49adc8c7c06da11b36087dfb7102d46000..c7b11caf05ed4bdf59c9ca8bea52998799958d22 100644 (file)
@@ -1,6 +1,6 @@
 ; PR714
 ; Update loop iteraton space to eliminate condition inside loop.
-; RUN: opt %s -loop-index-split | llvm-dis | not grep bothcond
+; RUN: opt %s -loop-index-split -S | not grep bothcond
 
 define void @test(float* %x, i32 %ndat, float** %y, float %xcen, i32 %xmin, i32 %xmax, float %sigmal, float %contribution) {
 entry:
index 28c41c92104c771e0d444a26d3e623be37688a6b..deef941289735ce30449a38fdb3493a832dbb93e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-index-split | llvm-dis | not grep undef
+; RUN: opt < %s -loop-index-split -S | not grep undef
 define i32 @main() {
 entry:
        br label %header
index 181633300a5d47555b2d53ed53398ac953463887..d3a93205e55f597e3f5d8afc81d71ab3dc4feec0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-index-split | llvm-dis | not grep "icmp ne"
+; RUN: opt %s -loop-index-split -S | not grep "icmp ne"
 
 define i32 @main() {
 entry:
index 47129ff0f70e9f50f5c81253faeda80a261bac5a..6047cbcdcb82c412df28f796ea0f1a75eebafde1 100644 (file)
@@ -1,6 +1,6 @@
 ; Split loop. Split value is a constant and greater then exit value. 
 ; Check whether optimizer inserts proper checkfor split value or not.
-; RUN: opt %s -loop-index-split | llvm-dis | grep select
+; RUN: opt %s -loop-index-split -S | grep select
 
 @k = external global i32               ; <i32*> [#uses=2]
 
index 102c137256e138bffa721110ba840ce9338ef474..94d96d94d59b9d92629c03feebf77c31d702babf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-rotate | llvm-dis | not grep {\\\[ .tmp224} 
+; RUN: opt %s -loop-rotate -S | not grep {\\\[ .tmp224} 
 ; END.
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
 
index 1a7ece73b03e3d5e1b1961d920ce8b7bb4563e18..5e957ccbd88073f97625b039d24da02e569ce548 100644 (file)
@@ -1,5 +1,5 @@
 ; Loop Simplify should turn phi nodes like X = phi [X, Y]  into just Y, eliminating them.
-; RUN: opt %s -loopsimplify | llvm-dis | grep phi | count 6
+; RUN: opt < %s -loopsimplify -S | grep phi | count 6
 
 @A = weak global [3000000 x i32] zeroinitializer               ; <[3000000 x i32]*> [#uses=1]
 @B = weak global [20000 x i32] zeroinitializer         ; <[20000 x i32]*> [#uses=1]
index a5868e9453234ff3e4c54a42a34de91db28da463..a965fb4e9ebe4b18b6fa32a6f6a374476cb0a712 100644 (file)
@@ -2,7 +2,7 @@
 ; for all loops.  This allows the -indvars pass to recognize the %IV 
 ; induction variable in this testcase.
 
-; RUN: opt %s -indvars | llvm-dis | grep indvar
+; RUN: opt %s -indvars -S | grep indvar
 
 define i32 @test(i1 %C) {
 ; <label>:0
index 46e282b46901531f59387c5ffca0842e654c4056..949e73e94640c8e04454bbcaf7acd82ac2dcb1ec 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-reduce | llvm-dis | grep ugt
+; RUN: opt %s -loop-reduce -S | grep ugt
 ; PR2535
 
 @.str = internal constant [4 x i8] c"%d\0A\00"
index 740056ca4dea5603a3bd3726bbc6c14ff29f504c..7df857319bacdef052ed2502d1967f3581280229 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-reduce | llvm-dis | grep add | count 2
+; RUN: opt %s -loop-reduce -S | grep add | count 2
 ; PR 2662
 @g_3 = common global i16 0             ; <i16*> [#uses=2]
 @"\01LC" = internal constant [4 x i8] c"%d\0A\00"              ; <[4 x i8]*> [#uses=1]
index 7b89fa82484c0d5c8ae5b1f0cebc10e3a86e1b5e..c15529f3a8ba634d57c4d15630e685d748d4469a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-reduce | llvm-dis | grep "phi double" | count 1
+; RUN: opt %s -loop-reduce -S | grep "phi double" | count 1
 
 define void @foobar(i32 %n) nounwind {
 entry:
index 30bbaf3858d3b353792c2559af9b02678fade7f7..70cba5c7519923d1c3747b0041f46820d0da7524 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-reduce | llvm-dis | grep phi | count 2
+; RUN: opt %s -loop-reduce -S | grep phi | count 2
 ; PR 2779
 @g_19 = common global i32 0            ; <i32*> [#uses=3]
 @"\01LC" = internal constant [4 x i8] c"%d\0A\00"              ; <[4 x i8]*> [#uses=1]
index 66f80eb1691fd3f6f1a79e9d9a0a190a66783561..64314eacf78972beb9b3b379a7ceb8996a9a3087 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -loop-reduce | llvm-dis | grep phi | count 1
-; RUN: opt %s -loop-reduce | llvm-dis | grep mul | count 1
+; RUN: opt %s -loop-reduce -S | grep phi | count 1
+; RUN: opt %s -loop-reduce -S | grep mul | count 1
 ; ModuleID = '<stdin>'
 ; Make sure examining a fuller expression outside the loop doesn't cause us to create a second
 ; IV of stride %3.
index 7450449d25f6c076016beec501cd6cd5f2900b2f..07a942f70bd25a923dbb21c6676f2b236566c5fa 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-reduce | llvm-dis | grep phi | count 1
+; RUN: opt < %s -loop-reduce -S | grep phi | count 1
 
 define void @foo(i32 %n) {
 entry:
index 0b1644b92bab67b4a132db05c9317e8584bcbfb5..126fbaefea3b57c4ce99d7cf3af1e7abb9ee1ade 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-reduce | llvm-dis | \
+; RUN: opt %s -loop-reduce -S | \
 ; RUN:   not grep {bitcast i32 1 to i32}
 ; END.
 ; The setlt wants to use a value that is incremented one more than the dominant
index fca440f4fd8addd412312d50db3e5df5826832d9..d8702031b153dfcc6fbc7c3d53e87c5ccdaa7b17 100644 (file)
@@ -1,5 +1,5 @@
 ; Check that this test makes INDVAR and related stuff dead.
-; RUN: opt %s -loop-reduce | llvm-dis | grep phi | count 2
+; RUN: opt %s -loop-reduce -S | grep phi | count 2
 
 declare i1 @pred()
 
index a043e0d94afd9dab57b6d82c7f9cc6173db09fbd..bdb8d360306c04aab97c3d9e07abb3ae8f7aa64b 100644 (file)
@@ -1,5 +1,5 @@
 ; Check that the index of 'P[outer]' is pulled out of the loop.
-; RUN: opt %s -loop-reduce | llvm-dis | \
+; RUN: opt %s -loop-reduce -S | \
 ; RUN:   not grep {getelementptr.*%outer.*%INDVAR}
 
 declare i1 @pred()
index a63ad429bbc12eb56c134a28a4689264d1262a15..fbbaad4ca98a4e85166ebcb1fdc12561c2522e81 100644 (file)
@@ -1,5 +1,5 @@
 ; Check that the index of 'P[outer]' is pulled out of the loop.
-; RUN: opt %s -loop-reduce | llvm-dis | \
+; RUN: opt %s -loop-reduce -S | \
 ; RUN:   not grep {getelementptr.*%outer.*%INDVAR}
 
 declare i1 @pred()
index 6d5bc1ac18c91dd41db31158d2bef78722cb8800..89ea0d0c7a70fde5622a3b81c4280e45863d80a3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-reduce | llvm-dis | not grep mul
+; RUN: opt %s -loop-reduce -S | not grep mul
 
 ; Make sure we don't get a multiply by 6 in this loop.
 
index 5524b1c1d8d70c33d89bfd1f494ca04a559a8bd2..51f8bdcbec5260da94d5c7114147de07bf5352bd 100644 (file)
@@ -1,7 +1,7 @@
 ; Check that this test makes INDVAR and related stuff dead, because P[indvar]
 ; gets reduced, making INDVAR dead.
 
-; RUN: opt %s -loop-reduce | llvm-dis | not grep INDVAR
+; RUN: opt %s -loop-reduce -S | not grep INDVAR
 
 declare i1 @pred()
 
index 9485f076d3b8a638bc2277cad49f630c30316905..eb825d17dddffe66bf042176b6adce7d932a4dc5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-reduce | llvm-dis | grep {phi\\>} | count 10
+; RUN: opt %s -loop-reduce -S | grep {phi\\>} | count 10
 ; 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 6be51083361716a0df7c3b989a71082e5b7c7bd3..4386aeb4010a45b871156fd0ca7bb7f009180bff 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-reduce | llvm-dis | grep phi | count 1
+; RUN: opt %s -loop-reduce -S | grep phi | count 1
 
 ; This should only result in one PHI node!
 
index 3f8e14d9f5d400b8eba03e9c5d870f2ce222783e..57e11595faab8949dde8559e4faf20d4d619d9ed 100644 (file)
@@ -1,5 +1,5 @@
 ; Check that this test makes INDVAR and related stuff dead.
-; RUN: opt %s -loop-reduce | llvm-dis | not grep INDVAR
+; RUN: opt %s -loop-reduce -S | not grep INDVAR
 
 declare i1 @pred()
 
index b9477fef9ef43d832dd60d255aa55fe2b44272d8..ff6a0d9d8e2a46e0d9a91ecc997a44803d1d3969 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-reduce | llvm-dis | grep mul | count 1
+; RUN: opt %s -loop-reduce -S | grep mul | count 1
 ; LSR should not make two copies of the Q*L expression in the preheader!
 
 define i8 @test(i8* %A, i8* %B, i32 %L, i32 %Q, i32 %N.s) {
index 04cfa2042a49142830250051462b357c2b4e1ada..1e6a95187b1da47a95ed5fb661a195a6794b393c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-reduce | llvm-dis | grep phi | count 1
+; RUN: opt %s -loop-reduce -S | grep phi | count 1
 
 ; This testcase should have ONE stride 18 indvar, the other use should have a
 ; loop invariant value (B) added to it inside of the loop, instead of having
index d684ac345bfbdcc430884be69b24cce61f7c4c3d..23f6b61d17f3965a45fb2f60e9e26dbb55a8fdad 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-reduce | llvm-dis | \
+; RUN: opt %s -loop-reduce -S | \
 ; RUN:   grep {add i32 %lsr.iv.next, 1}
 ;
 ; Make sure that the use of the IV outside of the loop (the store) uses the 
index 168c3d091d144a115ebe7e8d7069526f07c53117..fd88c3ae2039381929153226272852a9a94e1da1 100644 (file)
@@ -1,9 +1,9 @@
 ; Base should not be i*3, it should be i*2.
-; RUN: opt %s -loop-reduce | llvm-dis | \
+; RUN: opt %s -loop-reduce -S | \
 ; RUN:   not grep {mul.*%i, 3}
 
 ; Indvar should not start at zero:
-; RUN: opt %s -loop-reduce | llvm-dis | \
+; RUN: opt %s -loop-reduce -S | \
 ; RUN:   not grep {phi i32 .* 0}
 ; END.
 
index 401189711f91057ecca026a12c7784983eb70a91..e82a496081238f13e1e811ef67ec5b183218e3f0 100644 (file)
@@ -1,5 +1,5 @@
 ; Check that variable strides are reduced to adds instead of multiplies.
-; RUN: opt %s -loop-reduce | llvm-dis | not grep mul
+; RUN: opt %s -loop-reduce -S | not grep mul
 
 declare i1 @pred(i32)
 
index f98ec3bfaa1ae301b72921572f6e25166c592546..9a1684012c62ff56c58def9a3246e75a2bf3c147 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-unroll | llvm-dis | grep bb72.2
+; RUN: opt %s -loop-unroll -S | grep bb72.2
 
 define void @vorbis_encode_noisebias_setup() {
 entry:
index aa076564f542abaf46a2dbfcd117e08af01acbc7..2601290d4111b163a73b66e828f5ca33964f40a5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-unroll | llvm-dis | not grep undef
+; RUN: opt %s -loop-unroll -S | not grep undef
 ; PR1385
 
 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 10fc1a11ec324f5adf7a5796aeb156ea46be4304..15249e4f7e8ab5c61278d7518879da852f21a6c1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-unroll -unroll-count=3 | llvm-dis | grep bb72.2
+; RUN: opt %s -loop-unroll -unroll-count=3 -S | grep bb72.2
 
 define void @foo(i32 %trips) {
 entry:
index c9b0dcf4e08c5d93ce004945d8407592d4538b73..8ca18ff240932650c46072f48ae6c1996221f49a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -lowersetjmp | llvm-dis | grep invoke
+; RUN: opt %s -lowersetjmp -S | grep invoke
 
        %JmpBuf = type i32
 @.str_1 = internal constant [13 x i8] c"returned %d\0A\00"             ; <[13 x i8]*> [#uses=1]
index 7523ad235b6dde387ef17370360955e27b61bd8c..c6d2f71bd3e6272d942b2c5c96c2d379b1c4a476 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as %s -o - | opt -lowerswitch | llvm-dis > %t
+; RUN: llvm-as %s -o - | opt -lowerswitch -S > %t
 ; RUN: grep slt %t | count 10
 ; RUN: grep ule %t | count 3
 ; RUN: grep eq  %t | count 9
index eb4bc12e766927acc29da1449dc02ffd0c5adb96..fc53456b03773ed9a8541c9c9e5d902f8fd42d4b 100644 (file)
@@ -1,5 +1,5 @@
 ; Promoting some values allows promotion of other values.
-; RUN: opt %s -mem2reg | llvm-dis | not grep alloca
+; RUN: opt %s -mem2reg -S | not grep alloca
 
 define i32 @test2() {
        %result = alloca i32            ; <i32*> [#uses=2]
index 8126c76477f0b9a7e167d2cfdf65a26815e8216f..4481d70fa621ab285292d99a03c9b7774d25f206 100644 (file)
@@ -1,7 +1,7 @@
 ; Mem2reg should not insert dead PHI nodes!  The naive algorithm inserts a PHI
 ;  node in L3, even though there is no load of %A in anything dominated by L3.
 
-; RUN: opt %s -mem2reg | llvm-dis | not grep phi
+; RUN: opt %s -mem2reg -S | not grep phi
 
 define void @test(i32 %B, i1 %C) {
        %A = alloca i32         ; <i32*> [#uses=4]
index 369817cff2b4c15020aac810e77405054bbc28b7..0414efc0774c79388ccbb63b5b6004d96f546166 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -mem2reg -instcombine | llvm-dis | grep store
+; RUN: opt %s -mem2reg -instcombine -S | grep store
 ; PR590
 
 
index 7cb85e0442b86caf060dd841d2c19d340844b8b6..3701ca39b5134ea66681263412344636e2e7fa53 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -std-compile-opts | llvm-dis | grep volatile | count 3
+; RUN: opt %s -std-compile-opts -S | grep volatile | count 3
 ; PR1520
 ; Don't promote volatile loads/stores. This is really needed to handle setjmp/lonjmp properly.
 
index 55aa340274eeb574bc7653b96e294113699b74bb..ada19a1f571363aaf6cc96e203e200c537f3da09 100644 (file)
@@ -1,5 +1,5 @@
 ; Simple sanity check testcase.  Both alloca's should be eliminated.
-; RUN: opt %s -mem2reg | llvm-dis | not grep alloca
+; RUN: opt %s -mem2reg -S | not grep alloca
 
 define double @testfunc(i32 %i, double %j) {
        %I = alloca i32         ; <i32*> [#uses=4]
index 79dd5498612f189ebe71a9231f8fca2ec2f3048d..b9e4b1a3f4f2ec9a579a709d4c57bf38214fbba9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -mem2reg | llvm-dis | not grep phi
+; RUN: opt %s -mem2reg -S | not grep phi
 
 define i32 @testfunc(i1 %C, i32 %i, i8 %j) {
        %I = alloca i32         ; <i32*> [#uses=2]
index 0f1c6f41b0197646a27e0f88b3733ea136bae204..1207f26a4dfc8642f5168b78fc0f57bdd2fbf7e4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -memcpyopt -dse | llvm-dis | grep {call.*initialize} | not grep memtmp
+; RUN: opt %s -memcpyopt -dse -S | grep {call.*initialize} | not grep memtmp
 ; PR2077
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
index 804fc35d7d0f9de0c02afdda46674c77f023af3c..0f79fb325f0d3accc2d714e29bb0809d471de99c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -memcpyopt | llvm-dis | not grep {call.*memcpy.}
+; RUN: opt %s -memcpyopt -S | not grep {call.*memcpy.}
        %a = type { i32 }
        %b = type { float }
 
index cfc40d2d2a1be6269c306f03453bf104480db274..f1ae721dae2f77d263833a77e4cb25f3b5de8ba4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -memcpyopt | llvm-dis | grep {call.*memcpy.*agg.result}
+; RUN: opt %s -memcpyopt -S | grep {call.*memcpy.*agg.result}
 
 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 6cdb17682ce4df24ff63241c982b14386aa827db..413c181244e4a2dc4a8c790c41dbe34d768c48ee 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -memcpyopt | llvm-dis | not grep store
-; RUN: opt %s -memcpyopt | llvm-dis | grep {call.*llvm.memset}
+; RUN: opt %s -memcpyopt -S | not grep store
+; RUN: opt %s -memcpyopt -S | grep {call.*llvm.memset}
 
 ; All the stores in this example should be merged into a single memset.
 
index f588f6d5dfdf84ef231cfe884b9e4d7e6c633d92..8f31bfc823f8535933483501b1506c9697379bcf 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -memcpyopt | llvm-dis | not grep store
-; RUN: opt %s -memcpyopt | llvm-dis | grep {call.*llvm.memset} | count 3
+; RUN: opt %s -memcpyopt -S | not grep store
+; RUN: opt %s -memcpyopt -S | grep {call.*llvm.memset} | count 3
 
 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 c4fdf9664f26ab10f112176eba0c4bc92da677f5..71a6cd0ff456df9f809b559c93ce346e5b61a8b8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -memcpyopt -dse | llvm-dis | grep {call.*memcpy} | count 1
+; RUN: opt %s -memcpyopt -dse -S | grep {call.*memcpy} | 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 = "i686-apple-darwin9"
index 1967afb72eae9d30aafbb0052cbef2354d9e741a..a1d42de4d5c0361b47386ea918c4fe41d8fec28f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -memcpyopt | llvm-dis | FileCheck %s
+; RUN: opt %s -memcpyopt -S | FileCheck %s
 ; These memmoves should get optimized to memcpys.
 
 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 edb2dc1747b48b421876d93ed7f37dd694834c92..28391780692b0b83d3adfc41ef02f56e07123a13 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -memcpyopt | llvm-dis | not grep {call.*memcpy}
+; RUN: opt %s -memcpyopt -S | not grep {call.*memcpy}
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
 target triple = "i686-apple-darwin9"
index 5598c250ec3c6d7ab8fe0fb700b52f417b687ce3..195c379a05ab52b374a564b5c330f262d66cba7e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -mergefunc | llvm-dis > %t
+; RUN: opt %s -mergefunc -S > %t
 ; RUN: grep {define weak} %t | count 2
 ; RUN: grep {call} %t | count 2
 
index 6ff1f6fe5845f117a588ec51bac3b4ca80b22850..237d55eff23a4bc4dd591dc555cdfa1bf5e18edc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -predsimplify | llvm-dis | grep br | grep return.i.bb8_crit_edge | grep false
+; RUN: opt %s -predsimplify -S | grep br | grep return.i.bb8_crit_edge | grep false
 @str = external global [4 x i8]                ; <[4 x i8]*> [#uses=1]
 
 declare i32 @sprintf(i8*, i8*, ...)
index 9146576ef6160dc20a05480e20d6b611a7ea9d65..5d1ebbd0bf3dd2327eed6844a5edd4b596dd25df 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llvm-as < %s | \
-; RUN:   opt -predsimplify -instcombine -simplifycfg  | llvm-dis > %t
+; RUN:   opt -predsimplify -instcombine -simplifycfg  -S > %t
 ; RUN: grep -v declare %t | not grep fail
 ; RUN: grep -v declare %t | grep pass | count 3
 
index cbc54bee21bc6c6f45bac9cb2f67fdf1b69c29d4..5412c3cca73baf742525010aef61296e3d6faf0f 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llvm-as < %s | \
-; RUN:   opt -predsimplify -instcombine -simplifycfg | llvm-dis | \
+; RUN:   opt -predsimplify -instcombine -simplifycfg -S | \
 ; RUN:   grep -v declare | grep pass | count 2
 
 define i32 @test(i32 %x, i32 %y) {
index 45bfb6f1f68c3da60fcb58f2a485ccbf78f5be08..c820ae7e8bd2bd51beca8281f7d38191468ceb8f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -predsimplify | llvm-dis | grep -v %c
+; RUN: opt %s -predsimplify -S | grep -v %c
 define void @foo(i8* %X, i8* %Y) {
 entry:
   %A = load i8* %X
index babfea7322e3aa13d6fc31731b43d4aba10ed652..29e7ae4fe501c2056485a3558226300ea78ed82c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -predsimplify | llvm-dis | grep unreachable | count 2
+; RUN: opt %s -predsimplify -S | grep unreachable | count 2
 ; PR1683
 
 @.str = internal constant [13 x i8] c"c36174a.adb\00\00"               ; <[13 x i8]*> [#uses=1]
index a6848df69e3de15468c079a64952da4e9b9718b3..ab42b491a1b0da1445df19677951d586f4365267 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llvm-as < %s | \
-; RUN:   opt -predsimplify -instcombine -simplifycfg | llvm-dis > %t
+; RUN:   opt -predsimplify -instcombine -simplifycfg -S > %t
 ; RUN: grep -v declare %t | not grep fail
 ; RUN: grep -v declare %t | grep pass | count 4
 
index 993c544488c37d1d312f4af0c01f3a2587374a30..a674baef7ce52e8de151aa1fe83d4c3ffc40a378 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -predsimplify -simplifycfg | llvm-dis | grep pass
+; RUN: opt %s -predsimplify -simplifycfg -S | grep pass
 
 define void @regtest(i32 %x) {
 entry:
index 808b5099a024874e10485f764c2ed9e738e5b7aa..2b46c76c43fc618819d1f6e5b85e52a9ee7e2a0b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -prune-eh | llvm-dis | grep invoke
+; RUN: opt %s -prune-eh -S | grep invoke
 
 declare void @External()
 
index ad009bbd757e7c895b9842aacd17e798488c3992..2d6e6357ef79007d6f766b17a4b5967933dc265e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -prune-eh | llvm-dis | not grep nounwind
+; RUN: opt %s -prune-eh -S | not grep nounwind
 
 define weak void @f() {
 entry:
index 70cd2b25591224c1b32c884f39c7fa71f8e00a1f..af215aec1da7b3808f7dd031525594d3e2caaf7e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -prune-eh | llvm-dis | not grep invoke
+; RUN: opt %s -prune-eh -S | not grep invoke
 
 define internal i32 @foo() {
        invoke i32 @foo( )
index 80608a75257a0ed7970e4bdfd1279ae5bbd2d8f8..f13fef3f0f55fa945e6c56b6be3fe1fee67d0c58 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -prune-eh | llvm-dis | not grep {ret i32}
+; RUN: opt %s -prune-eh -S | not grep {ret i32}
 
 declare void @noreturn() noreturn;
 
index 284fd6bcb5098d5fc1a87e2700025b1e3fe9512f..e081f6fe69f59ebaf0dd87b7a35999a4ae765178 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -prune-eh | llvm-dis | not grep invoke
+; RUN: opt %s -prune-eh -S | not grep invoke
 
 declare void @nounwind() nounwind
 
index 9de8204aa979a7f925b3b5157201a0a764e48924..2f96f569bcfdc7beac5687804814689443c073fc 100644 (file)
@@ -1,6 +1,6 @@
 ; This situation can occur due to the funcresolve pass.
 ;
-; RUN: opt %s -raiseallocs | llvm-dis | not grep call
+; RUN: opt %s -raiseallocs -S | not grep call
 
 declare void @free(i8*)
 
index 809378fe6854494d115648dbb66ec2fd6b5dd198..354600b7c914ec319161b2ab18615611bd017042 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -reassociate -instcombine -constprop -dce | llvm-dis | not grep add
+; RUN: opt %s -reassociate -instcombine -constprop -dce -S | not grep add
 
 define i32 @test(i32 %A) {
        %X = add i32 %A, 1              ; <i32> [#uses=1]
index 7829fa3f432607749c57040e07927889212e0583..e8bccbde28e2d58973a053ddc288b7340ec97968 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -reassociate -instcombine -constprop -die | llvm-dis | not grep 5
+; RUN: opt < %s -reassociate -instcombine -constprop -die -S | not grep 5
 
 define i32 @test(i32 %A, i32 %B) {
        %W = add i32 %B, -5             ; <i32> [#uses=1]
index 441c14569c3d34baeb627f70ad4627274666976f..c34331cb8ced52658eabfaf7734996a03c724f1c 100644 (file)
@@ -1,6 +1,6 @@
 ; With sub reassociation, constant folding can eliminate all of the constants.
 ;
-; RUN: opt %s -reassociate -constprop -instcombine -dce | llvm-dis | not grep add
+; RUN: opt %s -reassociate -constprop -instcombine -dce -S | not grep add
 
 define i32 @test(i32 %A, i32 %B) {
        %W = add i32 5, %B              ; <i32> [#uses=1]
index 96740149713315096200b7321d74bd5de3ea3253..2350911cd6a2ef7dadd5131bbc74466f0f300690 100644 (file)
@@ -1,6 +1,6 @@
 ; With sub reassociation, constant folding can eliminate the two 12 constants.
 ;
-; RUN: opt %s -reassociate -constprop -dce | llvm-dis | not grep 12
+; RUN: opt %s -reassociate -constprop -dce -S | not grep 12
 
 define i32 @test(i32 %A, i32 %B, i32 %C, i32 %D) {
        %M = add i32 %A, 12             ; <i32> [#uses=1]
index c4868aa411d59985ee18a65740d1fec9144bdd49..c7b54b0895adbb262d7687c2ccdcd7df376a286c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -reassociate -instcombine | llvm-dis |\
+; RUN: opt %s -reassociate -instcombine -S |\
 ; RUN:   grep {ret i32 0}
 
 define i32 @f(i32 %a0, i32 %a1, i32 %a2, i32 %a3, i32 %a4) {
index 738fa66717741065df649e4ec4aadc9d414f6859..c3135debaf26abbdc892ccfb6c44accbcd1352b5 100644 (file)
@@ -1,6 +1,6 @@
 ; With reassociation, constant folding can eliminate the 12 and -12 constants.
 ;
-; RUN: opt %s -reassociate -constprop -instcombine -die | llvm-dis | not grep add
+; RUN: opt %s -reassociate -constprop -instcombine -die -S | not grep add
 
 define i32 @test(i32 %arg) {
        %tmp1 = sub i32 -12, %arg               ; <i32> [#uses=1]
index 2e63bbaeca98bb7fabe1138b99f5caf37ded632a..64ca58f4e3ad90700e080a79e2f4c25080e92598 100644 (file)
@@ -1,6 +1,6 @@
 ; With reassociation, constant folding can eliminate the +/- 30 constants.
 ;
-; RUN: opt %s -reassociate -constprop -instcombine -die | llvm-dis | not grep 30
+; RUN: opt %s -reassociate -constprop -instcombine -die -S | not grep 30
 
 define i32 @test(i32 %reg109, i32 %reg1111) {
        %reg115 = add i32 %reg109, -30          ; <i32> [#uses=1]
index 0e20ad1aaec07701f761b948df6b42e54e4c020c..447e72bc0b5e7dcb60ab7afa0e1e58fe0ca32986 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -reassociate -gvn | llvm-dis | grep add | count 6
+; RUN: opt %s -reassociate -gvn -S | grep add | count 6
 ; Each of these functions should turn into two adds each.
 
 @e = external global i32               ; <i32*> [#uses=3]
index 8a4420546e21f406337e9582d48ad10105cde171..ad56339997b95db9d3a7f060378137f4b562b405 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -reassociate -gvn -instcombine | llvm-dis | not grep add
+; RUN: opt %s -reassociate -gvn -instcombine -S | not grep add
 
 @a = weak global i32 0         ; <i32*> [#uses=1]
 @b = weak global i32 0         ; <i32*> [#uses=1]
index 4284fe5e5be2ec98cf2cb38a5f97f643abb1d8e3..fecab3d22df6eabd1368761a28cdb0e5c254e054 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -reassociate -dce | llvm-dis | \
+; RUN: opt %s -reassociate -dce -S | \
 ; RUN:   not grep {\\(and\\|sub\\)}
 
 define i32 @test1(i32 %a, i32 %b) {
index 202af14c837080d2e1dc4408a4cf3e46df8b6493..aec84e6f8583f00f9f66b7c65b9870cbdf3e15b3 100644 (file)
@@ -12,7 +12,7 @@
 ; In this case, we want to reassociate the specified expr so that i+j can be
 ; hoisted out of the inner most loop.
 ;
-; RUN: opt %s -reassociate | llvm-dis | grep 115 | not grep 117
+; RUN: opt %s -reassociate -S | grep 115 | not grep 117
 ; END.
 @.LC0 = internal global [4 x i8] c"%d\0A\00"           ; <[4 x i8]*> [#uses=1]
 
index e45e431df54510ece6252f102c6575ed2c06ee25..734213d870f7b789d5d34247d6bf008486f0472e 100644 (file)
@@ -1,7 +1,7 @@
 ; This should be one add and two multiplies.
 
 ; RUN: llvm-as < %s | \
-; RUN:   opt -reassociate -instcombine | llvm-dis > %t 
+; RUN:   opt -reassociate -instcombine -S > %t 
 ; RUN: grep mul %t | count 2
 ; RUN: grep add %t | count 1
 
index 9c50954f31284b8e6a3de31396f3cf6bce2aa15b..a2d92156181e0e5264a8d5f436481ca5b93d3f0d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -reassociate -instcombine | llvm-dis |\
+; RUN: opt %s -reassociate -instcombine -S |\
 ; RUN:   not grep {sub i32 0}
 
 define i32 @test(i32 %X, i32 %Y, i32 %Z) {
index c5a471f4edb78af8b8982dc22ffcd38b17f26897..f279727c99307c558fbf1cae5404c9db10ab8554 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -reassociate -instcombine | llvm-dis | grep mul | count 2
+; RUN: opt < %s -reassociate -instcombine -S | grep mul | count 2
 
 ; This should have exactly 2 multiplies when we're done.
 
index 62a890b90b68f39da17f6f490cc122e1ae7c7672..1d0e68d2445bb4529f799dad39c98d9160923442 100644 (file)
@@ -1,7 +1,7 @@
 ; This should turn into one multiply and one add.
 
 ; RUN: llvm-as < %s | \
-; RUN:   opt -instcombine -reassociate -instcombine | llvm-dis > %t 
+; RUN:   opt -instcombine -reassociate -instcombine -S > %t 
 ; RUN: grep mul %t | count 1
 ; RUN: grep add %t | count 1
 
index 1707d57009c378f4c119d8a3126c719f5e7895a1..9403ddfb1df2a8950be9b9a24765eb1900a6155d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -reassociate -instcombine | llvm-dis | not grep sub
+; RUN: opt %s -reassociate -instcombine -S | not grep sub
 
 ; Test that we can turn things like X*-(Y*Z) -> X*-1*Y*Z.
 
index 827c7ea8f1cd94471231b53a5baab6ed0dd00827..267d3bd13c34305e13669dbe11244f1cd09186d1 100644 (file)
@@ -1,6 +1,6 @@
 ; Reassociation should apply to Add, Mul, And, Or, & Xor
 ;
-; RUN: opt %s -reassociate -constprop -instcombine -die | llvm-dis | not grep 12
+; RUN: opt %s -reassociate -constprop -instcombine -die -S | not grep 12
 
 define i32 @test_mul(i32 %arg) {
        %tmp1 = mul i32 12, %arg                ; <i32> [#uses=1]
index 05437fd866390d9157906bd76f5d37c8b74ebf3a..b84d3d9fc208286fe06f23da9caca6232670a566 100644 (file)
@@ -1,6 +1,6 @@
 ; There should be exactly one shift and one add left.
 ; RUN: llvm-as < %s | \
-; RUN:   opt -reassociate -instcombine | llvm-dis > %t  
+; RUN:   opt -reassociate -instcombine -S > %t  
 ; RUN: grep shl %t | count 1
 ; RUN: grep add %t | count 1
 
index 42b1873eedbb96a862934b0206600488579b970f..96a5e4716777c9c8471c4891c531fab0fab12312 100644 (file)
@@ -1,6 +1,6 @@
 ; With shl->mul reassociation, we can see that this is (shl A, 9) * A
 ;
-; RUN: opt %s -reassociate -instcombine | llvm-dis |\
+; RUN: opt %s -reassociate -instcombine -S |\
 ; RUN:    grep {shl .*, 9}
 
 define i32 @test(i32 %A, i32 %B) {
index 78bd0ef3b8aa290366a859efd2761ecf7e63c778..bf43cdf0b854e1e4b159df5157f3134e2c6226f6 100644 (file)
@@ -1,6 +1,6 @@
 ; With sub reassociation, constant folding can eliminate the 12 and -12 constants.
 ;
-; RUN: opt %s -reassociate -instcombine | llvm-dis | not grep 12
+; RUN: opt %s -reassociate -instcombine -S | not grep 12
 
 define i32 @test(i32 %A, i32 %B) {
        %X = add i32 -12, %A            ; <i32> [#uses=1]
index 91c3b7ff8a66464d85782204fe215e1093d4f27a..9431b9773f2fada2e9ec153481fb9fda98548b23 100644 (file)
@@ -1,6 +1,6 @@
 ; With sub reassociation, constant folding can eliminate the uses of %a.
 ;
-; RUN: opt %s -reassociate -instcombine | llvm-dis | grep %a | count 1
+; RUN: opt %s -reassociate -instcombine -S | grep %a | count 1
 ; PR2047
 
 define i32 @test(i32 %a, i32 %b, i32 %c) nounwind  {
index 2d61c6aca76122110eb9a43045a2ef53e99e6f0e..c02f6eefcfc7cc9a93151735676123817aee1f6a 100644 (file)
@@ -5,7 +5,7 @@
 ; real benchmark (mst from Olden benchmark, MakeGraph function).  When SCCP is
 ; fixed, this should be eliminated by a single SCCP application.
 ;
-; RUN: opt %s -sccp | llvm-dis | not grep loop
+; RUN: opt %s -sccp -S | not grep loop
 
 define i32* @test() {
 bb1:
index 289cafb9dbee02dbf46deec9506438dd70b711b7..e6a181170e92483e145ff3a7fc52c47e6b604750 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp | llvm-dis | not grep sub
+; RUN: opt %s -sccp -S | not grep sub
 
 define void @test3(i32, i32) {
        add i32 0, 0            ; <i32>:3 [#uses=0]
index b5dc2bc8e59ad6617a9ae9f62c78c00456178857..90776e65546f1951215c1db5cc387978e9779fb8 100644 (file)
@@ -1,7 +1,7 @@
 ; This test shows a case where SCCP is incorrectly eliminating the PHI node
 ; because it thinks it has a constant 0 value, when it really doesn't.
 
-; RUN: opt %s -sccp | llvm-dis | grep phi
+; RUN: opt %s -sccp -S | grep phi
 
 define i32 @test(i32 %A, i1 %c) {
 bb1:
index b81f6255579a87ac79d0f510c0629e652d7f8d64..39c1142cdbeb1ba75d48bce00a087e1e23144894 100644 (file)
@@ -2,7 +2,7 @@
 ; this is in fact NOT the case, so the return should still be alive in the code
 ; after sccp and CFG simplification have been performed.
 ;
-; RUN: opt %s -sccp -simplifycfg | llvm-dis | \
+; RUN: opt %s -sccp -simplifycfg -S | \
 ; RUN:   grep ret
 
 define void @old_main() {
index 32fa36ca98abff369ce93a6ba2c898006c2975c8..d6136005e63863d4e05e24e56e6e4b067bee24d4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp | llvm-dis | not grep %X
+; RUN: opt %s -sccp -S | not grep %X
 
 @G = external global [40 x i32]                ; <[40 x i32]*> [#uses=1]
 
index 6dbe97d05a230473bc20fc18041982fc5fc272bd..d9335a20c6da5667fd532321e7f5b26776f61569 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp -simplifycfg | llvm-dis | \
+; RUN: opt %s -sccp -simplifycfg -S | \
 ; RUN:   not grep then:
 
 define void @cprop_test11(i32* %data.1) {
index 57f0cf059ce29d059bd3b282e09ef07a0ebf39b4..460963d2631d7329225c603e73bf1b9c1f6bbf29 100644 (file)
@@ -1,5 +1,5 @@
 ; The PHI cannot be eliminated from this testcase, SCCP is mishandling invoke's!
-; RUN: opt %s -sccp | llvm-dis | grep phi
+; RUN: opt %s -sccp -S | grep phi
 
 declare void @foo()
 
index 983297f8ee7848d22e207e967208949a13939c10..5699ee9b5b650dc3d93db5dccf47d11a18376502 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp | llvm-dis | 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 1b1c249648fbde43b1071f38bf23830c2b7f142b..752222c6d9cdd593932bf648a5a2410396688cc0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp | llvm-dis | \
+; RUN: opt %s -sccp -S | \
 ; RUN:   grep {ret i1 false}
 
 define i1 @foo() {
index 4bcad3a5974305e1b6008e379e770886f5fe0470..6ab44acdaa4fe834faf511c46c6eb1d48932e56d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp | llvm-dis | grep undef | count 1
+; RUN: opt %s -sccp -S | grep undef | count 1
 ; PR1938
 
 define i32 @main() {
index 0f1c3806ce3e42990ddc3b9331e468f3f6f47f4a..6fdebf7d55f8b4a39587d3c23d76452cfe9de3f6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s  | opt -ipsccp | llvm-dis > %t
+; RUN: llvm-as < %s  | opt -ipsccp -S > %t
 ; RUN: grep {ret i32 36} %t
 ; RUN: grep {%mrv = insertvalue %T undef, i32 18, 0} %t
 ; RUN: grep {%mrv1 = insertvalue %T %mrv, i32 17, 1} %t
index 99f9136ea37056df16090d30721d1911a36825b2..a3b18a67b0d48296b2c901ff58a6ac2ac1cec84d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s  | opt -sccp | llvm-dis | grep {ret i32 %Z}
+; RUN: llvm-as < %s  | opt -sccp -S | grep {ret i32 %Z}
 ; rdar://5778210
 
 declare {i32, i32} @bar(i32 %A) 
index 9abe1038c1915b74cc03d7411da61ca0ffa7ae9d..879a99a54ef6b7e9963262bde1d8fbc88699909a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp | llvm-dis | not grep {ret i32 undef}
+; RUN: opt %s -sccp -S | not grep {ret i32 undef}
 ; PR2358
 target datalayout =
 "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
index 9f0b95db9eeebfdc10e843d9e10e1e89e2be5180..040aaacfcbed2e0c1fd8d4c9e5ebc1412f13d30c 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -ipsccp | llvm-dis | grep {ret i32 42}
-; RUN: opt %s -ipsccp | llvm-dis | 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 15d0f3203f78f8aad21a9193fb88a0e175345ca0..a3365fa832a4d89bdb7fec410b0694bf81610f62 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp | llvm-dis | 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 9796ad9b333e8d54d9d14f047defcd14922990d5..a7c4bf6f91d070e847b94d3d68111fd65e944182 100644 (file)
@@ -1,7 +1,7 @@
 ; This is a basic sanity check for constant propogation.  The add instruction 
 ; should be eliminated.
 
-; RUN: opt %s -sccp | llvm-dis | not grep add
+; RUN: opt %s -sccp -S | not grep add
 
 define i128 @test(i1 %B) {
        br i1 %B, label %BB1, label %BB2
index 4a173549b9af67099912a9ae3fbf0f9e44e5cc84..7ec3997f82d20b925ea8374ed4821cfc83575ddf 100644 (file)
@@ -1,8 +1,8 @@
 ; This is a basic sanity check for constant propogation.  The add instruction 
 ; and phi instruction should be eliminated.
 
-; RUN: opt %s -sccp | llvm-dis | not grep phi
-; RUN: opt %s -sccp | llvm-dis | not grep add
+; RUN: opt %s -sccp -S | not grep phi
+; RUN: opt %s -sccp -S | not grep add
 
 define i128 @test(i1 %B) {
        br i1 %B, label %BB1, label %BB2
index cc3d07389bd9da00ed31a28d8ad6ba45246cd712..f74b459a72ada2f1a66bfcb2d8ebdf4f2b8cf14a 100644 (file)
@@ -2,8 +2,8 @@
 ; arithmatic operations.
 
 
-; RUN: opt %s -sccp | llvm-dis | not grep mul
-; RUN: opt %s -sccp | llvm-dis | not grep umod
+; RUN: opt %s -sccp -S | not grep mul
+; RUN: opt %s -sccp -S | not grep umod
 
 define i128 @test(i1 %B) {
        br i1 %B, label %BB1, label %BB2
index 541412bf86b02b4ade7f0659c9339c910b9b786d..97a33f4b87dbb16455050bcf131689fe3fac41ce 100644 (file)
@@ -2,9 +2,9 @@
 ; logic operations.
 
 
-; RUN: opt %s -sccp | llvm-dis | not grep and
-; RUN: opt %s -sccp | llvm-dis | not grep trunc
-; RUN: opt %s -sccp | llvm-dis | grep {ret i100 -1}
+; 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}
 
 define i100 @test(i133 %A) {
         %B = and i133 0, %A
index 91886ffe60baebe3da875c735eac2c9785e0d79b..2539b5d0de064535d8ae1eccd48bd4894e8f61c9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp | llvm-dis | not grep %X
+; RUN: opt %s -sccp -S | not grep %X
 
 @G =  global [1000000 x i10000] zeroinitializer
 
index ebb0d0760f2eaebea5bd0dacda88c63cca4129e1..d52d51de2b39fee71616bc5e2a57352244fc327e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN:  llvm-as < %s | opt -sccp | llvm-dis | not grep xor
+; RUN:  llvm-as < %s | opt -sccp -S | not grep xor
 
 define i11129 @test1() {
         %B = shl i11129 1, 11128 
index e95e9d0abb13e23264d83e1df9e1a90876b335f1..c7a10655b901fbe88030a3831a9c2da509d48e87 100644 (file)
@@ -1,4 +1,4 @@
-; RUN:  llvm-as < %s | opt -sccp | llvm-dis | not grep load
+; RUN:  llvm-as < %s | opt -sccp -S | not grep load
 
 @Y = constant [6 x i101] [ i101 12, i101 123456789000000, i101 -12,
                            i101 -123456789000000, i101 0,i101 9123456789000000]
index eb374ff98ddd4baa739e012a691de4810c80f5b6..3b26d5b041e0d902e77244c12fdd36abc866ed6e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -ipsccp | llvm-dis | grep -v {ret i512 undef} | \
+; RUN: opt %s -ipsccp -S | grep -v {ret i512 undef} | \
 ; RUN:   grep {ret i8 2}
 
 define internal i512 @test(i1 %B) {
index e6a971d9d3f50b5c3360a885834284008b804283..9a7fc6da623b95511581a0c42f5dab8c9745227e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -ipsccp | llvm-dis | grep -v {ret i101 0} | \
+; RUN: opt %s -ipsccp -S | grep -v {ret i101 0} | \
 ; RUN:    grep -v {ret i101 undef} | not grep ret
 
 
index c07a54f8f6f873d17446aba3ecd13c5b5a4ecf9b..366895faa9e479be59d136670498f5e9ec50bb17 100644 (file)
@@ -1,4 +1,4 @@
-; RUN:  llvm-as < %s | opt -ipsccp | llvm-dis | not grep global
+; RUN:  llvm-as < %s | opt -ipsccp -S | not grep global
 
 @G = internal global i66 undef
 
index 59775471059bd899ca5bf6f408e4270f2ac73d2f..6ef6c30877f19ad3ef10bc463309fc5bea0020b8 100644 (file)
@@ -1,8 +1,8 @@
 ; This test makes sure that these instructions are properly constant propagated.
 
-; RUN: opt %s -ipsccp | llvm-dis | not grep load
-; RUN: opt %s -ipsccp | llvm-dis | not grep add
-; RUN: opt %s -ipsccp | llvm-dis | not grep phi
+; RUN: opt %s -ipsccp -S | not grep load
+; RUN: opt %s -ipsccp -S | not grep add
+; RUN: opt %s -ipsccp -S | not grep phi
 
 
 @Y = constant [2 x { i212, float }] [ { i212, float } { i212 12, float 1.0 }, 
index 66629d75ecafe4cf89340c7e2f347df4439791d3..56fdb3513f159d847a500bd6a768e113e3092b0a 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly constant propagated.
 
-; RUN: opt %s -ipsccp | llvm-dis | not grep load
-; RUN: opt %s -ipsccp | llvm-dis | not grep fdiv
+; RUN: opt < %s -ipsccp -S | not grep load
+; RUN: opt < %s -ipsccp -S | not grep fdiv
 
 @X = constant i212 42
 @Y = constant [2 x { i212, float }] [ { i212, float } { i212 12, float 1.0 }, 
index 21c998b47047dbf22e2aabcd884f3303530a13a6..50f0d1aeccbdf4ed68b6ac69d73819ba98edb5d1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp | llvm-dis | not grep phi
+; RUN: opt < %s -sccp -S | not grep phi
 
 define i999 @test(i999%A, i1 %c) {
 bb1:
index c856896be9f9d90f681f35e15cbbfe980c75caa0..57f18044f337203f6ad2b1460ef95642da8ccedb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN:  llvm-as < %s | opt -sccp | llvm-dis | not grep select
+; RUN:  llvm-as < %s | opt -sccp -S | not grep select
 
 @A = constant i32 10
 
index a0cc398dab2decc2f3d6ec238b262d853305d5bc..bc68ce44ba403084390418305bd2b844cf1e512a 100644 (file)
@@ -1,7 +1,7 @@
 ; This is a basic sanity check for constant propogation.  The add instruction 
 ; should be eliminated.
 
-; RUN: opt %s -sccp | llvm-dis | not grep add
+; RUN: opt %s -sccp -S | not grep add
 
 define i32 @test(i1 %B) {
        br i1 %B, label %BB1, label %BB2
index 3e42432548ea07fe78f38e295ae2570c79a23045..f4e0186fff4087a8f7c519296bedb6b42c5bc2a8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp -loop-deletion -simplifycfg | llvm-dis | \
+; RUN: opt %s -sccp -loop-deletion -simplifycfg -S | \
 ; RUN:   not grep br
 
 ; No matter how hard you try, sqrt(1.0) is always 1.0.  This allows the
index 525747ff6ee7e6e50848c9d2ff33f155c115c2f6..185d70fd41e2d8715a0ce7f32f1af5fbb77fca66 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -ipsccp | llvm-dis | \
+; RUN: opt %s -ipsccp -S | \
 ; RUN:   grep -v {ret i32 17} | grep -v {ret i32 undef} | not grep ret
 
 define internal i32 @bar(i32 %A) {
index cbeee601db94bb0cd1529fb2468bd7332acb6bd1..1c48c6aaf453ab9e960f06a87219cdb4fdf6af1b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -ipsccp | llvm-dis | \
+; RUN: opt %s -ipsccp -S | \
 ; RUN:   grep -v {ret i32 0} | grep -v {ret i32 undef} | not grep ret
 
 define internal i32 @bar(i32 %A) {
index 7dbb86a863eeb72fdc9b8fcd298e9b0a9ebb1943..e83574fdaeb2ada76d73d58a2723743c33e20f9c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -ipsccp | llvm-dis | not grep global
+; RUN: opt %s -ipsccp -S | not grep global
 
 @G = internal global i32 undef         ; <i32*> [#uses=5]
 
index 172f3d253495f27cb74c419df1a349e7afe2db54..fd82aef821ff6621ae2933f300f86acc95de1c2e 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly constant propagated.
 ;
 
-; RUN: opt %s -sccp | llvm-dis | not grep load
+; RUN: opt < %s -sccp -S | not grep load
 
 
 @X = constant i32 42           ; <i32*> [#uses=1]
index 15eb1954794319e57cbcca119d0b8635c33919c1..b1c234eff1cfd98285cd51bc59aa576f758d8da9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp | llvm-dis | 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 9946a88eeeef3edc60c7722abc8df09656fad066..616307d6e6715940514d1cae929179493d4f8580 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp -dce -simplifycfg | llvm-dis | \
+; RUN: opt %s -sccp -dce -simplifycfg -S | \
 ; RUN:   not grep br
 
 define i32 @test(i32 %param) {
index 1e0fc4840164b3c34b78de907d7d9c0b764c233b..b2f1dd2d0f231b35f9b3af3a0b68ee86babfa779 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp | llvm-dis | not grep select
+; RUN: opt < %s -sccp -S | not grep select
 
 define i32 @test1(i1 %C) {
        %X = select i1 %C, i32 0, i32 0         ; <i32> [#uses=1]
index 8a1a07e0885aa28e55d30691a30378d0e40e2304..7697085d16df27b646646617894810ef53fcc649 100644 (file)
@@ -5,7 +5,7 @@
 
 ; We're mainly testing for opt not to crash, but we'll check to see if the sret
 ; attribute is still there for good measure.
-; RUN: opt %s -sretpromotion | llvm-dis | grep sret
+; RUN: opt %s -sretpromotion -S | grep sret
 
 %struct.S = type <{ i32, i32 }>
 
index e4ea12423fb17f8288728b2ceae6996d90e181b5..69e2021513c7e36226a121907f99a3e59b0a3afb 100644 (file)
@@ -4,7 +4,7 @@
 
 ; We're mainly testing for opt not to crash, but we'll check to see if the sret
 ; attribute is still there for good measure.
-; RUN: opt %s -sretpromotion | llvm-dis | grep sret
+; RUN: opt %s -sretpromotion -S | grep sret
 
 %struct.S = type <{ i32, i32 }>
 
index df84021059d8d128288f989990850a05cb5a3a03..97e6e49dcae42607d8d8a9d0f7c0ebccf22b9a6f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sretpromotion | llvm-dis > %t
+; RUN: opt %s -sretpromotion -S > %t
 ; RUN: cat %t | grep sret | count 1
 
 ; This function is promotable
index 54efe58cce286c71f5cb4295ad69f3c80d236781..146ea9db440b5879e8f68cdcb266ec30c7733db4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -ssi-everything | llvm-dis | FileCheck %s
+; RUN: opt %s -ssi-everything -S | FileCheck %s
 
 declare void @use(i32)
 declare i32 @create()
index 6171ae3075280a29659971ad8c8c5de17766e95d..51f1f3d7560a8f2d4ef5dec7a9e87f868fb613c4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl -instcombine | llvm-dis | not grep alloca
+; RUN: opt %s -scalarrepl -instcombine -S | not grep alloca
 
 ; Test that an array is not incorrectly deconstructed.
 
index 54dc693e4a8d974dcbe624d3aba137e14d727cb6..7b921b7029c8030e6f08320f2be38ab9b44d0372 100644 (file)
@@ -1,6 +1,6 @@
 ; Scalar replacement was incorrectly promoting this alloca!!
 ;
-; RUN: opt %s -scalarrepl | llvm-dis | \
+; RUN: opt %s -scalarrepl -S | \
 ; RUN:   sed {s/;.*//g} | grep {\\\[}
 
 define i8* @test() {
index ae65933f014ceb97f8a52902b338f49cfe87114b..2acf2afd4531a6acc2871ae8d001780847977adf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis | grep {alloca %T}
+; RUN: opt %s -scalarrepl -S | grep {alloca %T}
 
 %T = type { [80 x i8], i32, i32 }
 declare i32 @.callback_1(i8*)
index ab9a15b64bfc96b6ae81df90ed8bc1af9167f382..2288c6d51244b460a6600c0b818269dce3085752 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca
+; RUN: opt %s -scalarrepl -S | not grep alloca
 
 define i32 @func(<4 x float> %v0, <4 x float> %v1) nounwind {
        %vsiidx = alloca [2 x <4 x i32>], align 16              ; <[2 x <4 x i32>]*> [#uses=3]
index 7a8532ca0c78840997c8733e963957211baba7f9..b0844852bba5d0e8ef0a1899b7726b3191380e88 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis | grep {alloca.*client_t}
+; RUN: opt %s -scalarrepl -S | grep {alloca.*client_t}
 ; PR1446
 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 2d443717c60f2729602f34ed120560ff16e8665a..fcf6dbb090e82e3ab991517ad623b0b8ccb63f1f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis | grep memcpy
+; RUN: opt %s -scalarrepl -S | grep memcpy
 ; PR1421
 
 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 d66181adc9518b81c85e987752e13b320845b33a..55d6cf7cc8fe8cd98d4f5555ebf91575b53a7945 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis | not grep shr
+; RUN: opt %s -scalarrepl -S | not grep shr
 
 %struct.S = type { i16 }
 
index ac58f9c073983d2ccff0affb96c8bc2c4337c4af..5fcf4a1f4f74dc97080abee1ca74e70ca9876f6a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl -instcombine | llvm-dis | 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"
 target triple = "i386-apple-darwin9.1.0"
index 86b91309f36c2ddc98a0a256595a441d9bd81fb1..62d791550e0e600942fc74398eafc8eba292f33f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca
+; RUN: opt %s -scalarrepl -S | not grep alloca
 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"
        %struct..0anon = type { <1 x i64> }
index 780447bc2c0140077681cad24bb4bb0116fa90be..323236d7509d199da3aed0eea9b6deb1867c6f61 100644 (file)
@@ -3,7 +3,7 @@
 ; instruction, which was not possible before aggregrates were first class
 ; values. This checks of scalarrepl splits up the struct and array properly.
 
-; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca
+; RUN: opt %s -scalarrepl -S | not grep alloca
 
 define i32 @foo() {
        %target = alloca { i32, i32 }           ; <{ i32, i32 }*> [#uses=1]
index f6bf52e4f8473f98b9882be1b847995bb29e02b6..813ff9c51138431dbf6b1601d29e6040963c6f0a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis | 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 4122f2536ca61a7b3105531ca220ce4b44e2ce94..414bf2d972ccac4f986d1ce48bfd457e15b393dc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis | 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 0215e5bba831a7cf2595fd884abfe3ac4e7c8c9e..80a86b117e7b73a806543bd5c46afe78e2aed111 100644 (file)
@@ -3,7 +3,7 @@
 ; this would not work when there was a vector involved in the struct, preventing
 ; scalarrepl from removing the alloca below.
 
-; RUN: opt %s -scalarrepl | llvm-dis > %t
+; RUN: opt %s -scalarrepl -S > %t
 ; RUN: cat %t | not grep alloca
 
 %struct.two = type <{ < 2 x i8 >, i16 }>
index 37bb85c0f616c62bd56b7247a68f4705b171e604..3b57856f6a5b8f02c83e59dbca86046468f8a683 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl -instcombine | llvm-dis | 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 833bbbdf02e7fc96a4a667fe12e94ab50f6fbe4c..fa49c4f860625917496fed930325b9d164cfb135 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl -instcombine -inline -instcombine | llvm-dis | 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 b0848ab5986e0cb090f2da8edcc4a5817f24f576..487997355172b08e60893f9762174dc7df91bcd6 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 | llvm-dis | grep {store i16 1, .*, align 1}
+; RUN: opt %s -scalarrepl -S | grep {store i16 1, .*, align 1}
 ; PR3720
 
         %struct.st = type { i16 }
index 55ba33afbc3cb9fc764b70b4dde3dda732927d66..fed26ad532d7e09538cf7569c8122ff52828f141 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis | grep store | not grep undef
+; RUN: opt %s -scalarrepl -S | grep store | not grep undef
 
 ; ModuleID = '<stdin>'
 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 6b8a50bee5dd581de9fbeacf87ca5a5be2252409..581421ef878297439f9e0f7a58779384fc28fad0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis | \
+; RUN: opt %s -scalarrepl -S | \
 ; RUN:   not grep alloca
 
 target datalayout = "E-p:32:32"
index 0bcd38d5ef0f4f72b63b3e9f95d53d9df5809fa2..adc411324142b7e982ba3353dbf17024c1d73477 100644 (file)
@@ -1,7 +1,7 @@
 ; This is a feature test.  Hopefully one day this will be implemented.  The 
 ; generated code should perform the appropriate masking operations required 
 ; depending on the endianness of the target...
-; RUN: opt %s -scalarrepl | llvm-dis | \
+; RUN: opt %s -scalarrepl -S | \
 ; RUN:   not grep alloca
 
 define i32 @testfunc(i32 %i, i8 %j) {
index 4499f67bc4fd0226c3368baf2cea4dd6533cf33e..849b4d59bde206095222d4d91e8ad1b01af140aa 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl -mem2reg | llvm-dis | not grep alloca
+; RUN: opt %s -scalarrepl -mem2reg -S | not grep alloca
 
 define i32 @test() {
        %X = alloca [4 x i32]           ; <[4 x i32]*> [#uses=1]
index 686c13714f32a39ef61bc35ae566a97b85903e83..92191d45e6352f90fb95ff174fdb293b296d0cc8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl -instcombine | llvm-dis | not grep alloca
+; RUN: opt %s -scalarrepl -instcombine -S | not grep alloca
 ; PR3466
 
 define i32 @test() {
index 7e5998b052ae1febaa930c9bb9d04ce15a96174c..84baf07d2526d42288ba04a00fde0b118a29e212 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl -mem2reg | llvm-dis | not grep alloca
+; RUN: opt %s -scalarrepl -mem2reg -S | not grep alloca
 
 define i32 @test() {
        %X = alloca { i32, float }              ; <{ i32, float }*> [#uses=1]
index 54fe08e486a0f8d42549b30b6e61aeb1d8d9e36d..2d9e5696ea279306a3ffb061288e7d9f3c6dd1d4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca        
+; RUN: opt %s -scalarrepl -S | not grep alloca        
 ; rdar://6532315
 %t = type { { i32, i16, i8, i8 } }
 
index c98e03d76818b48603d3149313afeebe83f939ed..17534cf937dc984e75b85017022aad1f5ad813de 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca
+; RUN: opt %s -scalarrepl -S | not grep alloca
 ; PR3290
 
 ;; Store of integer to whole alloca struct.
index 8484a34e78091d806909d49f87a750bd80c41b59..6c6a396644b822274a25bf42a4b44e58ef474681 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca
+; RUN: opt %s -scalarrepl -S | not grep alloca
        %llvm.dbg.anchor.type = type { i32, i32 }
        %llvm.dbg.basictype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, i32 }
        %llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8*, i1, i1, i8* }
index f6f9cbf022116c49201e31294132a3c1fd38f557..7990b3158d6db61b0cc5e5d860edd70583ef474a 100644 (file)
@@ -2,7 +2,7 @@
 ; are directly loaded from or stored to (using the first class aggregates
 ; feature).
 
-; RUN: opt %s -scalarrepl | llvm-dis > %t
+; RUN: opt %s -scalarrepl -S > %t
 ; RUN: cat %t | not grep alloca
 
 %struct.foo = type { i32, i32 }
index 111b2933f0245b750309c6f38c0172965c4f3f1f..e5bf52289a93c769df29184f93929d2fa3e77a24 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis | not grep {call.*memcpy}
+; RUN: opt %s -scalarrepl -S | not grep {call.*memcpy}
 @C.0.1248 = internal constant [128 x float] [ float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float -1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 0.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float -1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00 ], align 32               ; <[128 x float]*> [#uses=1]
 
 define float @grad4(i32 %hash, float %x, float %y, float %z, float %w) {
index 1ec67c5138e1592aa57d1e615b13b2035a9a6762..44f094c7c0b8fbec3a6594f4f86cf54defd8c7b3 100644 (file)
@@ -1,7 +1,7 @@
 ; PR1226
-; RUN: opt %s -scalarrepl | llvm-dis | \
+; RUN: opt %s -scalarrepl -S | \
 ; RUN:   not grep {call void @llvm.memcpy.i32}
-; RUN: opt %s -scalarrepl | llvm-dis | grep getelementptr
+; RUN: opt %s -scalarrepl -S | grep getelementptr
 ; END.
 
 target datalayout = "E-p:32:32"
index 0e1f025d92ace763002b0fbe570dcb331b7704ee..c4685bd2264b98b9fabc73efa77e5c667cc1b597 100644 (file)
@@ -1,7 +1,7 @@
 ; PR1226
-; RUN: opt %s -scalarrepl | llvm-dis | grep {ret i32 16843009}
-; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca
-; RUN: opt %s -scalarrepl -instcombine | llvm-dis | grep {ret i16 514}
+; 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}
 
 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 f89ac613e67286e27a43c4a43185c3b238a9ec19..e64d7d901c1c40c58ab4bbed94069fd805e67cdd 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca
-; RUN: opt %s -scalarrepl | llvm-dis | not grep {7 x double}
-; RUN: opt %s -scalarrepl -instcombine | llvm-dis | grep {ret double %B}
+; 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}
 
 define double @test(double %A, double %B) {
        %ARR = alloca [7 x i64]
index c8ec35f30b45f141cd29610c85a1a7b9189be5b1..c6f2525857c463633160bb1206656ed289ea8e5a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg -instcombine -mem2reg | llvm-dis | not grep alloca
+; RUN: opt %s -simplifycfg -instcombine -mem2reg -S | not grep alloca
 ;
 ; This tests to see if mem2reg can promote alloca instructions whose addresses
 ; are used by PHI nodes that are immediately loaded.  The LLVM C++ front-end
index 5cbeea7b91f3389fc86effebca6bda04064540f1..bcf84094840783721c212e44a659dfbc38dbbad1 100644 (file)
@@ -1,7 +1,7 @@
 ; Test promotion of loads that use the result of a select instruction.  This
 ; should be simplified by the instcombine pass.
 
-; RUN: opt %s -instcombine -mem2reg | llvm-dis | not grep alloca
+; RUN: opt %s -instcombine -mem2reg -S | not grep alloca
 
 define i32 @main() {
        %mem_tmp.0 = alloca i32         ; <i32*> [#uses=3]
index 7c3821c3a1a15ba8ece37908271f00fb570f5c2d..e77c3ac12c42d9b673d2c914fd1971b3b98fe6e6 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -scalarrepl | llvm-dis | \
+; RUN: opt %s -scalarrepl -S | \
 ; RUN:   not grep alloca
-; RUN: opt %s -scalarrepl | llvm-dis | \
+; RUN: opt %s -scalarrepl -S | \
 ; RUN:   grep {bitcast.*float.*i32}
 
 define i32 @test(float %X) {
index df68951d9013e8a859cb553c20470d2781bef3f8..7ba619f9f014de2657b6b6057d36818c819e43ca 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt %s -scalarrepl | llvm-dis | \
+; RUN: opt %s -scalarrepl -S | \
 ; RUN:   not grep alloca
-; RUN: opt %s -scalarrepl | llvm-dis | \
+; RUN: opt %s -scalarrepl -S | \
 ; RUN:   grep bitcast
 
 define <4 x i32> @test(<4 x float> %X) {
index f6b9eb89e67dcddf408c268fe8488e12b54a40be..33075f5aad9d0bde74aee4db3dbcd57d871f69ee 100644 (file)
@@ -1,7 +1,7 @@
 ; PR892
-; RUN: opt %s -scalarrepl | llvm-dis | \
+; RUN: opt %s -scalarrepl -S | \
 ; RUN:   not grep alloca
-; RUN: opt %s -scalarrepl | llvm-dis | grep {ret i8}
+; RUN: opt %s -scalarrepl -S | grep {ret i8}
 
 target datalayout = "e-p:32:32"
 target triple = "i686-apple-darwin8.7.2"
index 6032dd376eba0775bc52795eb90429e9367120f7..8df27ffbcb7fe3c7e64289a35987363eb210f065 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl | llvm-dis > %t
+; RUN: opt %s -scalarrepl -S > %t
 ; RUN: grep {ret <16 x float> %A} %t
 ; RUN: grep {ret <16 x float> zeroinitializer} %t
 
index a8f326e22134ca0e1b892c3cf21eebcdd64218c5..597400d1cc4a9730be94e8eeb6215ac407fa867a 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca
-; RUN: opt %s -scalarrepl | llvm-dis | grep {load <4 x float>}
+; RUN: opt %s -scalarrepl -S | not grep alloca
+; RUN: opt %s -scalarrepl -S | grep {load <4 x float>}
 
 define void @test(<4 x float>* %F, float %f) {
 entry:
index 45427613876a2d5e52bc515c32c41d97e212f2b3..3cbcaf30ed39cf32d7828ef83841aca57071edd3 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -scalarrepl | llvm-dis | grep {volatile load}
-; RUN: opt %s -scalarrepl | llvm-dis | grep {volatile store}
+; RUN: opt %s -scalarrepl -S | grep {volatile load}
+; RUN: opt %s -scalarrepl -S | grep {volatile store}
 
 define i32 @voltest(i32 %T) {
        %A = alloca {i32, i32}
index cd6d924f446d1f3fa67e884348b0e37885b038eb..eadafdb2e3264eeb290e48d7bc6d714dbbabafd5 100644 (file)
@@ -1,6 +1,6 @@
 ; Basic block #2 should not be merged into BB #3!
 ;
-; RUN: opt %s -simplifycfg | llvm-dis | \
+; RUN: opt %s -simplifycfg -S | \
 ; RUN:   grep {br label}
 ;
 
index f8e7e40d88ae4119b3401e21ba16a785f892fc9e..8217e8bd0843ee79d5d6b1bf00ae0218b187082e 100644 (file)
@@ -1,7 +1,7 @@
 ; -simplifycfg is not folding blocks if there is a PHI node involved.  This 
 ; should be fixed eventually
 
-; RUN: opt %s -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -simplifycfg -S | not grep br
 
 define i32 @main(i32 %argc) {
 ; <label>:0
index 8de559ca55d188cfa9f87845914b352283a87b31..610f7b55a6065bfd2a82d1793f41c8d829c84223 100644 (file)
@@ -1,6 +1,6 @@
 ; Do not remove the invoke!
 ;
-; RUN: opt %s -simplifycfg | llvm-dis | grep invoke
+; RUN: opt %s -simplifycfg -S | grep invoke
 
 define i32 @test() {
        invoke i32 @test( )
index 63fdb4adcf28c80893013d20245fd1a290c8946b..018d21f7cc02948e6cca817a5f1873d602b44cb3 100644 (file)
@@ -1,7 +1,7 @@
 ; This test checks to make sure that 'br X, Dest, Dest' is folded into 
 ; 'br Dest'
 
-; RUN: opt %s -simplifycfg | llvm-dis | \
+; RUN: opt %s -simplifycfg -S | \
 ; RUN:   not grep {br i1 %c2}
 
 declare void @noop()
index 1fd265502b89fd42141e72f556edcad0427ab55f..ebcbe2be6e7ea24c36ae937b6b7274edd640b841 100644 (file)
@@ -3,7 +3,7 @@
 ; due to the fact that the SimplifyCFG function does not use 
 ; the ConstantFoldTerminator function.
 
-; RUN: opt %s -simplifycfg | llvm-dis | \
+; RUN: opt %s -simplifycfg -S | \
 ; RUN:   not grep {br i1 %c2}
 
 declare void @noop()
index abd260cfd8a80babc3ddffa47032ac2e54cb1da1..90a521a37cea876cef898592af1607b8da751cc9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | \
+; RUN: opt %s -simplifycfg -S | \
 ; RUN:   not grep switch
 
 
index f4e17e91053d286fd6469c9391f3989d2e76749c..8ba0ae99864d9302a0d59711ecd6c8a02c64394c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | \
+; RUN: opt %s -simplifycfg -S | \
 ; RUN:   not grep switch
 
 ; Test normal folding
index 02ce47c113345a6aabf1e2d2d9ceb798435497b4..5e54b4fe30cda98169c1e310549f4f41ccb6a1fe 100644 (file)
@@ -1,5 +1,5 @@
 ; PR957
-; RUN: opt %s -simplifycfg | llvm-dis | \
+; RUN: opt %s -simplifycfg -S | \
 ; RUN:   not grep select
 
 @G = extern_weak global i32
index c3c9f322b6c29fefd2d207673ded2a172a127e61..9f01d85c2a3c760fb7cb3debbb5a06d7765eade0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep invoke
+; RUN: opt %s -simplifycfg -S | not grep invoke
 
 declare i32 @func(i8*) nounwind
 
index 966c91d1f28a9d65e1b664b616992755714c0eb0..194d2a57cac5467a2aab3ffe93dbf49a6292eed7 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 | llvm-dis | 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 d3bc1306b555d72ee22d4341f2bd53078b5b8b01..377c58466419313327b51cbec815f085f134c0e6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis > %t
+; RUN: opt %s -simplifycfg -S > %t
 ; RUN: not grep {^BB.tomerge} %t
 ; RUN  grep {^BB.nomerge} %t | count 2
 
index fd40be79bc37012a5502d92554e9c1c92c74c5be..0b01c44d2c1c708f9fd4515f5d265aa1dc260363 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | 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 3a48f8cb781115442cd0f8543a2379ee37db569a..7ad0c4b65ae3efde75face392272c3968b485d4c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep icmp
+; RUN: opt %s -simplifycfg -S | not grep icmp
 ; ModuleID = '/tmp/x.bc'
 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-pc-linux-gnu"
index b9411a0f1796717a35f7086d231a60ed346e5357..1fefa0868a640be5840946d0a6b9bde2e86e811a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | grep {br i1 } | count 4
+; RUN: opt %s -simplifycfg -S | grep {br i1 } | count 4
 ; PR3354
 ; Do not merge bb1 into the entry block, it might trap.
 
index 0d6f8e0edcab4c6cb361b5c8fe8f7ef050c65ba3..617cdfb53b8b1dd5cb3e48a133e0aef438da302d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | grep select
+; RUN: opt %s -simplifycfg -S | grep select
         %llvm.dbg.anchor.type = type { i32, i32 }
         %llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8*, i1, i1, i8* }
 
index 1088a0fbe124533130d43c1a611fa3e94777845a..9d71dd8c46dfae8f21e18a68b1ef1d9646aa6439 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep select
+; RUN: opt %s -simplifycfg -S | not grep select
 ; ModuleID = '<stdin>'
 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-darwin10.0"
index c9718978310fe85c438b9420a4f0f636dd57b349..3afb6b262b5cabcd10edc4fd1e02ba6f8a9de881 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | \
+; RUN: opt %s -simplifycfg -S | \
 ; RUN: not grep {br label}
 
 define void @test(i1 %C) {
index 9eed20de0ba3d0758b41f4981c2f414ec1f5b826..6bc54abce90fb484872ef48ef2512116fa6a3f21 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | \
+; RUN: opt %s -simplifycfg -S | \
 ; RUN:   not grep {icmp eq}
 
 ; Check that simplifycfg deletes a dead 'seteq' instruction when it
index 1c174bfe0f5a555b061d1963fc105a1d08e4699d..8104715fcab3f32ee29abfc2a36242045e64ea96 100644 (file)
@@ -1,6 +1,6 @@
 ; Test merging of blocks with phi nodes.
 ;
-; RUN: opt %s -simplifycfg | llvm-dis | not grep N:
+; RUN: opt %s -simplifycfg -S | not grep N:
 ;
 
 define i32 @test(i1 %a) {
index 008aea701a9845ff617bf975b4f2ea6f2b428090..f52d1607148022eeba06e5be6d22dfafc131fa03 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -simplifycfg -S | not grep br
 
 define void @foo(i1 %C, i32* %P) {
         br i1 %C, label %T, label %F
index e56b9712ed55f0ebd5525153557b02b8f19d46de..1e746c421f37ddae9d19c86adec8f2eb7dcb45ce 100644 (file)
@@ -3,7 +3,7 @@
 
 ; If this test is successful, the function should be reduced to 'call; ret'
 
-; RUN: opt %s -simplifycfg | llvm-dis | \
+; RUN: opt %s -simplifycfg -S | \
 ; RUN:   not egrep {\\(invoke\\)|\\(br\\)}
 
 declare void @bar()
index 98453703da8bf564af45c948cb5777ac6db743bb..3ef1fe2969d3ea1b11c37dbd378482cc34798392 100644 (file)
@@ -1,6 +1,6 @@
 ; Test merging of blocks that only have PHI nodes in them
 ;
-; RUN: opt %s -simplifycfg | llvm-dis | not grep N:
+; RUN: opt %s -simplifycfg -S | not grep N:
 ;
 
 define i32 @test(i1 %a, i1 %b) {
index f6e91d44c406dea5ced0696d9fd8c1c1edd299d0..89a7e598b99b66a699e8c69223d73cff4d7acb36 100644 (file)
@@ -2,7 +2,7 @@
 ; where the mergedinto block doesn't have any PHI nodes, and is in fact 
 ; dominated by the block-to-be-eliminated
 ;
-; RUN: opt %s -simplifycfg | llvm-dis | not grep N:
+; RUN: opt %s -simplifycfg -S | not grep N:
 ;
 
 declare i1 @foo()
index 3b7a69d82f43c8f1a512baddbe8b5ff07ae99ab5..a877a1f1a2504469dfe82fb61c102a863a15b843 100644 (file)
@@ -3,7 +3,7 @@
 ; nodes away allows the branches to be eliminated, performing a simple form of
 ; 'if conversion'.
 
-; RUN: opt %s -simplifycfg | llvm-dis > %t.xform
+; RUN: opt %s -simplifycfg -S > %t.xform
 ; RUN:   not grep phi %t.xform 
 ; RUN:   grep ret %t.xform
 
index 80769ed6f7677a564e68c416323a0548e064aba4..c0270e4b29b85cb501d66cdc0125da07fb70cd40 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -simplifycfg -S | not grep br
 
 define i32 @test(i1 %C, i32 %V1, i32 %V2) {
 entry:
index 9470ca86ee6894851a3868a7808fd703d43dd6c7..ccca831e09959801ceacfe28c708977f362d8075 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | \
+; RUN: opt %s -simplifycfg -S | \
 ; RUN:   not grep select
 
 ;; The PHI node in this example should not be turned into a select, as we are
index 581df09f0072817081a701d59b17d63ed4f7d9c7..891b566f3ab527c02359cbf719379325afeab29e 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -simplifycfg  | llvm-dis | grep select
-; RUN: opt %s -simplifycfg  | llvm-dis | grep br | count 2
+; RUN: opt %s -simplifycfg  -S | grep select
+; RUN: opt %s -simplifycfg  -S | grep br | count 2
 
 define i32 @t2(i32 %a, i32 %b, i32 %c) nounwind  {
 entry:
index 7d282ab6a279d19e13bae132c78096fe8ec0ab9e..bbc8619b00622286e0c7ec7c918240b6141d2397 100644 (file)
@@ -2,7 +2,7 @@
 ; a PHI node and a return.  Make sure the simplify cfg can straighten out this
 ; important case.  This is basically the most trivial form of tail-duplication.
 
-; RUN: opt %s -simplifycfg | llvm-dis | \
+; RUN: opt %s -simplifycfg -S | \
 ; RUN:    not grep {br label}
 
 define i32 @test(i1 %B, i32 %A, i32 %B.upgrd.1) {
index 9c7a79e51f75b31591509088af49c0aae4064979..a9623efee81d04de4ea8acd115cf7475e3cf7a11 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep unreachable
+; RUN: opt %s -simplifycfg -S | not grep unreachable
 
 define void @test1(i1 %C, i1* %BP) {
         br i1 %C, label %T, label %F
index 996d31e5f3b4de25c68553f498a7e17dd99d0fc1..0bf5b5eed4b4f4b8fe132f26f279bc3629fa4422 100644 (file)
@@ -1,6 +1,6 @@
 ; Test CFG simplify removal of branch instructions...
 ;
-; RUN: opt %s -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -simplifycfg -S | not grep br
 
 define void @test1() {
         br label %BB1
index 443a925ec8bb98e428c7dc4e8922ad4d50890c69..8769f7954ef336854bf53eb830ff4d3db785474b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | grep {br i1} | count 1
+; RUN: opt %s -simplifycfg -S | grep {br i1} | count 1
 
 ; ModuleID = '<stdin>'
 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 8d5cdc57bb7e6fefe5c81839182f169782414231..1ba6226200165d1d11b1a3b78cf96203400908f1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep call
+; RUN: opt %s -simplifycfg -S | not grep call
 
 declare void @bar()
 
index b575f5ba75dedc18d8a71cd399c7857926319af6..460f2456d8ce6b470d39d6aaabd700ccdc977cac 100644 (file)
@@ -1,7 +1,7 @@
 ; This test ensures that the simplifycfg pass continues to constant fold
 ; terminator instructions.
 
-; RUN: opt %s -simplifycfg | llvm-dis | not grep br
+; RUN: opt < %s -simplifycfg -S | not grep br
 
 define i32 @test(i32 %A, i32 %B) {
 J:
index 40f59df62ec818759729cf4f1ec6f5044a778f8d..c3d51c19df47fb621e0c666a9e976581a7c10ecf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | grep {br i1} | count 1
+; RUN: opt %s -simplifycfg -S | grep {br i1} | count 1
 
 define void @test(i32* %P, i32* %Q, i1 %A, i1 %B) {
         br i1 %A, label %a, label %b
index 5288f7cfb6c7081c950a3433c718a3dbe4d3ffbd..1d926d58dd75f4b002cb7cb30ead7eb1b0c51c14 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg -adce | llvm-dis | \
+; RUN: opt %s -simplifycfg -adce -S | \
 ; RUN:   not grep {call void @f1}
 ; END.
 
index 618657ff5dfe64b2b04e1b9a534fded5f4c17043..c91a87ef0838d35bd2c5d0d2847dc521bc72e425 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep br
+; RUN: opt < %s -simplifycfg -S | not grep br
 ; END.
 
         %llvm.dbg.anchor.type = type { i32, i32 }
index 40499011ef3052d33315582bbb280df12def7935..c9b7b86e2190c6f9a93e3c53dc6b594dbeb70181 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep "br label"
+; RUN: opt %s -simplifycfg -S | not grep "br label"
 
        %llvm.dbg.anchor.type = type { i32, i32 }
        %llvm.dbg.basictype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, i32 }
index 0122fb8962d11da598f1a9a0d314caf2f4a1018a..9a73cbc5a76816a22121b7c360a6d8db009abbf9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -simplifycfg -S | not grep br
 
 
         %llvm.dbg.anchor.type = type { i32, i32 }
index 6ab699158c89b59638fdff84ef76fb6682514c6c..3568571bf8c4883e7f87bbdbc1919974241f6e16 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -simplifycfg -S | not grep br
 
 declare void @bar(i32)
 
index f752458d55a9dd81bc647d1741959ef62aae1df9..5f5a1b047492b4c1f0aebde08cc89555c3bcfe7c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep bb17
+; RUN: opt %s -simplifycfg -S | not grep bb17
 ; PR1786
 
 define i32 @main() {
index 50d5102eac2e78523a721eb9857bc98890890f2a..16cebc2e313e792f096b6c581431f7835f4749e6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | grep unreachable
+; RUN: opt %s -simplifycfg -S | grep unreachable
 ; PR1796
 
 declare void @Finisher(i32) noreturn
index a3756467f41fa6eed678c040b826cb429b740b32..ddc791d91e97409b28828e63406b2402ae76a962 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -simplifycfg -S | not grep br
 
 define i32 @test1(i1 %C) {
 entry:
index 6c473d62aa4cc691ede64b7a1cdb6ca5d09a5349..5df9210e16e563c0dd1361158e689453365fd9f1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -simplifycfg -S | not grep br
 
 declare void @foo1()
 
index b8e9574ccba6c666b217b6817680ef7aec736664..9b4b4ae6d0ecb977d45c6a9bfd2fd5846c406d67 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -simplifycfg -S | not grep br
 ; END.
 
 
index fb3f11288c4b56008a289f6b92050f38d34b9199..6eea141e6d09d30e66e2b11bc74f9b193c8c7b56 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -simplifycfg -S | not grep br
 ; END.
 
 define i1 @_ZN4llvm11SetCondInst7classofEPKNS_11InstructionE({ i32, i32 }* %I) {
index c30f0c0667eceb35c3dd7e8a3a8a9b89a98c5418..2e2e31014017cedb0021d179eb5236df25f1b250 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | \
+; RUN: opt < %s -simplifycfg -S | \
 ; RUN:   grep switch | count 1
 
 ; Test that a switch going to a switch on the same value can be merged.   All 
index 778705dba47929473b56f1c4e1d4508a7cd8f3b4..7d7391af1b901ee3285e2426125b4e4fffdda8cb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | \
+; RUN: opt < %s -simplifycfg -S | \
 ; RUN:   grep switch | count 1
 
 ; ModuleID = '<stdin>'
index c94f52c980ea88965d6bb5bc6d9fc027dd953d02..eff4717cc24c6170e90efffc5a36c1a0a6a2d5f6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | \
+; RUN: opt %s -simplifycfg -S | \
 ; RUN:   not grep {call void @DEAD}
 
 ; Test that we can thread a simple known condition through switch statements.
index 8c856c7335ebc62f9e1a2e1975b33782403df453..1596f0e03698c375c638fb3d4914738128f874b6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | grep {volatile load}
+; RUN: opt %s -simplifycfg -S | grep {volatile load}
 ; PR2967
 
 target datalayout =
index 3748ef651b2e56cc39a06ade205224800974dd78..ff85810c76de88ea6f12346d2283a0f0cf7f7661 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -simplifycfg -S | not grep br
 
         %llvm.dbg.anchor.type = type { i32, i32 }
         %llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8*, i1, i1, i8* }
index ff9d45ef1bfc5b65814159b7d2c8396dec432a43..f28c8c97ebfcbcf0faab413060d1d75cdfe78f6d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg | llvm-dis | not grep br
+; RUN: opt %s -simplifycfg -S | not grep br
 
 define i1 @qux(i8* %m, i8* %n, i8* %o, i8* %p) nounwind  {
 entry:
index b1cf0a5180811bd0fa808ef3741e20eec04be15a..9b3cc59e6fd24521f48569a7c9b45fc3fad129c7 100644 (file)
@@ -1,5 +1,5 @@
 ; PR1307
-; RUN: opt %s -simplify-libcalls -instcombine | llvm-dis > %t
+; 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
index 2415c87a0d26e511b4dca32236b21e18695ff3c9..6b8574c75e6600124fcbc6dd362f76079b774202 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplify-libcalls | llvm-dis | grep i32
+; RUN: opt %s -simplify-libcalls -S | grep i32
 ; PR2341
 
 @_2E_str = external constant [5 x i8]          ; <[5 x i8]*> [#uses=1]
index 52fe14636108b4e7a2ff6bc70c89fb975e0ab770..1b6a6b4ca8131d197a4e1a74cad1629ee24ef95c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplify-libcalls | llvm-dis > %t
+; RUN: opt %s -simplify-libcalls -S > %t
 ; RUN: grep noalias %t | count 2
 ; RUN: grep nocapture %t | count 3
 ; RUN: grep nounwind %t | count 3
index 4ed64a8acc318e1a546e3f53c0f4e4ab56a32995..951c78bb6171083755496f855a246c401852e230 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplify-libcalls | llvm-dis > %t
+; RUN: opt %s -simplify-libcalls -S > %t
 ; RUN: grep nocapture %t | count 2
 ; RUN: grep null %t | grep nocapture | count 1
 ; RUN: grep null %t | grep call | grep readonly | count 1
index 8f9e980ca6ef35c70b47fa10b0b653c59b508aca..984578af9bf0f72323f23da1d4671c9582c7c2e7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplify-libcalls -instcombine | llvm-dis | grep {ret i32 -65}
+; RUN: opt %s -simplify-libcalls -instcombine -S | grep {ret i32 -65}
 ; PR4284
 
 define i32 @test() nounwind {
index 8faba9a4ac7faee4938878063e2c4aa54fed6e6b..5ede6e6d0df29619e122c008e789aa12dbd8e4c5 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that the ToAsciiOptimizer works correctly
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*@ffs}
 
 @non_const = external global i32               ; <i32*> [#uses=1]
index 690c4256aa73d3497db01de822f9d078af15c9ee..29c10dda4ba3909981b97c2c3a60749225ea8f3f 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that the FPrintFOptimizer works correctly
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*fprintf}
 
 ; This transformation requires the pointer size, as it assumes that size_t is
index 869a371ff6aecc09676b65de45a1c5ffe2eb9908..6f4dddced6282e5645b7411ebcf0575c70f64d80 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that the IsDigitOptimizer works correctly
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   not grep call
 
 declare i32 @isdigit(i32)
index 98165a155adc3449a51be050abfdc79c58f434bd..a1a70ec4094de57c2831b18d672a714b46657279 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -constprop -instcombine | llvm-dis | not grep {call.*llvm.memcpy.i32}
+; RUN: opt %s -constprop -instcombine -S | not grep {call.*llvm.memcpy.i32}
 
 @h = constant [2 x i8] c"h\00"         ; <[2 x i8]*> [#uses=1]
 @hel = constant [4 x i8] c"hel\00"             ; <[4 x i8]*> [#uses=1]
index f46b3394a07694d832149489b01a0b8b6a242a45..bcc1c2238e09357205899f4e536d4367fc4d6c3c 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -simplify-libcalls | llvm-dis | grep putchar
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | grep putchar
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*printf}
 
 @str = internal constant [13 x i8] c"hello world\0A\00"         ; <[13 x i8]*> [#uses=1]
index 3e235cd022b1d89a2780b2d010312c1438b436fa..96a410f746219915a25091ed976da512bdd9df0a 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that the PutsCatOptimizer works correctly
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*fputs}
 
 ; This transformation requires the pointer size, as it assumes that size_t is
index 2035594fecbb25261947bf476050e93de85ca510..52e03b6113a0e92add97e61e2e7c1d7af21b8e09 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that the SPrintFOptimizer works correctly
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*sprintf}
 
 ; This transformation requires the pointer size, as it assumes that size_t is
index b555e12608ad6a954de60799004270705f96239b..e54d51f1392024fd88fb053085ed124b44148932 100644 (file)
@@ -1,8 +1,8 @@
 ; Test that the StrCatOptimizer works correctly
 ; PR3661
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*strcat}
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   grep {puts.*%arg1}
 
 ; This transformation requires the pointer size, as it assumes that size_t is
index b12d8b1e85a0a118b34b207410b76907d6302428..bd73d4d03097825f1c390262a93951f74a6ccde5 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that the StrChrOptimizer works correctly
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*@strchr}
 
 ; This transformation requires the pointer size, as it assumes that size_t is
index 149cbf0a16ff711d1367f863a037963d07b395ff..e1d0bff73bf6878fffb0a2977af1b1e8895f2deb 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that the StrCmpOptimizer works correctly
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*strcmp}
 
 @hello = constant [6 x i8] c"hello\00"         ; <[6 x i8]*> [#uses=1]
index 84b48a58a48ef779b650ef63b134bbd31670d4b5..e155af25b879babf8ff719ade6fc002dc5ca841f 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that the StrCpyOptimizer works correctly
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*strcpy}
 
 ; This transformation requires the pointer size, as it assumes that size_t is
index dc2ebe0f77e0bdd86e8156f6d14dc03848e4179d..10de611c5408c3dc0d3d7294f92e12f8594a77ee 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that the StrCatOptimizer works correctly
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:    not grep {call.*strlen}
 
 target datalayout = "e-p:32:32"
index 277dfb6877ebea512dc0201cc52db41b3b030859..41795c3dc14d6f5a98a82c478dcd695da4c2d513 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that the StrNCatOptimizer works correctly
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*strncat}
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   grep {puts.*%arg1}
 
 ; This transformation requires the pointer size, as it assumes that size_t is
index 948e844f913a3d63ecf1e846113a10b7f9654887..82237245a6f3476c90048dfa8117febd650f456a 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that the StrNCmpOptimizer works correctly
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*strncmp}
 
 @hello = constant [6 x i8] c"hello\00"         ; <[6 x i8]*> [#uses=1]
index 2a853cb210ae9ad237a1df3e906b869cd8b6c642..0ce1ca9ee8268282777440f129f2dbe921a1d347 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that the StrNCpyOptimizer works correctly
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*strncpy}
 
 ; This transformation requires the pointer size, as it assumes that size_t is
index 3c9f347991fab87af4adfbc6ca0b4547e594c289..c583f4e7f48d4753c5c9e8904fc3150e9feadfe9 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that the ToAsciiOptimizer works correctly
-; RUN: opt %s -simplify-libcalls | llvm-dis | \
+; RUN: opt %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*toascii}
 
 declare i32 @toascii(i32)
index 4f1d92d196e1b22306af5a934e9c10904cb71c0c..637d335a4fe82d1313faf4dd39a23beb5b811d5c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplify-libcalls | llvm-dis | grep {select i1 %ispos}
+; RUN: opt %s -simplify-libcalls -S | grep {select i1 %ispos}
 ; PR2337
 
 define i32 @test(i32 %x) {
index 09829a8cf3c11acd7661fd9ca80c0ce1a2127816..b4e23b7083ffb93652ccf709334d645ff127bfdb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplify-libcalls | llvm-dis | 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 7fee585d20f9ccead1aaf404919b747022aa0eca..4c3641b78b4fb7803bbf035fba8fcc01971aa42b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplify-libcalls | llvm-dis > %t
+; RUN: opt %s -simplify-libcalls -S > %t
 ; RUN: not grep {call.*floor(} %t
 ; RUN: grep {call.*floorf(} %t
 ; RUN: not grep {call.*ceil(} %t
index 44e67c8b5a6a3bef76add7f0a42a3d27abe03e0a..5d317fe864c67aa865abcf77e74fac34fb5276f2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -simplify-libcalls-halfpowr %s | llvm-dis | FileCheck %s
+; RUN: opt -simplify-libcalls-halfpowr %s -S | FileCheck %s
 
 define float @__half_powrf4(float %f, float %g) nounwind readnone {
 entry:
index 0426689369ba69b5ea0c48b5c090a88c9716a242..91d0aef5ff357f1098f4692f397231c5bdbf9b9e 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that the memcmpOptimizer works correctly
-; RUN: opt %s -simplify-libcalls | llvm-dis | not grep {call.*memcmp}
+; RUN: opt %s -simplify-libcalls -S | not grep {call.*memcmp}
 
 @h = constant [2 x i8] c"h\00"         ; <[2 x i8]*> [#uses=0]
 @hel = constant [4 x i8] c"hel\00"             ; <[4 x i8]*> [#uses=0]
index 91947ae0879ff6caf5250d99e211454898cf013b..e1fddd9c4b473a914e1c7cf66ea4a159f0401226 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplify-libcalls | llvm-dis | 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 48471ca51128acced9c119342c786dd28bddd0d1..0b1db5ae07bd6334265949e6947887757f953d88 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplify-libcalls | llvm-dis | 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 b709059d0e50670915e96d0feb117c55b80f69de..2e25bdd9cdb965a5201fd12c4499d0b30b450fbe 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplify-libcalls | llvm-dis | 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 3f954e9f6f9c6488f11d2c63c7423d5ae649ffa4..ce6303d1fa9438068021340539bb30d4319b9f5a 100644 (file)
@@ -1,6 +1,6 @@
 ; Testcase for calls to the standard C "pow" function
 ;
-; RUN: opt %s -simplify-libcalls | llvm-dis | not grep {call .pow}
+; RUN: opt %s -simplify-libcalls -S | not grep {call .pow}
 
 
 declare double @pow(double, double)
index 934ec9b35f4f8d8305689bf2d0e215d3e20e52ac..e07fbd6733a789400504af95af5cb8d136db440b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplify-libcalls | llvm-dis | FileCheck %s
+; RUN: opt %s -simplify-libcalls -S | FileCheck %s
 ; PR4738
 
 ; SimplifyLibcalls shouldn't assume anything about weak symbols.
index 916f46df483dab7d0a464764ca4a382f19f6cc50..cdf2ed43ca161363c51284a6d777fa2cc207fec6 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt %s -strip | llvm-dis | grep foo | count 2
-; RUN: opt %s -strip | llvm-dis | grep bar | count 2
+; RUN: opt %s -strip -S | grep foo | count 2
+; RUN: opt %s -strip -S | grep bar | count 2
 @llvm.used = appending global [2 x i8*] [ i8* bitcast (i32* @foo to i8*), i8* bitcast (i32 ()* @bar to i8*) ], section "llvm.metadata"         ; <[2 x i8*]*> [#uses=0]
 @foo = internal constant i32 41                ; <i32*> [#uses=1]
 
index 0124d20556179de5e5ce58229e49022b16cc6cbb..7b9545e3ed85858bdcafb239756d5d67b6be30f0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -tailcallelim | llvm-dis | not grep call
+; RUN: opt %s -tailcallelim -S | not grep call
 
 define i32 @factorial(i32 %x) {
 entry:
index e55e60ad4d688250a21739c42294491ae68727d9..99eb057f53ac0b21d852d52e3069cbd32510983a 100644 (file)
@@ -3,7 +3,7 @@
 ; go out to the anonymous users of the demo script for "suggesting" 
 ; optimizations that should be done.  :)
 
-; RUN: opt %s -tailcallelim | llvm-dis | not grep call
+; RUN: opt %s -tailcallelim -S | not grep call
 
 define i32 @mul(i32 %x, i32 %y) {
 entry:
index 966fa1fcd4fd2df63a986f202e3a7d0d052f2f68..7f08a06be02c76b10d70e9cbbd033f947b86b992 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -tailcallelim | llvm-dis | \
+; RUN: opt %s -tailcallelim -S | \
 ; RUN:    grep {call i32 @foo}
 
 declare void @bar(i32*)
index 8fbe008387622cacf9292f0c85804d2e65e3ff16..ba8a4f0cb3ef583835f1563453bf322fc1ad472f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as <%s | opt -tailcallelim | llvm-dis | grep call | count 3
+; RUN: llvm-as <%s | opt -tailcallelim -S | grep call | count 3
 ; PR4323
 
 ; Several cases where tail call elimination should not move the load above the
index b2ca8d5b15edaa750462634e8519a50072267aa2..9a5a8db21c5740a6a084eea0fa664675e4dce2aa 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -tailcallelim | llvm-dis | grep call
+; RUN: opt %s -tailcallelim -S | grep call
 ; Don't turn this into an infinite loop, this is probably the implementation
 ; of fabs and we expect the codegen to lower fabs.
 
index 27cbfef11436c29517445f3e4a2375d61256394d..7453be5c367a6d091f8fb57ff055e26b00216c7e 100644 (file)
@@ -1,5 +1,5 @@
 ; This function contains intervening instructions which should be moved out of the way
-; RUN: opt %s -tailcallelim | llvm-dis | not grep call
+; RUN: opt %s -tailcallelim -S | not grep call
 
 define i32 @Test(i32 %X) {
 entry:
index b1fe7216089be749df6d4453874357420b14dd97..a556ddb6eb1d8bcfaeade25b336b8ee1922486a4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -tailcallelim %s | llvm-dis | FileCheck %s
+; RUN: opt -tailcallelim %s -S | FileCheck %s
 ; PR615
 
 declare void @bar(i32*)
index aeb9042bc79f69c613650215ffb3f6f193ee6a40..efa2910a75e3ed63af2ac6cdc6ae2a75b1eb5fac 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as <%s | opt -tailcallelim | llvm-dis | not grep call
+; RUN: llvm-as <%s | opt -tailcallelim -S | not grep call
 ; PR4323
 
 ; Several cases where tail call elimination should move the load above the call,
index e19d27483055b9a5108894ff52456617ac65e9c4..ff97482dc0be0112cb8f0707088e8e079ca4e51d 100644 (file)
@@ -1,7 +1,7 @@
 ; Though this case seems to be fairly unlikely to occur in the wild, someone
 ; plunked it into the demo script, so maybe they care about it.
 ;
-; RUN: opt %s -tailcallelim | llvm-dis | not grep call
+; RUN: opt %s -tailcallelim -S | not grep call
 
 define i32 @aaa(i32 %c) {
 entry:
index 9ab4857d9c3dfd672548a0efe72c1123320e951d..c9da377755e58b52a33c4c5ae44f0c5a10bced85 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -tailcallelim | llvm-dis | \
+; RUN: opt %s -tailcallelim -S | \
 ; RUN:    grep {tail call void @foo}
 
 
index 94de90e2b77cd0218ffab3acdc522beda11548be..9c06d9bca87090ed6f53a18bf0ae95281d84143e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -tailduplicate -taildup-threshold=2 | llvm-dis | grep add | not grep uses=1
+; RUN: opt %s -tailduplicate -taildup-threshold=2 -S | grep add | not grep uses=1
 
 define i32 @test1(i1 %C, i32 %A, i32* %P) {
 entry: