]> granicus.if.org Git - llvm/commitdiff
PowerPC: Do not use llc -march in tests.
authorMatthias Braun <matze@braunis.de>
Tue, 1 Aug 2017 22:20:41 +0000 (22:20 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 1 Aug 2017 22:20:41 +0000 (22:20 +0000)
`llc -march` is problematic because it only switches the target
architecture, but leaves the operating system unchanged. This
occasionally leads to indeterministic tests because the OS from
LLVM_DEFAULT_TARGET_TRIPLE is used.

However we can simply always use `llc -mtriple` instead. This changes
all the tests to do this to avoid people using -march when they copy and
paste parts of tests.

This patch:
- Removes -march if the .ll file already has a matching `target triple`
  directive or -mtriple argument.
- In all other cases changes -march=ppc32/-march=ppc64 to
  -mtriple=ppc32--/-mtriple=ppc64--

See also the discussion in https://reviews.llvm.org/D35287

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

234 files changed:
test/CodeGen/PowerPC/2004-11-29-ShrCrash.ll
test/CodeGen/PowerPC/2004-11-30-shift-crash.ll
test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll
test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll
test/CodeGen/PowerPC/2005-01-14-SetSelectCrash.ll
test/CodeGen/PowerPC/2005-01-14-UndefLong.ll
test/CodeGen/PowerPC/2005-08-12-rlwimi-crash.ll
test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll
test/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll
test/CodeGen/PowerPC/2006-04-01-FloatDoubleExtend.ll
test/CodeGen/PowerPC/2006-04-05-splat-ish.ll
test/CodeGen/PowerPC/2006-04-19-vmaddfp-crash.ll
test/CodeGen/PowerPC/2006-05-12-rlwimi-crash.ll
test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll
test/CodeGen/PowerPC/2006-08-11-RetVector.ll
test/CodeGen/PowerPC/2006-09-28-shift_64.ll
test/CodeGen/PowerPC/2006-10-13-Miscompile.ll
test/CodeGen/PowerPC/2006-10-17-brcc-miscompile.ll
test/CodeGen/PowerPC/2006-10-17-ppc64-alloca.ll
test/CodeGen/PowerPC/2006-11-10-DAGCombineMiscompile.ll
test/CodeGen/PowerPC/2006-11-29-AltivecFPSplat.ll
test/CodeGen/PowerPC/2006-12-07-LargeAlloca.ll
test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll
test/CodeGen/PowerPC/2007-01-04-ArgExtension.ll
test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll
test/CodeGen/PowerPC/2007-01-29-lbrx-asm.ll
test/CodeGen/PowerPC/2007-01-31-InlineAsmAddrMode.ll
test/CodeGen/PowerPC/2007-02-16-AlignPacked.ll
test/CodeGen/PowerPC/2007-03-30-SpillerCrash.ll
test/CodeGen/PowerPC/2007-04-24-InlineAsm-I-Modifier.ll
test/CodeGen/PowerPC/2007-05-14-InlineAsmSelectCrash.ll
test/CodeGen/PowerPC/2007-05-22-tailmerge-3.ll
test/CodeGen/PowerPC/2007-05-30-dagcombine-miscomp.ll
test/CodeGen/PowerPC/2007-06-28-BCCISelBug.ll
test/CodeGen/PowerPC/2007-08-04-CoalescerAssert.ll
test/CodeGen/PowerPC/2007-09-04-AltivecDST.ll
test/CodeGen/PowerPC/2007-09-07-LoadStoreIdxForms.ll
test/CodeGen/PowerPC/2007-09-11-RegCoalescerAssert.ll
test/CodeGen/PowerPC/2007-10-16-InlineAsmFrameOffset.ll
test/CodeGen/PowerPC/2007-10-18-PtrArithmetic.ll
test/CodeGen/PowerPC/2007-11-19-VectorSplitting.ll
test/CodeGen/PowerPC/2008-03-17-RegScavengerCrash.ll
test/CodeGen/PowerPC/2008-03-18-RegScavengerAssert.ll
test/CodeGen/PowerPC/2008-03-24-AddressRegImm.ll
test/CodeGen/PowerPC/2008-03-24-CoalescerBug.ll
test/CodeGen/PowerPC/2008-05-01-ppc_fp128.ll
test/CodeGen/PowerPC/2008-06-19-LegalizerCrash.ll
test/CodeGen/PowerPC/2008-06-21-F128LoadStore.ll
test/CodeGen/PowerPC/2008-06-23-LiveVariablesCrash.ll
test/CodeGen/PowerPC/2008-07-10-SplatMiscompile.ll
test/CodeGen/PowerPC/2008-10-28-UnprocessedNode.ll
test/CodeGen/PowerPC/2008-10-28-f128-i32.ll
test/CodeGen/PowerPC/2009-07-16-InlineAsm-M-Operand.ll
test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll
test/CodeGen/PowerPC/2009-09-18-carrybit.ll
test/CodeGen/PowerPC/2010-03-09-indirect-call.ll
test/CodeGen/PowerPC/2010-05-03-retaddr1.ll
test/CodeGen/PowerPC/Atomics-64.ll
test/CodeGen/PowerPC/DbgValueOtherTargets.test
test/CodeGen/PowerPC/Frames-alloca.ll
test/CodeGen/PowerPC/Frames-large.ll
test/CodeGen/PowerPC/Frames-leaf.ll
test/CodeGen/PowerPC/Frames-small.ll
test/CodeGen/PowerPC/LargeAbsoluteAddr.ll
test/CodeGen/PowerPC/MergeConsecutiveStores.ll
test/CodeGen/PowerPC/a2-fp-basic.ll
test/CodeGen/PowerPC/a2q-stackalign.ll
test/CodeGen/PowerPC/a2q.ll
test/CodeGen/PowerPC/addi-reassoc.ll
test/CodeGen/PowerPC/and-branch.ll
test/CodeGen/PowerPC/and-elim.ll
test/CodeGen/PowerPC/and-imm.ll
test/CodeGen/PowerPC/and_add.ll
test/CodeGen/PowerPC/and_sext.ll
test/CodeGen/PowerPC/and_sra.ll
test/CodeGen/PowerPC/asm-Zy.ll
test/CodeGen/PowerPC/atomic-1.ll
test/CodeGen/PowerPC/atomic-2.ll
test/CodeGen/PowerPC/atomics-fences.ll
test/CodeGen/PowerPC/atomics-indexed.ll
test/CodeGen/PowerPC/atomics.ll
test/CodeGen/PowerPC/big-endian-actual-args.ll
test/CodeGen/PowerPC/big-endian-call-result.ll
test/CodeGen/PowerPC/big-endian-formal-args.ll
test/CodeGen/PowerPC/blockaddress.ll
test/CodeGen/PowerPC/branch-opt.ll
test/CodeGen/PowerPC/bswap-load-store.ll
test/CodeGen/PowerPC/buildvec_canonicalize.ll
test/CodeGen/PowerPC/calls.ll
test/CodeGen/PowerPC/cmp-cmp.ll
test/CodeGen/PowerPC/coal-sections.ll
test/CodeGen/PowerPC/coalesce-ext.ll
test/CodeGen/PowerPC/compare-simm.ll
test/CodeGen/PowerPC/constants.ll
test/CodeGen/PowerPC/cr_spilling.ll
test/CodeGen/PowerPC/ctrloop-asm.ll
test/CodeGen/PowerPC/ctrloop-le.ll
test/CodeGen/PowerPC/ctrloop-lt.ll
test/CodeGen/PowerPC/ctrloop-ne.ll
test/CodeGen/PowerPC/ctrloop-reg.ll
test/CodeGen/PowerPC/ctrloop-s000.ll
test/CodeGen/PowerPC/ctrloop-sums.ll
test/CodeGen/PowerPC/ctrloop-udivti3.ll
test/CodeGen/PowerPC/ctrloops.ll
test/CodeGen/PowerPC/cttz.ll
test/CodeGen/PowerPC/dbg.ll
test/CodeGen/PowerPC/delete-node.ll
test/CodeGen/PowerPC/div-2.ll
test/CodeGen/PowerPC/eqv-andc-orc-nor.ll
test/CodeGen/PowerPC/extsh.ll
test/CodeGen/PowerPC/fabs.ll
test/CodeGen/PowerPC/fma-assoc.ll
test/CodeGen/PowerPC/fma-ext.ll
test/CodeGen/PowerPC/fma.ll
test/CodeGen/PowerPC/fmaxnum.ll
test/CodeGen/PowerPC/fminnum.ll
test/CodeGen/PowerPC/fnabs.ll
test/CodeGen/PowerPC/fneg.ll
test/CodeGen/PowerPC/fold-li.ll
test/CodeGen/PowerPC/fp-branch.ll
test/CodeGen/PowerPC/fp-int-fp.ll
test/CodeGen/PowerPC/fp_to_uint.ll
test/CodeGen/PowerPC/fpcopy.ll
test/CodeGen/PowerPC/frounds.ll
test/CodeGen/PowerPC/fsqrt.ll
test/CodeGen/PowerPC/hello.ll
test/CodeGen/PowerPC/i1-to-double.ll
test/CodeGen/PowerPC/i128-and-beyond.ll
test/CodeGen/PowerPC/i64_fp.ll
test/CodeGen/PowerPC/iabs.ll
test/CodeGen/PowerPC/illegal-element-type.ll
test/CodeGen/PowerPC/indirectbr.ll
test/CodeGen/PowerPC/inlineasm-copy.ll
test/CodeGen/PowerPC/int-fp-conv-0.ll
test/CodeGen/PowerPC/int-fp-conv-1.ll
test/CodeGen/PowerPC/inverted-bool-compares.ll
test/CodeGen/PowerPC/ispositive.ll
test/CodeGen/PowerPC/itofp128.ll
test/CodeGen/PowerPC/lha.ll
test/CodeGen/PowerPC/load-constant-addr.ll
test/CodeGen/PowerPC/long-compare.ll
test/CodeGen/PowerPC/mature-mc-support.ll
test/CodeGen/PowerPC/mem-rr-addr-mode.ll
test/CodeGen/PowerPC/mem_update.ll
test/CodeGen/PowerPC/mul-neg-power-2.ll
test/CodeGen/PowerPC/mul-with-overflow.ll
test/CodeGen/PowerPC/mulhs.ll
test/CodeGen/PowerPC/mult-alt-generic-powerpc.ll
test/CodeGen/PowerPC/mult-alt-generic-powerpc64.ll
test/CodeGen/PowerPC/neg.ll
test/CodeGen/PowerPC/popcnt.ll
test/CodeGen/PowerPC/ppc-vaarg-agg.ll
test/CodeGen/PowerPC/ppc32-i1-vaarg.ll
test/CodeGen/PowerPC/ppc440-fp-basic.ll
test/CodeGen/PowerPC/ppc440-msync.ll
test/CodeGen/PowerPC/ppc64-altivec-abi.ll
test/CodeGen/PowerPC/ppc64-byval-align.ll
test/CodeGen/PowerPC/ppc64-calls.ll
test/CodeGen/PowerPC/ppc64-get-cache-line-size.ll
test/CodeGen/PowerPC/ppc64le-aggregates.ll
test/CodeGen/PowerPC/ppc64le-calls.ll
test/CodeGen/PowerPC/ppc64le-localentry-large.ll
test/CodeGen/PowerPC/ppc64le-localentry.ll
test/CodeGen/PowerPC/ppcf128-2.ll
test/CodeGen/PowerPC/ppcf128-3.ll
test/CodeGen/PowerPC/ppcf128-4.ll
test/CodeGen/PowerPC/pr18663-2.ll
test/CodeGen/PowerPC/pr18663.ll
test/CodeGen/PowerPC/pr3711_widen_bit.ll
test/CodeGen/PowerPC/pwr3-6x.ll
test/CodeGen/PowerPC/qpx-bv-sint.ll
test/CodeGen/PowerPC/qpx-func-clobber.ll
test/CodeGen/PowerPC/qpx-load.ll
test/CodeGen/PowerPC/qpx-s-load.ll
test/CodeGen/PowerPC/qpx-s-sel.ll
test/CodeGen/PowerPC/qpx-s-store.ll
test/CodeGen/PowerPC/qpx-sel.ll
test/CodeGen/PowerPC/qpx-store.ll
test/CodeGen/PowerPC/reg-coalesce-simple.ll
test/CodeGen/PowerPC/restore-r30.ll
test/CodeGen/PowerPC/retaddr.ll
test/CodeGen/PowerPC/return-val-i128.ll
test/CodeGen/PowerPC/rlwimi-commute.ll
test/CodeGen/PowerPC/rlwimi-keep-rsh.ll
test/CodeGen/PowerPC/rlwimi.ll
test/CodeGen/PowerPC/rlwimi2.ll
test/CodeGen/PowerPC/rlwimi3.ll
test/CodeGen/PowerPC/rlwinm.ll
test/CodeGen/PowerPC/rlwinm2.ll
test/CodeGen/PowerPC/rotl-2.ll
test/CodeGen/PowerPC/rotl-64.ll
test/CodeGen/PowerPC/rotl.ll
test/CodeGen/PowerPC/s000-alias-misched.ll
test/CodeGen/PowerPC/save-bp.ll
test/CodeGen/PowerPC/save-cr-ppc32svr4.ll
test/CodeGen/PowerPC/save-crbp-ppc32svr4.ll
test/CodeGen/PowerPC/select-cc.ll
test/CodeGen/PowerPC/select_lt0.ll
test/CodeGen/PowerPC/setcc_no_zext.ll
test/CodeGen/PowerPC/seteq-0.ll
test/CodeGen/PowerPC/shl_elim.ll
test/CodeGen/PowerPC/shl_sext.ll
test/CodeGen/PowerPC/sign_ext_inreg1.ll
test/CodeGen/PowerPC/small-arguments.ll
test/CodeGen/PowerPC/stfiwx.ll
test/CodeGen/PowerPC/store-load-fwd.ll
test/CodeGen/PowerPC/subc.ll
test/CodeGen/PowerPC/tailcall1.ll
test/CodeGen/PowerPC/tls-cse.ll
test/CodeGen/PowerPC/tls-pic.ll
test/CodeGen/PowerPC/tls-store2.ll
test/CodeGen/PowerPC/tls.ll
test/CodeGen/PowerPC/trampoline.ll
test/CodeGen/PowerPC/unsafe-math.ll
test/CodeGen/PowerPC/vcmp-fold.ll
test/CodeGen/PowerPC/vec_abs.ll
test/CodeGen/PowerPC/vec_auto_constant.ll
test/CodeGen/PowerPC/vec_br_cmp.ll
test/CodeGen/PowerPC/vec_buildvector_loadstore.ll
test/CodeGen/PowerPC/vec_call.ll
test/CodeGen/PowerPC/vec_fneg.ll
test/CodeGen/PowerPC/vec_insert.ll
test/CodeGen/PowerPC/vec_misaligned.ll
test/CodeGen/PowerPC/vec_mul.ll
test/CodeGen/PowerPC/vec_perf_shuffle.ll
test/CodeGen/PowerPC/vec_shift.ll
test/CodeGen/PowerPC/vec_shuffle.ll
test/CodeGen/PowerPC/vec_splat.ll
test/CodeGen/PowerPC/vec_splat_constant.ll
test/CodeGen/PowerPC/vec_vrsave.ll
test/CodeGen/PowerPC/vec_zero.ll
test/CodeGen/PowerPC/vector-identity-shuffle.ll
test/CodeGen/PowerPC/vector-merge-store-fp-constants.ll
test/CodeGen/PowerPC/vector.ll

index 7e21b511a94086af8086220997a8110e21cc15f9..6699b74d58aef97b6772eb4c1dd8d2d1bfd725ae 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 define void @test() {
        %tr1 = lshr i32 1, 0            ; <i32> [#uses=0]
        ret void
index ca096ca6917769d1a22855b15c26f2f02d4482fb..4294ad33d469e4f45b27e73f7750921b9a5698a3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
 define void @main() {
         %tr4 = shl i64 1, 0             ; <i64> [#uses=0]
index d2674f8f8c31cac289931497260c78b4dab602d9..1077283470acac5cdc870f8f53a7f3feca9b159e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
 define void @main() {
         %shamt = add i8 0, 1            ; <i8> [#uses=1]
index 687f426f12b835779c347d4117b462d0eb5ed694..a524fffccf9ebbbafe7f0fa938cbf0a25edb2cdb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep .comm.*X,0
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep .comm.*X,0
 
 @X = linkonce global {  } zeroinitializer               ; <{  }*> [#uses=0]
 
index 63f1f147c8b9186f3e023c1848db9b7237cad274..49491cd30b09bbd6a36a7a778209f01a15bce14c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
 define i32 @main() {
         %setle = icmp sle i64 1, 0              ; <i1> [#uses=1]
index b7037a35585048bd10c3d8bade6594ce7167ba0c..39824caaa12f22e2bc054029706cc82b2d1da991 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
 define i64 @test() {
         ret i64 undef
index 2de58b30a1a6219aeca9b7302550dce22fde6aa9..3407af3ff6653a0cfe77816a04d6f0b81b1e243c 100644 (file)
@@ -1,6 +1,6 @@
 ; this should not crash the ppc backend
 
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
 
 define i32 @test(i32 %j.0.0.i) {
index 4f36d57a24762786ef6408ac25c8fb61740d4de3..c0396c979117d4b002a1e5a7c719b655923d03dc 100644 (file)
@@ -1,6 +1,6 @@
 ; This function should have exactly one call to fixdfdi, no more!
 
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mattr=-64bit | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mattr=-64bit | \
 ; RUN:    grep "bl .*fixdfdi" | count 1
 
 define double @test2(double %tmp.7705) {
index b5c1f5cb91e9769d23ec015ccf0429849e10ad9b..43279e54d513d358251bec110db1b28bec655f5c 100644 (file)
@@ -1,7 +1,7 @@
 ; This was erroneously being turned into an rlwinm instruction.
 ; The sign bit does matter in this case.
 
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep srawi
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep srawi
 
 define i32 @test(i32 %X) {
         %Y = and i32 %X, -2             ; <i32> [#uses=1]
index 4d7d36698c59fc001f9cf0eb1a1744ee2f40d2f8..8f1a7610f10ea6385a0cd87646897731708e9cda 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
 
 define double @CalcSpeed(float %tmp127) {
index 71acb7bc980a7ea37b7f095346a61a492245eca2..dfd6fab707750f83a14978eaac7bca31052f8069 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
 ; RUN:   grep "vspltish v.*, 10"
 
 define void @test(<8 x i16>* %P) {
index 4fac0864c8d26bced953964bfd2b0c74be0529d9..7de5e9ddaede912ed97e0032fd97e7f47c6c7b24 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5
 ; END.
 
 define void @test(i8* %stack) {
index bce581a124f5d4f84e9adfe513bd8413a5cfc4ef..98f9ee86684a7ce594064701a9aa789ac86b25f1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 ; END.
 
        %struct.attr_desc = type { i8*, %struct.attr_desc*, %struct.attr_value*, %struct.attr_value*, i32 }
index 3f07df2b4323de3a2a55fa655d6d229e99c003b6..2b0d639b168fd2ba71f7079e63fb37075d36e734 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
 define void @img2buf(i32 %symbol_size_in_bytes, i16* %ui16) nounwind {
         %tmp93 = load i16, i16* null         ; <i16> [#uses=1]
index d2f12d766e1873c3d1ef73df78294d94a5a80d07..4f592109e706b645cde17e4f5c309b4f9a450164 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | grep vsldoi
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | not grep vor
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | grep vsldoi
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | not grep vor
 
 define <4 x float> @func(<4 x float> %fp0, <4 x float> %fp1) {
         %tmp76 = shufflevector <4 x float> %fp0, <4 x float> %fp1, <4 x i32> < i32 0, i32 1, i32 2, i32 7 >     ; <<4 x float>> [#uses=1]
index 2ef5f8397ea868960e0c75eec596826f9a03c181..d519f023c6a9df3f1d783fecbb896963fe4ab817 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64
+; RUN: llc -verify-machineinstrs < %s
 
 target datalayout = "E-p:64:64"
 target triple = "powerpc64-apple-darwin8"
index 4109f0bc6fe5ad97f22b6707502dbcbb0ace5565..2a3e00f6b9d0e65a49239f60331a9be3b9e10cd9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep IMPLICIT_DEF
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep IMPLICIT_DEF
 
 define void @foo(i64 %X) {
 entry:
index e29f5e30cd6537542267b92b789e5e9ef48f6ecb..59cd9625a0f5015bc70ee268cc14d2297c481366 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep xor 
+; RUN: llc -verify-machineinstrs < %s | grep xor
 
 target datalayout = "E-p:32:32"
 target triple = "powerpc-apple-darwin8.7.0"
index 3284f0a624f67c0dacae8df3954a975f9edcdc28..3024e70c2f46e627d80bca50b00a8329a135d126 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=ppc64
+; RUN: llc < %s -mtriple=ppc64--
 
 define i32* @foo(i32 %n) {
         %A = alloca i32, i32 %n         ; <i32*> [#uses=1]
index cf381643df99a49b994cb735ec648ef5a9a91fa0..aa58a49b77b86b0277ed06c20d4854d4337f78b1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep rlwimi
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep rlwimi
 
 define void @test(i16 %div.0.i.i.i.i, i32 %L_num.0.i.i.i.i, i32 %tmp1.i.i206.i.i, i16* %P) {
         %X = shl i16 %div.0.i.i.i.i, 1          ; <i16> [#uses=1]
index 8aa950680903bdcb93b0458a879e20b77c68000e..624ce11f4bd1a42e00bbb45dcee8a9306cfb90d3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5
 
 define void @glgRunProcessor15() {
         %tmp26355.i = shufflevector <4 x float> zeroinitializer, <4 x float> < float 0x379FFFE000000000, float 0x379FFFE000000000, float 0x379FFFE000000000, float 0x379FFFE000000000 >, <4 x i32> < i32 0, i32 1, i32 2, i32 7 >; <<4 x float>> [#uses=1]
index 147680744c2f24918bc33fd60f161d5932364f01..cb90b3ebabdf59a7a3e16e9535ddd2ad560ef80d 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
-; RUN: llc -verify-machineinstrs < %s 
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64--
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
+; RUN: llc -verify-machineinstrs < %s
 ; REQUIRES: default_triple
 
 define void @bitap() {
index ac633dafd480a747f80c919750eaaecd478c3319..4d18d9bb6b069d8d332e349b0b07e53f6c1c0a9f 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64--
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 ; RUN: llc -verify-machineinstrs < %s
 ; REQUIRES: default_triple
 
index 9e979bcd5dbd6262245cf1426a3fe2a66bf47677..7b9aae58f555d214e637cab51ec9243f0c425769 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep extsb
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep extsh
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep extsb
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep extsh
 
 define i32 @p1(i8 %c, i16 %s) {
 entry:
index c6547c72ff030bf5bcd2e7b4a9976d2e40c9becc..2f0f7c2888e28609a9397a3e09878ea478884d47 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 | \
 ; RUN:    grep cntlz
 
 define i32 @foo() nounwind {
index faf05e98acb956f93ec696f3cc9c8b27ffaf05e3..934b04b7de7a18e5d69f60357d985e19b4b5a4d2 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
-; RUN: llc -verify-machineinstrs < %s -march=ppc64
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64--
 
 define i16 @test(i8* %d1, i16* %d2) {
        %tmp237 = call i16 asm "lhbrx $0, $2, $1", "=r,r,bO,m"( i8* %d1, i32 0, i16* %d2 )              ; <i16> [#uses=1]
index d0e6f5dfd15514961ca040901e662213585c7c01..e063e25f61142a2f143adbc38c67b36074e446f5 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
-; RUN: llc -verify-machineinstrs < %s -march=ppc64
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64--
 
 ; Test two things: 1) that a frameidx can be rewritten in an inline asm
 ; 2) that inline asms can handle reg+imm addr modes.
index d04aef8e5ff87678f6008baabfd83d2b99c3dbaa..6805cc59dfebd92765b54c3f8d0761bd7d3e1ca5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8.8.0 | \
 ; RUN:   grep align.*3
 
 @X = global <{i32, i32}> <{ i32 1, i32 123 }>
index 717e9c7a5918433cdf9f9c7fed4079855b07dff7..7ed13631db729f0083f19b5e209639e7e944ebe6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5
 
 define void @test(<4 x float>*, { { i16, i16, i32 } }*) {
 xOperationInitMasks.exit:
index 14da52136c93551ccd016172bd815864cec4ce39..ad34477384a19326f36b6a6d0e817506355ee556 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 -no-integrated-as | grep "foo r3, r4"
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 -no-integrated-as | grep "bari r3, 47"
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8.8.0 -no-integrated-as | grep "foo r3, r4"
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8.8.0 -no-integrated-as | grep "bari r3, 47"
 
 ; PR1351
 
index 3e39bf0b6aa4a81c4863b933fb0317c0f1ca40ae..db024772eb4d6b82e6cdd9ee61028276b0e6de31 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s
 target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "powerpc-apple-darwin8.8.0"
        %struct..0anon = type { i32 }
index 02ace31fdd4301d4836dd00bf36d0f28a4fd0c87..a3ee0247f52110bd0f85bdf4fe72099eddc59121 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -enable-tail-merge=0 | grep bl.*baz | count 2
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -enable-tail-merge=0 | grep bl.*quux | count 2
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep bl.*baz | count 1
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep bl.*quux | count 1
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -enable-tail-merge=0 | grep bl.*baz | count 2
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -enable-tail-merge=0 | grep bl.*quux | count 2
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep bl.*baz | count 1
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep bl.*quux | count 1
 ; Check that tail merging is the default on ppc, and that -enable-tail-merge works.
 
 ; ModuleID = 'tail.c'
index a5e17c62e084b763e79b780fc5989cd93ed9049a..1f8f5eb894681e3e7d9068da6326f9be57c436d3 100644 (file)
@@ -1,9 +1,8 @@
+; RUN: llc -verify-machineinstrs < %s | grep "rlwinm r3, r3, 23, 30, 30"
+; PR1473
 target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "powerpc-apple-darwin8.8.0"
 
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep "rlwinm r3, r3, 23, 30, 30"
-; PR1473
-
 define zeroext i8 @foo(i16 zeroext  %a)   {
         %tmp2 = lshr i16 %a, 10         ; <i16> [#uses=1]
         %tmp23 = trunc i16 %tmp2 to i8          ; <i8> [#uses=1]
index 743cddf584e128144ed366ca44f20b68af437902..b039cf05a9da6d2c3b17405e91112764ddb5250c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mattr=+altivec
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mattr=+altivec
 
        %struct.XATest = type { float, i16, i8, i8 }
        %struct.XArrayRange = type { i8, i8, i8, i8 }
index d92337bfd283acbcb921464646fa7ea27f363083..0db79f23ddd3f2761e892aab8628dc8d87a33dea 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64--
 ; PR1596
 
        %struct._obstack_chunk = type { i8* }
index 0dcb45dff47ac2654f418978e94405e38e1bd1a2..25f069957f4209b2643d2e9ce8cf31e056e802fa 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mattr=+altivec | grep dst | count 4
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mattr=+altivec | grep dst | count 4
 
 define hidden void @_Z4borkPc(i8* %image) {
 entry:
index 3769ab448717103ae32149d816560c0e727156a7..89b7b6f1881205e89d227aab48fcf671814d5a1c 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -O1 | FileCheck %s
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | FileCheck --check-prefix=CHECK-OPT  %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -O1 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- | FileCheck --check-prefix=CHECK-OPT  %s
 
         %struct.__db_region = type { %struct.__mutex_t, [4 x i8], %struct.anon, i32, [1 x i32] }
         %struct.__mutex_t = type { i32 }
index 4f38e7f3c7ca47bcc07079f7abecdbd2cc34b67d..53552323b72ca0fb2a908f50099712f4ed61e22c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64--
 
         %struct.TCMalloc_SpinLock = type { i32 }
 
index b7a3c3090c2c46d181de17bf94482a5c02b9f02a..a69e145f3adf08fb21d72cd573706f27dd065f29 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 ; rdar://5538377
 
         %struct.disk_unsigned = type { i32 }
index d8d1d8b112a85800dc290f899eaeb894989aecca..d54f1a39f89f0535006c5993e66f5b7faeef9e9b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mattr=+altivec
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mattr=+altivec
        %struct.inoutprops = type <{ i8, [3 x i8] }>
 
 define void @bork(float* %argA, float* %argB, float* %res, i8 %inoutspec.0) {
index 68d94eb503e5150b08d05edc946ce80373f9ef69..d2e303be03cdd9e355eeb40e9afc1ff62e6793ed 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc -verify-machineinstrs < %s 
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g3
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5
+; RUN: llc -verify-machineinstrs < %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g3
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5
 ; PR1811
 ; REQUIRES: default_triple
 
index 3d771fc4947739f6c12727185fcbc110e959097e..81aae48de18f83a8fcb29e7301e83c775e55b0e5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
        %struct._cpp_strbuf = type { i8*, i32, i32 }
        %struct.cpp_string = type { i32, i8* }
index af848ee22353a39efed2bcc96c5d611323de0727..186c8db36736704f473dfc77cfd13bed42858462 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64--
 
 define i16 @test(i8* %d1, i16* %d2) {
  %tmp237 = call i16 asm "lhbrx $0, $2, $1", "=r,r,bO,m"( i8* %d1, i32 0, i16* %d2 )
index aa550984033ab2591310362211ae262b921d3ae1..7f9d172512500d2e6786670fa7e6fbc27a9a7acc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64--
 
 define fastcc i8* @page_rec_get_next(i8* %rec) nounwind  {
 entry:
index 8e30f1f5dfabd74470ddb58c17970798c73ee327..8d75093437cb2149fbf1896740e1259216cfbf0b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
        %struct..0objc_object = type { %struct.objc_class* }
        %struct.NSArray = type { %struct..0objc_object }
index 960d07df03467534a63d8ff321cfe811936bb210..f6185ca6e7956f53b4c6f751fc38dc4dbf1cbc98 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s
 target triple = "powerpc-apple-darwin9.2.2"
 
 define i256 @func(ppc_fp128 %a, ppc_fp128 %b, ppc_fp128 %c, ppc_fp128 %d) nounwind readnone  {
index ea54895f238c3273532d9abd62ee540b275410e0..9f2a9ee63b331f6d7f8793e79c6d025507b27310 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
 define void @t() nounwind {
        call void null( ppc_fp128 undef )
index fb3af168f0b58250687c7eb4cca87b6a1d5e2a53..1114b8942f28c847b3f3b7e5fe2c5ca7e251db00 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
 @g = external global ppc_fp128
 @h = external global ppc_fp128
index d57c6498c39584aa61ca4342af1f651fe898d043..3a5cb89928d0a2d6957a53703fff7a4e93dd7933 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 ; <rdar://problem/6020042>
 
 define i32 @bork() nounwind  {
index 45a5ccda8753c6d222103d4e9adc2df13dab0c39..13bccc0dfbc8339251792ff18c1f8df3f0ef6a14 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | grep vadduhm
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | grep vsubuhm
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | grep vadduhm
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | grep vsubuhm
 
 define <4 x i32> @test() nounwind {
        ret <4 x i32> < i32 4293066722, i32 4293066722, i32 4293066722, i32 4293066722>
index 15a806a470722defb7cf64d2a14482f4fec3d2f7..3174a7130f002c94317c5d79c7951c05e14ea3bc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64--
 
 define void @__divtc3({ ppc_fp128, ppc_fp128 }* noalias sret %agg.result, ppc_fp128 %a, ppc_fp128 %b, ppc_fp128 %c, ppc_fp128 %d) nounwind {
 entry:
index 55272c9de4e6da8b140735111a58cd38c23447f3..3fa9d81c8dc50f5b4f0911d3dcf0b5dadb5917d9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -o - | not grep fixunstfsi
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -o - | not grep fixunstfsi
 
 define i64 @__fixunstfdi(ppc_fp128 %a) nounwind readnone {
 entry:
index f64e3dcf73282ca6b2c5979e769e107532fde266..50b35f55f41df4580f5740ea5349aefc1f76d4d4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=ppc32 -verify-machineinstrs
+; RUN: llc < %s -mtriple=ppc32-- -verify-machineinstrs
 
 ; Machine code verifier will call isRegTiedToDefOperand() on /all/ register use
 ; operands.  We must make sure that the operand flag is found correctly.
index f55dfa948dcccd9e118ac4c7ead3694ce60c1912..b0da553e0c4281054c8764d1e4254eddb14d33cf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin10 -mcpu=g5 -disable-ppc-ilp-pref | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mcpu=g5 -disable-ppc-ilp-pref | FileCheck %s
 ; 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-f128:64:128"
 target triple = "powerpc-apple-darwin10.0"
index b1b18950249e14f2a33151752bafc6df956419c1..4d77ccd2cc8079ed3fd35a14445d60819b653585 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs -march=ppc32 < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s | FileCheck %s
 ; 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-f128:64:128"
 target triple = "powerpc-apple-darwin9.6"
index d6a14e0348a8c127460fa769bcdefac849228a23..51bf3fee733599cd7c220eb565c4f66886d7485b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 -mtriple=powerpc-apple-darwin10.0 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mcpu=g5 -mtriple=powerpc-apple-darwin10.0 | FileCheck %s
 ; ModuleID = 'nn.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-f128:64:128"
 target triple = "powerpc-apple-darwin11.0"
index 0d3ec04e6621a6e0d79999ad72f5a3077b478bdd..ab194196c6babdbe8bce4f99236c9432c5a710e7 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin -mcpu=g5 | FileCheck %s
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin -mcpu=g5 -regalloc=basic | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin -mcpu=g5 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin -mcpu=g5 -regalloc=basic | FileCheck %s
 
 declare i8* @llvm.frameaddress(i32) nounwind readnone
 
index 77066de25e78536e35273443564bad1ded442a47..0422e4975d84e890e804fce2cd78f05848a9336e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=ppc64 -verify-machineinstrs
+; RUN: llc < %s -verify-machineinstrs
 ;
 ; This test is disabled until PPCISelLowering learns to insert proper 64-bit
 ; code for ATOMIC_CMP_SWAP. Currently, it is inserting 32-bit instructions with
index 9702934f7e68599c353847c4e02bed8c63312d2d..be0c1d076ef94bc39080b2ca1c5f78e681657713 100644 (file)
@@ -1 +1 @@
-RUN: llc -O0 -march=ppc32 -asm-verbose < %S/../Inputs/DbgValueOtherTargets.ll | FileCheck %S/../Inputs/DbgValueOtherTargets.ll
+RUN: llc -O0 -mtriple=ppc32-- -asm-verbose < %S/../Inputs/DbgValueOtherTargets.ll | FileCheck %S/../Inputs/DbgValueOtherTargets.ll
index c701fef8e629be573cb05a369edbd08351c78548..ffafa9dc2c6ff0d31419bcceea289281d8f59656 100644 (file)
@@ -1,10 +1,10 @@
-; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=CHECK-PPC32
-; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=CHECK-PPC64
-; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | FileCheck %s -check-prefix=CHECK-PPC32-NOFP
-; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | FileCheck %s -check-prefix=CHECK-PPC64-NOFP
-; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=CHECK-PPC32
-; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=CHECK-PPC32-RS
-; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | FileCheck %s -check-prefix=CHECK-PPC32-RS-NOFP
+; RUN: llc < %s -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=CHECK-PPC32
+; RUN: llc < %s -mtriple=powerpc64-apple-darwin8 | FileCheck %s -check-prefix=CHECK-PPC64
+; RUN: llc < %s -mtriple=powerpc-apple-darwin8 -disable-fp-elim | FileCheck %s -check-prefix=CHECK-PPC32-NOFP
+; RUN: llc < %s -mtriple=powerpc64-apple-darwin8 -disable-fp-elim | FileCheck %s -check-prefix=CHECK-PPC64-NOFP
+; RUN: llc < %s -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=CHECK-PPC32
+; RUN: llc < %s -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=CHECK-PPC32-RS
+; RUN: llc < %s -mtriple=powerpc-apple-darwin8 -disable-fp-elim | FileCheck %s -check-prefix=CHECK-PPC32-RS-NOFP
 
 ; CHECK-PPC32: stw r31, -4(r1)
 ; CHECK-PPC32: lwz r1, 0(r1)
index 5efbe5c2a3fb310bacd67b4a47e1e682397a8308..7ffc7afb149bfbd070c07dd92c40c414903b3489 100644 (file)
@@ -1,11 +1,8 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | FileCheck %s -check-prefix=PPC32-NOFP
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -disable-fp-elim | FileCheck %s -check-prefix=PPC32-FP
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=PPC32-NOFP
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 -disable-fp-elim | FileCheck %s -check-prefix=PPC32-FP
 
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | FileCheck %s -check-prefix=PPC64-NOFP
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -disable-fp-elim | FileCheck %s -check-prefix=PPC64-FP
-
-
-target triple = "powerpc-apple-darwin8"
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-apple-darwin8 | FileCheck %s -check-prefix=PPC64-NOFP
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-apple-darwin8 -disable-fp-elim | FileCheck %s -check-prefix=PPC64-FP
 
 define i32* @f1() nounwind {
         %tmp = alloca i32, i32 8191             ; <i32*> [#uses=1]
index b6ee2fe96864e95d00794863cd080ea7f9961fea..6dce8e20bebe6f17982767753398d9f828c9e90e 100644 (file)
@@ -1,34 +1,34 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN:   not grep "stw r31, 20(r1)"
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN:   not grep "stwu r1, -.*(r1)"
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN:   not grep "addi r1, r1, "
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN:   not grep "lwz r31, 20(r1)"
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -disable-fp-elim | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -disable-fp-elim | \
 ; RUN:   not grep "stw r31, 20(r1)"
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -disable-fp-elim | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -disable-fp-elim | \
 ; RUN:   not grep "stwu r1, -.*(r1)"
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -disable-fp-elim | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -disable-fp-elim | \
 ; RUN:   not grep "addi r1, r1, "
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -disable-fp-elim | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -disable-fp-elim | \
 ; RUN:   not grep "lwz r31, 20(r1)"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- | \
 ; RUN:   not grep "std r31, 40(r1)"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- | \
 ; RUN:   not grep "stdu r1, -.*(r1)"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- | \
 ; RUN:   not grep "addi r1, r1, "
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- | \
 ; RUN:   not grep "ld r31, 40(r1)"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -disable-fp-elim | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -disable-fp-elim | \
 ; RUN:   not grep "stw r31, 40(r1)"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -disable-fp-elim | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -disable-fp-elim | \
 ; RUN:   not grep "stdu r1, -.*(r1)"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -disable-fp-elim | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -disable-fp-elim | \
 ; RUN:   not grep "addi r1, r1, "
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -disable-fp-elim | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -disable-fp-elim | \
 ; RUN:   not grep "ld r31, 40(r1)"
 
 define i32* @f1() {
index accf4256edc97b3c4582ca7014e87b5402599042..e17e982673d3510d8cdfd5d6932aaf66aeac86a0 100644 (file)
@@ -1,21 +1,21 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -o %t1
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 -o %t1
 ; RUN: not grep "stw r31, -4(r1)" %t1
 ; RUN: grep "stwu r1, -16416(r1)" %t1
 ; RUN: grep "addi r1, r1, 16416" %t1
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN: not grep "lwz r31, -4(r1)"
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim \
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 -disable-fp-elim \
 ; RUN:   -o %t2
 ; RUN: grep "stw r31, -4(r1)" %t2
 ; RUN: grep "stwu r1, -16416(r1)" %t2
 ; RUN: grep "addi r1, r1, 16416" %t2
 ; RUN: grep "lwz r31, -4(r1)" %t2
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mtriple=powerpc-apple-darwin8 -o %t3
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-apple-darwin8 -o %t3
 ; RUN: not grep "std r31, -8(r1)" %t3
 ; RUN: grep "stdu r1, -16432(r1)" %t3
 ; RUN: grep "addi r1, r1, 16432" %t3
 ; RUN: not grep "ld r31, -8(r1)" %t3
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim \
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-apple-darwin8 -disable-fp-elim \
 ; RUN:   -o %t4
 ; RUN: grep "std r31, -8(r1)" %t4
 ; RUN: grep "stdu r1, -16448(r1)" %t4
index b26b4f420b329d43fb568c026e207368f4bb1941..3db09b2cae1fc8f47487e5406cec21cecb0b42e4 100644 (file)
@@ -1,8 +1,8 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin | \
 ; RUN:   grep "stw r3, 32751"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mtriple=powerpc-apple-darwin | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-apple-darwin | \
 ; RUN:   grep "stw r3, 32751"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mtriple=powerpc-apple-darwin | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-apple-darwin | \
 ; RUN:   grep "std r3, 9024"
 
 define void @test() nounwind {
index 79f88c16ccb1fcd83ab3f291b8c8ec511b692a27..712eb971ca805162798af4229c0b47063ab9e97f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs -march=ppc32 -mtriple=powerpc-unknown-linux-gnu -mattr=+altivec < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu -mattr=+altivec < %s | FileCheck %s
 
 ;; This test ensures that MergeConsecutiveStores does not attempt to
 ;; merge stores or loads when doing so would result in unaligned
index 33929387747d7ccf6c51078e8c4172ccf9411813..e4a7c537d7440162afb51e5409839f40ad9779ad 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2 -fp-contract=fast | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=a2 -fp-contract=fast | FileCheck %s
 
 %0 = type { double, double }
 
index f7517e0dc023c54a8bfa053d84257c2821f9b2c1..17e3df6d58cccc7a7c7047090a2f18f9047b88e6 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2 | FileCheck -check-prefix=CHECK-A2 %s
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2q | FileCheck -check-prefix=CHECK-A2Q %s
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mtriple=powerpc64-bgq-linux -mcpu=a2 | FileCheck -check-prefix=CHECK-BGQ %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=a2 | FileCheck -check-prefix=CHECK-A2 %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=a2q | FileCheck -check-prefix=CHECK-A2Q %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-bgq-linux -mcpu=a2 | FileCheck -check-prefix=CHECK-BGQ %s
 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
 target triple = "powerpc64-unknown-linux-gnu"
 
index b1a6ebe6efba51cd38c9a842b863e2da8db1c29a..84e2dfa991d78b293236b7bdea3bbcca095697ae 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2q | FileCheck %s
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2 -mattr=+qpx | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=a2q | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=a2 -mattr=+qpx | FileCheck %s
 
 define void @foo() {
 entry:
index 637c59e223e05f214bfe082d47da58bb809d93ac..cb3cf7ca151e0497b820c98d631fe1d5c4167427 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep addi
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep addi
 
         %struct.X = type { [5 x i8] }
 
index 7c36deed03d107130b4f03eb627032a156857c70..f69150abf670be7ed98adecef8a954cdf23e0696 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep mfcr
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep mfcr
 
 define void @foo(i32 %X, i32 %Y, i32 %Z) {
 entry:
index 1706b3ca92c3832b2ed2595d45c23aae178b40fc..577034153832c5fe753f1b0c9713ccd4e4a488d1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep rlwin
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep rlwin
 
 define void @test(i8* %P) {
        %W = load i8, i8* %P
index 43f8c27c4342bdf91eb2449563fced745e72357d..b4838d7221fdcff38ddffb071ffc935dde161a7e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep "ori\|lis"
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep "ori\|lis"
 
 ; andi. r3, r3, 32769  
 define i32 @test(i32 %X) {
index 82dd957654e87d345cb6f97846869146b04279de..1b5b726953ff94dda4691f03937d2a5c9205fa29 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -o %t
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -o %t
 ; RUN: grep slwi %t
 ; RUN: not grep addi %t
 ; RUN: not grep rlwinm %t
index 4179082b56fd38cafc265146c28a958788ca27cd..3b576ca18ee74997ac19c43ae8c0736bb22f7849 100644 (file)
@@ -1,6 +1,6 @@
 ; These tests should not contain a sign extend.
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep extsh
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep extsb
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep extsh
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep extsb
 
 define i32 @test1(i32 %mode.0.i.0) {
         %tmp.79 = trunc i32 %mode.0.i.0 to i16
index 62349a9453a6d768316d2de79fe2a517f56de6d1..e366c303a26daa1f3f01eb9308b59c7cee9268e0 100644 (file)
@@ -1,5 +1,5 @@
 ; Neither of these functions should contain algebraic right shifts
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep srawi 
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep srawi
 
 define i32 @test1(i32 %mode.0.i.0) {
         %tmp.79 = bitcast i32 %mode.0.i.0 to i32                ; <i32> [#uses=1]
index 91bb2418c97946b97095e102335088df7cc2df3e..78bb0f4c73ecac054e98fb857e2e438c16ec1902 100644 (file)
@@ -1,6 +1,6 @@
+; RUN: llc -verify-machineinstrs < %s -mcpu=a2 | FileCheck %s
 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
 target triple = "powerpc64-bgq-linux"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2 | FileCheck %s
 
 define i32 @zytest(i32 %a) nounwind {
 entry:
index 7b6069c9db2cb07db956fcc082b01a5d5419861f..c3c04d3a6ed790ed32d8354b860429fcd67f0be1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin -march=ppc32 |  FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin |  FileCheck %s
 
 define i32 @exchange_and_add(i32* %mem, i32 %val) nounwind {
 ; CHECK-LABEL: exchange_and_add:
index f402cb78bd1898c4eb353ab228fb64d54835aff6..c1fbb43502075b16a7e8434382ca1111d1f0cb34 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc < %s -ppc-asm-full-reg-names -march=ppc64 | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-BE
-; RUN: llc < %s -ppc-asm-full-reg-names -march=ppc64le -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-LE
-; RUN: llc < %s -ppc-asm-full-reg-names -march=ppc64 -mcpu=pwr7 | FileCheck %s
-; RUN: llc < %s -ppc-asm-full-reg-names -march=ppc64 -mcpu=pwr8 | FileCheck %s -check-prefix=CHECK-P8U
+; RUN: llc < %s -ppc-asm-full-reg-names -mtriple=ppc64-- | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-BE
+; RUN: llc < %s -ppc-asm-full-reg-names -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-LE
+; RUN: llc < %s -ppc-asm-full-reg-names -mtriple=ppc64-- -mcpu=pwr7 | FileCheck %s
+; RUN: llc < %s -ppc-asm-full-reg-names -mtriple=ppc64-- -mcpu=pwr8 | FileCheck %s -check-prefix=CHECK-P8U
 
 define i64 @exchange_and_add(i64* %mem, i64 %val) nounwind {
 ; CHECK-LABEL: exchange_and_add:
index 7682f8a7ef46ca9f68c009f574a0bf2324e0c3e3..778d645abf8161fae85972699e67f235b601b16f 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc < %s -mtriple=powerpc-apple-darwin -march=ppc32 -verify-machineinstrs | FileCheck %s
-; RUN: llc < %s -mtriple=powerpc-apple-darwin -march=ppc64 -verify-machineinstrs | FileCheck %s
+; RUN: llc < %s -mtriple=powerpc-apple-darwin -verify-machineinstrs | FileCheck %s
+; RUN: llc < %s -mtriple=powerpc64-apple-darwin -verify-machineinstrs | FileCheck %s
 ; RUN: llc < %s -mtriple=powerpc-apple-darwin -mcpu=440 | FileCheck %s --check-prefix=PPC440
 
 ; Fences
index cfe15f0061c43a68c2d9b9a3f6c86596d6953dc1..48781471f1def5d5529442bd34fe5d962d324117 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc < %s -mtriple=powerpc-apple-darwin -march=ppc32 -verify-machineinstrs | FileCheck %s --check-prefix=CHECK --check-prefix=PPC32
+; RUN: llc < %s -mtriple=powerpc-apple-darwin -verify-machineinstrs | FileCheck %s --check-prefix=CHECK --check-prefix=PPC32
 ; FIXME: -verify-machineinstrs currently fail on ppc64 (mismatched register/instruction).
 ; This is already checked for in Atomics-64.ll
-; RUN: llc < %s -mtriple=powerpc-apple-darwin -march=ppc64 | FileCheck %s --check-prefix=CHECK --check-prefix=PPC64
+; RUN: llc < %s -mtriple=powerpc64-apple-darwin | FileCheck %s --check-prefix=CHECK --check-prefix=PPC64
 
 ; In this file, we check that atomic load/store can make use of the indexed
 ; versions of the instructions.
index 61d54534f5fd17bb6d8a51c8f505842cd1474041..5037fbf8bcee8d10c01b45a07e67bfe233b57cbb 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc < %s -mtriple=powerpc-apple-darwin -march=ppc32 -verify-machineinstrs | FileCheck %s --check-prefix=CHECK --check-prefix=PPC32
+; RUN: llc < %s -mtriple=powerpc-apple-darwin -verify-machineinstrs | FileCheck %s --check-prefix=CHECK --check-prefix=PPC32
 ; FIXME: -verify-machineinstrs currently fail on ppc64 (mismatched register/instruction).
 ; This is already checked for in Atomics-64.ll
-; RUN: llc < %s -mtriple=powerpc-apple-darwin -march=ppc64 | FileCheck %s --check-prefix=CHECK --check-prefix=PPC64
+; RUN: llc < %s -mtriple=powerpc64-apple-darwin | FileCheck %s --check-prefix=CHECK --check-prefix=PPC64
 
 ; FIXME: we don't currently check for the operations themselves with CHECK-NEXT,
 ;   because they are implemented in a very messy way with lwarx/stwcx.
index 6b82cc2dad9e205cc5e8c1173d560daab03a12d9..e38f28bf9030bb154413017b3904043935cf9f15 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | \
 ; RUN:   grep "addc 4, 4, 6"
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | \
 ; RUN:   grep "adde 3, 3, 5"
 
 define i64 @foo(i64 %x, i64 %y) {
index 8273a94bb3b865bec37f89d0c47029c8ce61414d..9d9dc6e8ff6240289f17101d22b79cbbc6403f29 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | \
 ; RUN:   grep "addic 4, 4, 1"
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | \
 ; RUN:   grep "addze 3, 3"
 
 declare i64 @foo()
index 3bf2817e035da48d7713cb7fbd1781b27c3599a5..868a2612e6cc1148fa7b1bbec079d065d6a3d47c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s
 
 declare void @bar(i64 %x, i64 %y)
 
index 3519ffd960c7213915e9f212895438dfcc35f8b0..a367622b764056924c82386b73751b5c0a46f7c6 100644 (file)
@@ -1,9 +1,9 @@
-; RUN: llc -verify-machineinstrs < %s -code-model=small -march=ppc64 -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=SMALL
-; RUN: llc -verify-machineinstrs < %s -code-model=medium -march=ppc64 -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM
-; RUN: llc -verify-machineinstrs < %s -code-model=large -march=ppc64 -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM
-; RUN: llc -verify-machineinstrs < %s -code-model=small -march=ppc64 -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=SMALL
-; RUN: llc -verify-machineinstrs < %s -code-model=medium -march=ppc64 -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM
-; RUN: llc -verify-machineinstrs < %s -code-model=large -march=ppc64 -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM
+; RUN: llc -verify-machineinstrs < %s -code-model=small -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=SMALL
+; RUN: llc -verify-machineinstrs < %s -code-model=medium -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM
+; RUN: llc -verify-machineinstrs < %s -code-model=large -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM
+; RUN: llc -verify-machineinstrs < %s -code-model=small -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=SMALL
+; RUN: llc -verify-machineinstrs < %s -code-model=medium -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM
+; RUN: llc -verify-machineinstrs < %s -code-model=large -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM
 
 define i8* @test() {
 entry:
index e714972b17eab383ef1552e88937aea176c31ad7..dd46b63346471d0135ea14626182ee13aad63379 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s | FileCheck %s
 
 target datalayout = "E-p:32:32"
 target triple = "powerpc-apple-darwin8.7.0"
index 89ce5e8d350589b53f059481b8ca86cd3ef01780..093f7f55635704d29f54195b17fd88e7743264ca 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=ppc32 | FileCheck %s -check-prefix=X32
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=ppc64 | FileCheck %s -check-prefix=X64
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=pwr7 | FileCheck %s -check-prefix=PWR7
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=pwr7 | FileCheck %s -check-prefix=X32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=ppc32 | FileCheck %s -check-prefix=X32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=ppc64 | FileCheck %s -check-prefix=X64
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=pwr7 | FileCheck %s -check-prefix=PWR7
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=pwr7 | FileCheck %s -check-prefix=X32
 
 
 define void @STWBRX(i32 %i, i8* %ptr, i32 %off) {
index e5a5c29d5a755e38602a319fcbb77ae5e95717c9..c59415874489fd7d99b71d313ebe590f3180322f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -mattr=+altivec --enable-unsafe-fp-math | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- -mattr=+altivec --enable-unsafe-fp-math | FileCheck %s
 
 define void @VXOR(<4 x float>* %P1, <4 x i32>* %P2, <4 x float>* %P3) {
         %tmp = load <4 x float>, <4 x float>* %P3            ; <<4 x float>> [#uses=1]
index 4c1b6e2b1a00388a5d331932802fcff83737d541..1fff0eaf237c5468971bbbe7d77660dce7109b26 100644 (file)
@@ -1,10 +1,10 @@
 ; Test various forms of calls.
 
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN:   grep "bl " | count 1
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN:   grep "bctrl" | count 1
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN:   grep "bla " | count 1
 
 declare void @foo()
index a8bb42a4902b4e6ba05be0ee2092d511be310604..b7090054289db1b986458eecf63603bd04c563e6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep mfcr
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep mfcr
 
 define void @test(i64 %X) {
         %tmp1 = and i64 %X, 3           ; <i64> [#uses=1]
index e7bac74e15a9257d2d1815ef054b197792d9f00b..3676f6016a06a6c597eff2fa6752890a8b01cd2d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -mtriple powerpc-apple-darwin8 -march=ppc32 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple powerpc-apple-darwin8 | FileCheck %s
 
 ; Check that *coal* sections are emitted.
 
index ed1c670d9b44d596e84448ca7809c1cc3cd7a596..253df9d0a181f3882a55d349e42af6b857cca3f3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs -march=ppc64 -mcpu=g5 -mtriple=powerpc64-apple-darwin < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -mcpu=g5 -mtriple=powerpc64-apple-darwin < %s | FileCheck %s
 ; Check that the peephole optimizer knows about sext and zext instructions.
 ; CHECK: test1sext
 define i32 @test1sext(i64 %A, i64 %B, i32* %P, i64 *%P2) nounwind {
index c5114fd73037974cfbb8dbee64ea5951095fb4ad..bc2572b51127e8894cde9a7695d278663ed72843 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 | FileCheck %s
 
 define i32 @test(i32 %x) nounwind {
 ; CHECK-LABEL: @test
index 32eee549df61d56be2028184d4148ee08132a56c..9091747a8ed2de4e9757054b4e3c08fdd0b9bd0e 100644 (file)
@@ -1,9 +1,9 @@
 ; All of these routines should be perform optimal load of constants.
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN:   grep lis | count 5
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN:   grep ori | count 3
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN:   grep "li " | count 4
 
 define i32 @f1() {
index 8ac4e7271ac666e0de0ae16d41cee4279ad438f3..12ac6dc39bd14b4c7af26829d0ec2e54872f29f8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=ppc32 -regalloc=fast -O0 -relocation-model=pic -o -
+; RUN: llc < %s -mtriple=ppc32-- -regalloc=fast -O0 -relocation-model=pic -o -
 ; PR1638
 
 @.str242 = external constant [3 x i8]          ; <[3 x i8]*> [#uses=1]
index 3c7abd2615295c2aa1bc29ed38b2758e4ef4b95a..390dd2be208566ab16bf5a4590585d2f5624e752 100644 (file)
@@ -1,6 +1,6 @@
+; RUN: llc -verify-machineinstrs < %s | FileCheck %s
 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
 target triple = "powerpc64-unknown-freebsd10.0"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | FileCheck %s
 
 define void @test1(i32 %c) nounwind {
 entry:
index 2586fcd7d59ed55b00609e2b34afd8d813c89e6e..9fad3cb150c1f3d05398a2c7552190383eaa29f1 100644 (file)
@@ -1,6 +1,6 @@
+; RUN: llc -verify-machineinstrs < %s | FileCheck %s
 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
 target triple = "powerpc64-unknown-linux-gnu"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | FileCheck %s
 
 ; XFAIL: *
 ; SE needs improvement
index 5dddc85719a8a3e6e26cc68857348fe6c5bb4a67..b1ef8586050e7aa1c35e747612635c3bcfb4b47f 100644 (file)
@@ -1,6 +1,6 @@
+; RUN: llc -verify-machineinstrs < %s | FileCheck %s
 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
 target triple = "powerpc64-unknown-linux-gnu"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | FileCheck %s
 
 ; XFAIL: *
 ; SE needs improvement
index afb6f100091ad0357e55388c6f7ebfbe04ae3119..253b8d020adb8ef99968fe76a080c1fcf6358c47 100644 (file)
@@ -1,6 +1,6 @@
+; RUN: llc -verify-machineinstrs < %s | FileCheck %s
 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
 target triple = "powerpc64-unknown-linux-gnu"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | FileCheck %s
 
 ; CHECK: test_pos1_ir_ne
 ; CHECK: bdnz
index 8a2074f472fc5da031634903e31dc774c2121158..477d2aacdf4c3badf77589b4d33bf30d0f528b43 100644 (file)
@@ -1,7 +1,7 @@
+; RUN: llc -verify-machineinstrs < %s | FileCheck %s
 ; ModuleID = 'bugpoint-reduced-simplified.bc'
 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-v128:128:128-n32:64"
 target triple = "powerpc64-unknown-linux-gnu"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | FileCheck %s
 
 %struct.ref_s.1.49.91.115.121.139.145.151.157.163.169.175.181.211 = type { %union.v.0.48.90.114.120.138.144.150.156.162.168.174.180.210, i16, i16 }
 %union.v.0.48.90.114.120.138.144.150.156.162.168.174.180.210 = type { i64 }
index 17dbc0b3e8fb6a6d0e52a62a34d791d32a9d2e1a..ea682c88ec01ca25015316c4a71d5e975b559f28 100644 (file)
@@ -1,7 +1,7 @@
+; RUN: llc -verify-machineinstrs < %s | FileCheck %s
 ; ModuleID = 'tsc_s000.c'
 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-v128:128:128-n32:64"
 target triple = "powerpc64-unknown-linux-gnu"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | FileCheck %s
 
 @Y = common global [16000 x double] zeroinitializer, align 32
 @X = common global [16000 x double] zeroinitializer, align 32
index 0f6fdcfad23b97932672343f67df09c0df682039..5e127307f66c9a4a352ac658cb2f2cf590664915 100644 (file)
@@ -1,7 +1,7 @@
+; RUN: llc -verify-machineinstrs < %s | FileCheck %s
 ; ModuleID = 'SingleSource/Regression/C/sumarray2d.c'
 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-v128:128:128-n32:64"
 target triple = "powerpc64-unknown-linux-gnu"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | FileCheck %s
 
 @.str = private unnamed_addr constant [23 x i8] c"Sum(Array[%d,%d] = %d\0A\00", align 1
 
index e3f6838d067038adb22263eaa7cf4ce43265961a..54abd181f82cfafdfa56722c32306675f85b882a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=ppc64 | FileCheck %s
+; RUN: llc < %s | FileCheck %s
 target datalayout = "E-m:e-i64:64-n32:64"
 target triple = "powerpc64-unknown-linux-gnu"
 
index ac592207308ae3fc4ee618f6d8a05551f6d85bf0..6e84ecfee052533263c4802982888c18c9882bfe 100644 (file)
@@ -1,6 +1,6 @@
+; RUN: llc -verify-machineinstrs < %s -relocation-model=pic | FileCheck %s
 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
 target triple = "powerpc64-unknown-freebsd10.0"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -relocation-model=pic | FileCheck %s
 
 @a = common global i32 0, align 4
 
index 1effc6fcd93ab4a3553d5cac7dffc16f4fcd3916..0cf910d6788d7d461870b90100d021f23d6a6423 100644 (file)
@@ -1,5 +1,5 @@
 ; Make sure this testcase does not use ctpop
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | FileCheck %s
 
 declare i32 @llvm.cttz.i32(i32, i1)
 
index 6089e27ac678dce10880591570242c3cff650c18..9f387460d24be4836aceb874ccea90c443d3784e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -break-anti-dependencies=all -march=ppc64 -mcpu=g5 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -break-anti-dependencies=all -mcpu=g5 | FileCheck %s
 ; CHECK-LABEL: main:
 
 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-v128:128:128-n32:64"
index 631ea82a3fabd1b749aff19c1d6233becb4654b7..ce8a6e765e3be9878fb85857d0f0248671700b35 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
 ; The DAGCombiner leaves behind a dead node in this testcase. Currently
 ; ISel is ignoring dead nodes, though it would be preferable for
index ca11aed8d617eefd4ab841e99b52f800052ca860..81f8d448091e05467e39e1e43ee52844caaddd58 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep srawi 
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep blr
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep srawi
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep blr
 
 define i32 @test1(i32 %X) {
         %Y = and i32 %X, 15             ; <i32> [#uses=1]
index 2fc8624a09e9ad5c4d02f3ec767455d25a28539b..a82424a7ea569fdee6be675d5fb5a59ccec6dacf 100644 (file)
@@ -1,12 +1,12 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN:   grep eqv | count 3
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | \
 ; RUN:   grep andc | count 3
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN:   grep orc | count 2
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | \
 ; RUN:   grep nor | count 3
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN:   grep nand | count 1
 
 define i32 @EQV1(i32 %X, i32 %Y) nounwind {
index 0d8945cb1cd3087b10e506c1b96b0e045337d183..f4c83ec9d0cf3ebb1290b2308cffc53ab3c1c393 100644 (file)
@@ -1,5 +1,5 @@
 ; This should turn into a single extsh
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep extsh | count 1
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep extsh | count 1
 define i32 @test(i32 %X) {
         %tmp.81 = shl i32 %X, 16                ; <i32> [#uses=1]
         %tmp.82 = ashr i32 %tmp.81, 16          ; <i32> [#uses=1]
index 6dedfa90a627b4675789247d78530fe99164dc28..c8cbd00b4dcf914283e829bd1e48a977e20801ee 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -mtriple=powerpc-apple-darwin | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=powerpc-apple-darwin | FileCheck %s
 
 define double @fabs(double %f) {
 ; CHECK-LABEL: fabs:
index 5080e5b250e92aea9ec3e06530cb7febc59f706f..ffa3c22fd8302167d9b56b675010744509275ec7 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -fp-contract=fast -mattr=-vsx -disable-ppc-vsx-fma-mutation=false | FileCheck -check-prefix=CHECK -check-prefix=CHECK-SAFE %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -fp-contract=fast -mattr=-vsx -disable-ppc-vsx-fma-mutation=false | FileCheck -check-prefix=CHECK -check-prefix=CHECK-SAFE %s
 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -fp-contract=fast -mattr=+vsx -mcpu=pwr7 -disable-ppc-vsx-fma-mutation=false | FileCheck -check-prefix=CHECK-VSX -check-prefix=CHECK-VSX-SAFE %s
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -fp-contract=fast -enable-unsafe-fp-math -mattr=-vsx -disable-ppc-vsx-fma-mutation=false | FileCheck -check-prefix=CHECK -check-prefix=CHECK-UNSAFE %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -fp-contract=fast -enable-unsafe-fp-math -mattr=-vsx -disable-ppc-vsx-fma-mutation=false | FileCheck -check-prefix=CHECK -check-prefix=CHECK-UNSAFE %s
 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -fp-contract=fast -enable-unsafe-fp-math -mattr=+vsx -mcpu=pwr7 -disable-ppc-vsx-fma-mutation=false | FileCheck -check-prefix=CHECK-VSX -check-prefix=CHECK-UNSAFE-VSX %s
 
 define double @test_FMADD_ASSOC1(double %A, double %B, double %C,
index 73ceebb5b613c9875c796455ec86f8eb87e46a6a..57771d3a453c5670b449001f66e5ed2f2fb4fef6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -fp-contract=fast -mattr=-vsx -disable-ppc-vsx-fma-mutation=false | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -fp-contract=fast -mattr=-vsx -disable-ppc-vsx-fma-mutation=false | FileCheck %s
 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -fp-contract=fast -mattr=+vsx -mcpu=pwr7 -disable-ppc-vsx-fma-mutation=false | FileCheck -check-prefix=CHECK-VSX %s
 
 define double @test_FMADD_EXT1(float %A, float %B, double %C) {
index 9def59d4de3f9adb293c2798043fc093202662d5..f6c577451892859380053b54017b31156a72a016 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -fp-contract=fast -mattr=-vsx -disable-ppc-vsx-fma-mutation=false | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -fp-contract=fast -mattr=-vsx -disable-ppc-vsx-fma-mutation=false | FileCheck %s
 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -fp-contract=fast -mattr=+vsx -mcpu=pwr7 -disable-ppc-vsx-fma-mutation=false | FileCheck -check-prefix=CHECK-VSX %s
 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -fp-contract=fast -mcpu=pwr8 -disable-ppc-vsx-fma-mutation=false | FileCheck -check-prefix=CHECK-P8 %s
 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -fp-contract=fast -mcpu=pwr8 -disable-ppc-vsx-fma-mutation=false | FileCheck -check-prefix=CHECK-P8 %s
index 5d16ad8722aa3810a0eb3e1d092758441f8cd7ca..e62ab6dcdde8dc23350ef3a5f737e5f6cdfcbbdd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs -march=ppc32 -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s
 
 declare float @fmaxf(float, float)
 declare double @fmax(double, double)
index 706e742e50e4eafaa1fe1bd1cf6b0f04b49fcafa..6b1661965f4dbf47b7485a3e1bec70d07f945dc4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs -march=ppc32 -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s
 
 declare float @fminf(float, float)
 declare double @fmin(double, double)
index aa4a63e05557ad1ff50efe0306aa4ed8f80898e6..d71f5457e9bb1567c8757ff148ad6d514c4cc8da 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 | grep fnabs
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- | grep fnabs
 
 declare double @fabs(double)
 
index c34a7b19503b0742c769be3596f54c27584faa78..1a4f48c11421f6d8c2fbc4f7a1d886779c2e7b27 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep fneg
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep fneg
 
 define double @test1(double %a, double %b, double %c, double %d) {
 entry:
index 4e46ffd3dc0e867d18d2f5fe6c35ec7e7f66c60e..43da003a8fa3fb634ea9342e29b7217e590aedc1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32  | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--  | \
 ; RUN:   grep -v align | not grep li
 
 ;; Test that immediates are folded into these instructions correctly.
index cb8acc5edc19737b40ac1cab9c2fa7a854239372..ba8052d93cb9890d4bf40cb4fc9650ec1ad9032a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 | grep fcmp | count 1
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- | grep fcmp | count 1
 
 declare i1 @llvm.isunordered.f64(double, double)
 
index 0f5ed25cf4d6b96314b0d82db2a2388812e3ab59..186539260e5968c4f819039923beb88232cfa671 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | not grep r1
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | not grep r1
 
 define double @test1(double %X) {
         %Y = fptosi double %X to i64            ; <i64> [#uses=1]
index 676b37c1462ebff88df05675f7d3e982e496bc3f..637294d0f242947b1b082adf5c995844ccf221c4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 | grep fctiwz | count 1
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- | grep fctiwz | count 1
 
 
 define i16 @foo(float %a) {
index ad814a5420e62b2b223ad46fa415b464c5ae7f9c..1416423357acba5369ddb4c658663d40b8a2f1a2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep fmr
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep fmr
 
 define double @test(float %F) {
         %F.upgrd.1 = fpext float %F to double           ; <double> [#uses=1]
index 24292d23dff83169ac60d87accf0aa4ab03fd20e..8286d8299c4ab34b3f0faf84efab3c17b0022580 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
 define i32 @foo() {
 entry:
index 4cc9be9cbaddb21c41639517e1a304266f50fa2d..d7b8e57523bc95666c76d24de022b6cc97c5fc65 100644 (file)
@@ -1,13 +1,13 @@
 ; fsqrt should be generated when the fsqrt feature is enabled, but not 
 ; otherwise.
 
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=+fsqrt | \
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=powerpc-apple-darwin8 -mattr=+fsqrt | \
 ; RUN:   grep "fsqrt f1, f1"
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
 ; RUN:   grep "fsqrt f1, f1"
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-fsqrt | \
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=powerpc-apple-darwin8 -mattr=-fsqrt | \
 ; RUN:   not grep "fsqrt f1, f1"
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g4 | \
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=powerpc-apple-darwin8 -mcpu=g4 | \
 ; RUN:   not grep "fsqrt f1, f1"
 
 declare double @llvm.sqrt.f64(double)
index 91133c47de8fadaaab9dc1c785a8d31794f0f0c8..23b2e0702656ed1e0b6e6af9c84d25615dfcba4f 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
-; RUN: llc -verify-machineinstrs < %s -march=ppc64
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64--
 ; PR1399
 
 @.str = internal constant [13 x i8] c"Hello World!\00"
index 7871ac7ae05b3f306494b174325999574bc900bb..bb595e3ad1ce7323e8f5581ab3165a1215fb9fa1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs -march=ppc32 -mcpu=ppc32 -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -mcpu=ppc32 -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s
 define double @test(i1 %X) {
         %Y = uitofp i1 %X to double
         ret double %Y
index acdea09f447eba456385643a8a2ee97a806311da..073a943ee10980d1a23dbfd494f627974ec43891 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep 4294967295 | count 28
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep 4294967295 | count 28
 
 ; These static initializers are too big to hand off to assemblers
 ; as monolithic blobs.
index 99f331d737e41937e905641215a193ba3e64b965..b9456150df7b8ac3e600e7dd0d80710474bc8d00 100644 (file)
@@ -1,21 +1,21 @@
 ; fcfid and fctid should be generated when the 64bit feature is enabled, but not
 ; otherwise.
 
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -mattr=+64bit | \
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- -mattr=+64bit | \
 ; RUN:   grep fcfid
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -mattr=+64bit | \
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- -mattr=+64bit | \
 ; RUN:   grep fctidz
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -mcpu=g5 | \
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- -mcpu=g5 | \
 ; RUN:   grep fcfid
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -mcpu=g5 | \
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- -mcpu=g5 | \
 ; RUN:   grep fctidz
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -mattr=-64bit | \
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- -mattr=-64bit | \
 ; RUN:   not grep fcfid
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -mattr=-64bit | \
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- -mattr=-64bit | \
 ; RUN:   not grep fctidz
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -mcpu=g4 | \
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- -mcpu=g4 | \
 ; RUN:   not grep fcfid
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -mcpu=g4 | \
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- -mcpu=g4 | \
 ; RUN:   not grep fctidz
 
 define double @X(double %Y) {
index e37ed107bfa067fe023bcffc16a2e9864225b1f1..fb9948ec3df8b747ccdf8b46fad3bc930189cdfb 100644 (file)
@@ -1,5 +1,5 @@
 ; REQUIRES: asserts
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -stats 2>&1 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -stats 2>&1 | \
 ; RUN:   grep "4 .*Number of machine instrs printed"
 
 ;; Integer absolute value, should produce something as good as:
index 48107efbd45882944f2c53527ca7494b4485ec7a..5ac7085be3c7428116cbb5b5e27b33b8ce5cc965 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g3
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g3
 
 define void @foo() {
 entry:
index c040d7859a8b07c1ee6f439bfe115531c8e0f9c5..4727e22730a13379eaf1e51d8b764d5189770824 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc < %s -relocation-model=pic -march=ppc32 -mtriple=powerpc-apple-darwin | FileCheck %s -check-prefix=PIC
-; RUN: llc < %s -relocation-model=static -march=ppc32 -mtriple=powerpc-apple-darwin | FileCheck %s -check-prefix=STATIC
-; RUN: llc < %s -relocation-model=pic -march=ppc64 -mtriple=powerpc64-apple-darwin | FileCheck %s -check-prefix=PPC64
+; RUN: llc < %s -relocation-model=pic -mtriple=powerpc-apple-darwin | FileCheck %s -check-prefix=PIC
+; RUN: llc < %s -relocation-model=static -mtriple=powerpc-apple-darwin | FileCheck %s -check-prefix=STATIC
+; RUN: llc < %s -relocation-model=pic -mtriple=powerpc64-apple-darwin | FileCheck %s -check-prefix=PPC64
 
 @nextaddr = global i8* null                       ; <i8**> [#uses=2]
 @C.0.2070 = private constant [5 x i8*] [i8* blockaddress(@foo, %L1), i8* blockaddress(@foo, %L2), i8* blockaddress(@foo, %L3), i8* blockaddress(@foo, %L4), i8* blockaddress(@foo, %L5)] ; <[5 x i8*]*> [#uses=1]
index 0d5f6a6aeb97bed7640aa96030d6549034d9338e..36fed54ba4efbdfa1e20e8ca56c6170354a9f1f4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=ppc32 -no-integrated-as -verify-machineinstrs | FileCheck %s
+; RUN: llc < %s -mtriple=ppc32-- -no-integrated-as -verify-machineinstrs | FileCheck %s
 
 ; CHECK-NOT: mr
 define i32 @test(i32 %Y, i32 %X) {
index 2bf671be3e5bd6e0d32dd04f5665abcb234c7759..5b549003912a764b3845a7faee69486b8b69ddf0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 > %t
+; RUN: llc -verify-machineinstrs < %s > %t
 ; RUN: grep  __floattitf %t
 ; RUN: grep  __fixunstfti %t
 
index c73f540e3a139d063dbd36214dda99653d180131..0f201f598691d7190612b990f00aa25ffb5ffd4a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- | FileCheck %s
 ; CHECK-NOT: __floatditf
 
 define i64 @__fixunstfdi(ppc_fp128 %a) nounwind  {
index 4b964b7c8114c267c499b85cd1a452433b033920..f35d6edf22a59a4d350d27e1ac032e079cb502c0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep xori
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep xori
 
 define i32 @test(i1 %B, i32* %P) {
         br i1 %B, label %T, label %F
index c3eb7a295d91492d78673551ce158b7aa8981785..824f721402e5c37a591555fcd406060ae5f4ac45 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 | \
 ; RUN:   grep "srwi r3, r3, 31"
 
 define i32 @test1(i32 %X) {
index ea8ba33a460ae28d1b0a9e67d47fedca07a8e516..1336ba7c626166a255be9118c08d97622dced2d0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64
+; RUN: llc -verify-machineinstrs < %s
 
 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-f128:64:128"
 target triple = "powerpc64-apple-darwin9.2.0"
index 1412582588d5cfb46018423feabbd25d5a5d3456..e85f462350a79064fba103bab979af4ce67f4302 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep lha
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep lha
 
 define i32 @test(i16* %a) {
         %tmp.1 = load i16, i16* %a           ; <i16> [#uses=1]
index f2c69eb2b4ac01083fce10fd2edb1b5405f0c73b..4e97925eca9f92b3ceaa7cd68641c4eaae8855ed 100644 (file)
@@ -1,6 +1,6 @@
 ; Should fold the ori into the lfs.
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep lfs
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep ori
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep lfs
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep ori
 
 define float @test() {
         %tmp.i = load float, float* inttoptr (i32 186018016 to float*)         ; <float> [#uses=1]
index 2a4877721a733c775055414bee8d9a395e8d3aa3..7a06b3ed605377fdf9be38487ce42ffc6144d51b 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep cntlzw
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep xori 
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep "li "
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep "mr "
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep cntlzw
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep xori
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep "li "
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep "mr "
 
 define i1 @test(i64 %x) {
   %tmp = icmp ult i64 %x, 4294967296
index 543877d60cfae8a2f0d14d4c12a203443c250a5f..eab05157ca271de0e597a01dfda9a153dccf02e0 100644 (file)
@@ -4,26 +4,26 @@
 ; so we only test that -filetype=obj tries to parse the assembly.
 ; FIXME: PowerPC doesn't appear to support -filetype=obj for ppc64le
 
-; SKIP: not llc -march=ppc32 < %s > /dev/null 2> %t1
+; SKIP: not llc -mtriple=ppc32-- < %s > /dev/null 2> %t1
 ; SKIP: FileCheck %s < %t1
 
-; RUN: not llc -march=ppc32 -filetype=obj < %s > /dev/null 2> %t2
+; RUN: not llc -mtriple=ppc32-- -filetype=obj < %s > /dev/null 2> %t2
 ; RUN: FileCheck %s < %t2
 
 ; Test that we don't try to produce COFF for ppc.
 ; RUN: not llc -mtriple=powerpc-mingw32 -filetype=obj < %s > /dev/null 2> %t2
 ; RUN: FileCheck %s < %t2
 
-; SKIP: not llc -march=ppc64 < %s > /dev/null 2> %t3
+; SKIP: not llc -mtriple=ppc64-- < %s > /dev/null 2> %t3
 ; SKIP: FileCheck %s < %t3
 
-; RUN: not llc -march=ppc64 -filetype=obj < %s > /dev/null 2> %t4
+; RUN: not llc -mtriple=ppc64-- -filetype=obj < %s > /dev/null 2> %t4
 ; RUN: FileCheck %s < %t4
 
-; SKIP: not llc -march=ppc64le < %s > /dev/null 2> %t5
+; SKIP: not llc -mtriple=ppc64--le < %s > /dev/null 2> %t5
 ; SKIP: FileCheck %s < %t5
 
-; SKIP: not llc -march=ppc64le -filetype=obj < %s > /dev/null 2> %t6
+; SKIP: not llc -mtriple=ppc64--le -filetype=obj < %s > /dev/null 2> %t6
 ; SKIP: FileCheck %s < %t6
 
 module asm "   .this_directive_is_very_unlikely_to_exist"
index 26c3cc881b39288201af9c82b488e90b01d8d082..e8c12cc36bda5e808ffa02cf99ae89dbe421e763 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | grep li.*16
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | not grep addi
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | grep li.*16
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | not grep addi
 
 ; Codegen lvx (R+16) as t = li 16,  lvx t,R
 ; This shares the 16 between the two loads.
index 6d4a787ce0273d0102aefebe7548fb8bda068133..e02c639c1fdb332269833fbf81a2a6eb71375216 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
 ; RUN:   not grep addi
-; RUN: llc -verify-machineinstrs -code-model=small < %s -march=ppc64 | \
+; RUN: llc -verify-machineinstrs -code-model=small < %s -mtriple=ppc64-- | \
 ; RUN:   not grep addi
 
 @Glob = global i64 4
index 5290b0532a96656240f02ba76b647e978be1bc25..81e8d6c37691553ec370eaf62356cd4ad13d9c13 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep mul
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep mul
 
 define i32 @test1(i32 %a) {
         %tmp.1 = mul i32 %a, -2         ; <i32> [#uses=1]
index 85b07fc3298c74922cbf658e6516ed885b926fa8..1c0dbc5a19277fdb92a6843f90388af803ba429c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
 declare {i32, i1} @llvm.umul.with.overflow.i32(i32 %a, i32 %b)
 define zeroext i1 @a(i32 %x)  nounwind {
index 8e303d3c7753c91e43d3f6b650345e73946186b4..b52384f680458139da2f2e6ec89f2922749a8f9a 100644 (file)
@@ -1,5 +1,5 @@
 ; All of these ands and shifts should be folded into rlwimi's
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -o %t
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -o %t
 ; RUN: not grep mulhwu %t
 ; RUN: not grep srawi %t 
 ; RUN: not grep add %t 
index 57345df4d2f1a5d906cf32dc5a447fb4bdaa70a4..9bbec5b241883804fc238eaab57417ae649417bf 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -no-integrated-as
+; RUN: llc -verify-machineinstrs < %s -no-integrated-as
 ; ModuleID = 'mult-alt-generic.c'
 target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32"
-target triple = "powerpc"
+target triple = "powerpc--"
 
 @mout0 = common global i32 0, align 4
 @min1 = common global i32 0, align 4
index aefcaf1254e3835533a78117cddc419453993785..1fa9c0d3c130229608f125e92aa19f42ee5a67e1 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -no-integrated-as
+; RUN: llc -verify-machineinstrs < %s -no-integrated-as
 ; ModuleID = 'mult-alt-generic.c'
 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-v128:128:128-n32:64"
-target triple = "powerpc64"
+target triple = "powerpc64--"
 
 @mout0 = common global i32 0, align 4
 @min1 = common global i32 0, align 4
index 3828c23c9ad9abdaebb6d388445cad87b18583a8..37d2897d01647f5725975068198993cfe0b7e59b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep neg
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep neg
 
 define i32 @test(i32 %X) {
         %Y = sub i32 0, %X              ; <i32> [#uses=1]
index 614a0786f7eabdcf906ed8908f5a4eff73f25dd9..9c71c94f5101587b50d5a9e53c601fa4823b5873 100644 (file)
@@ -1,8 +1,8 @@
-; RUN: llc -verify-machineinstrs -march=ppc64 -mattr=+popcntd < %s | FileCheck %s
-; RUN: llc -verify-machineinstrs -march=ppc64 -mattr=+slow-popcntd < %s | FileCheck %s --check-prefix=SLOWPC
-; RUN: llc -verify-machineinstrs -march=ppc64 -mcpu=pwr7 < %s | FileCheck %s
-; RUN: llc -verify-machineinstrs -march=ppc64 -mcpu=a2q < %s | FileCheck %s --check-prefix=SLOWPC
-; RUN: llc -verify-machineinstrs -march=ppc64 -mcpu=a2q -mattr=+popcntd < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -mtriple=ppc64-- -mattr=+popcntd < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -mtriple=ppc64-- -mattr=+slow-popcntd < %s | FileCheck %s --check-prefix=SLOWPC
+; RUN: llc -verify-machineinstrs -mtriple=ppc64-- -mcpu=pwr7 < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -mtriple=ppc64-- -mcpu=a2q < %s | FileCheck %s --check-prefix=SLOWPC
+; RUN: llc -verify-machineinstrs -mtriple=ppc64-- -mcpu=a2q -mattr=+popcntd < %s | FileCheck %s
 
 define i8 @cnt8(i8 %x) nounwind readnone {
   %cnt = tail call i8 @llvm.ctpop.i8(i8 %x)
index d5ea044599eee7a44f45b144c2fcffc01e10cb35..3468a91a1b631001095a2b92af34eac8c1165fd5 100644 (file)
@@ -1,6 +1,6 @@
+; RUN: llc < %s | FileCheck %s
 target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32"
 target triple = "powerpc-montavista-linux-gnuspe"
-; RUN: llc < %s -march=ppc32 | FileCheck %s
 
 %struct.__va_list_tag.0.9.18.23.32.41.48.55.62.67.72.77.82.87.90.93.96.101.105 = type { i8, i8, i16, i8*, i8* }
 
index 635a0e7fc1fe26435390e5d06c731d43772a244c..71836b49299241d6c62e0a9121b563683bfb97b4 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=ppc32 | FileCheck %s
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=ppc32 -mtriple=powerpc-darwin9 | FileCheck %s -check-prefix=CHECK-D
+; RUN: llc -verify-machineinstrs < %s -mcpu=ppc32 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mcpu=ppc32 -mtriple=powerpc-darwin9 | FileCheck %s -check-prefix=CHECK-D
 target triple = "powerpc-unknown-linux-gnu"
 
 declare void @printf(i8*, ...)
index 724c56bb5dc3c75526cdb0ebf8295428271c378d..646722958f5620020ff30ca425e0dba939a62f35 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=440 -fp-contract=fast | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=440 -fp-contract=fast | FileCheck %s
 
 %0 = type { double, double }
 
index 97ca032db5b746b997efe32b85b35e8e11b9e5c5..fd1c5c62d567139deb4f3918e5c70380dddba4d2 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | FileCheck %s
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2 | FileCheck %s
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=440 | FileCheck %s -check-prefix=BE-CHK
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=a2 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=440 | FileCheck %s -check-prefix=BE-CHK
 
 define i32 @has_a_fence(i32 %a, i32 %b) nounwind {
 entry:
index 74182b05420425438dc600dde941394f8da74cba..c0ab39d899e537218058553dc6f0bec4187228ff 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mattr=+altivec | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mattr=+altivec | FileCheck %s
 
 target datalayout = "E-m:e-i64:64-n32:64"
 target triple = "powerpc64-unknown-linux-gnu"
index 88756086fea591c214a6bb181f56ee804ff187a7..69f4759eac78932654a2c732609f6e958b202938 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs -O1 < %s -march=ppc64 -mcpu=pwr7 | FileCheck %s
+; RUN: llc -verify-machineinstrs -O1 < %s -mcpu=pwr7 | FileCheck %s
 
 target datalayout = "E-m:e-i64:64-n32:64"
 target triple = "powerpc64-unknown-linux-gnu"
index 907c945c5d6b6bad329566d83c61510f46bee5e0..d4831ffa7a4303d88fcfff0f8c90cbcfc6d463ca 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -relocation-model=static -verify-machineinstrs < %s -march=ppc64 -mcpu=pwr7 | FileCheck %s
+; RUN: llc -relocation-model=static -verify-machineinstrs < %s -mcpu=pwr7 | FileCheck %s
 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
 target triple = "powerpc64-unknown-linux-gnu"
 
index 7ca5332865caacd08f459df93d663d9b6607dede..9d7526c54d5ba90c5c576cdc7de8e6d8b9bdcfd4 100644 (file)
@@ -4,7 +4,7 @@
 ; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -enable-ppc-prefetching=true -ppc-loop-prefetch-cache-line=64 | FileCheck %s -check-prefix=CHECK-DCBT
 ; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 -enable-ppc-prefetching=true | FileCheck %s
 ; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 -enable-ppc-prefetching=true -ppc-loop-prefetch-cache-line=64 | FileCheck %s -check-prefix=CHECK-DCBT
-; RUN: llc < %s -march=ppc64 -mcpu=a2 -enable-ppc-prefetching=true | FileCheck %s -check-prefix=CHECK-DCBT
+; RUN: llc < %s -mtriple=ppc64-- -mcpu=a2 -enable-ppc-prefetching=true | FileCheck %s -check-prefix=CHECK-DCBT
 
 ; Function Attrs: nounwind
 define signext i32 @check_cache_line() local_unnamed_addr {
index 6fcbdda4e34f0c5bbf71757111fd8fa4edc21538..91119786b1f54ef0881f0225ae35fe6dc275d069 100644 (file)
@@ -1,8 +1,8 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64le -mcpu=pwr8 \
+; RUN: llc -verify-machineinstrs < %s -mcpu=pwr8 \
 ; RUN:   -mattr=+altivec -mattr=-vsx | FileCheck %s
-; RUN: llc -verify-machineinstrs < %s -march=ppc64le -mattr=+altivec \
+; RUN: llc -verify-machineinstrs < %s -mattr=+altivec \
 ; RUN:   -mattr=-vsx | FileCheck %s
-; RUN: llc -verify-machineinstrs < %s -march=ppc64le -mcpu=pwr9 \
+; RUN: llc -verify-machineinstrs < %s -mcpu=pwr9 \
 ; RUN:   -mattr=-direct-move -mattr=+altivec | FileCheck %s
 
 ; Currently VSX support is disabled for this test because we generate lxsdx
index 133dde687df91ba3815d680e4aa540ecfc289a42..3eab2dba5644e2a46bbe0c0c19a3d772405bd375 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs -march=ppc64le -mcpu=pwr8 < %s | FileCheck %s
-; RUN: llc -verify-machineinstrs -march=ppc64le < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -mcpu=pwr8 < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s | FileCheck %s
 
 ; The second run of the test case is to ensure the behaviour is the same
 ; without specifying -mcpu=pwr8 as that is now the baseline for ppc64le.
index 17f92185f04c7e11582838a914cb2c44f5144f1d..ec51f91a3059a9bbbc7ea2d2e1fbf448b6d9a434 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs -march=ppc64le -code-model=large < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -code-model=large < %s | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-n32:64"
 target triple = "powerpc64le-unknown-linux-gnu"
index 8f7b0ff11172674d59d0e1d88940d0e248b6f6af..e894a545a1bf73ae8f7929ab4f0484eb03b11e55 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc -verify-machineinstrs -march=ppc64le -mcpu=pwr8 < %s | FileCheck %s
-; RUN: llc -verify-machineinstrs -march=ppc64le -mcpu=pwr8 -O0 < %s | FileCheck %s
-; RUN: llc -verify-machineinstrs -march=ppc64le < %s | FileCheck %s
-; RUN: llc -verify-machineinstrs -march=ppc64le -O0 < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -mcpu=pwr8 < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -mcpu=pwr8 -O0 < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -O0 < %s | FileCheck %s
 
 ; The second run of the test case is to ensure the behaviour is the same
 ; without specifying -mcpu=pwr8 as that is now the baseline for ppc64le.
index 04c97e8349f1a22aca58cb34211131da129da929..66eb4548c170e85b037345ee74e6e9f39e64e645 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64--
 
 define i64 @__fixtfdi(ppc_fp128 %a) nounwind  {
 entry:
index e06df4bf239996f9bafe8ddf4417b017dde5de44..b9a35e0149238027b5fb01066ced956b1772ed9a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
        %struct.stp_sequence = type { double, double }
 
 define i32 @stp_sequence_set_short_data(%struct.stp_sequence* %sequence, i32 %count, i16* %data) {
index 13c08ce7f9f4dc6d5433269572a39fc0fac16866..67fcf46147fe332cdf5fed3f377486c72be2529e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 
 define ppc_fp128 @__floatditf(i64 %u) nounwind  {
 entry:
index 1bd76115605cdaa33c7a85af029606903912f4a8..40d6036a99f6e8a4f9e0444cdf01bc833a4c53a0 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mtriple=powerpc64-unknown-linux-gnu
-; RUN: llc -verify-machineinstrs < %s -march=ppc64le -mtriple=powerpc64le-unknown-linux-gnu
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu
 
 %"class.std::__1::locale::id.1580.4307.4610.8491" = type { %"struct.std::__1::once_flag.1579.4306.4609.8490", i32 }
 %"struct.std::__1::once_flag.1579.4306.4609.8490" = type { i64 }
index bbfbca9a65bb0150a82d4eef311b1897de8c1577..331870e456f33b61e3508e14823351830a90576f 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mtriple=powerpc64-unknown-linux-gnu
-; RUN: llc -verify-machineinstrs < %s -march=ppc64le -mtriple=powerpc64le-unknown-linux-gnu
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu
 
 %class.Point.1 = type { %class.Tensor.0 }
 %class.Tensor.0 = type { [3 x double] }
index da210b85d1af2e7904b65f920c38fcdedbad1ea2..fc81efeeed99cb6ca0733f0301db77d4c8f32de4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5
 
 ; Test that causes a abort in expanding a bit convert due to a missing support
 ; for widening.
index 9461d2b667c1904d64e9d9fb08d4ee09ee643639..e74418ed693e8bb1b43cd38b8fded11484986e8b 100644 (file)
@@ -1,10 +1,10 @@
 ; Test basic support for some older processors.
 
-;RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=pwr3 | FileCheck %s
-;RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=pwr4 | FileCheck %s
-;RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=pwr5 | FileCheck %s
-;RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=pwr5x | FileCheck %s
-;RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=pwr6x | FileCheck %s
+;RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=pwr3 | FileCheck %s
+;RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=pwr4 | FileCheck %s
+;RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=pwr5 | FileCheck %s
+;RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=pwr5x | FileCheck %s
+;RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=pwr6x | FileCheck %s
 
 define void @foo() {
 entry:
index b4accea5b6c879e7b722f320d0c6f7b2e4f059af..36555b029abe1579ebcb0d98fcde24cf70badd47 100644 (file)
@@ -1,6 +1,6 @@
+; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s
 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
 target triple = "powerpc64-bgq-linux"
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2q | FileCheck %s
 
 define void @s452(i32 %inp1) nounwind {
 entry:
index 061e36ce491a602da84f60117eeba87c4fce0094..ccbbd162a0cdb47a9ce617fa70ab91bcb0d7591c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2q | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s
 target triple = "powerpc64-bgq-linux"
 
 declare <4 x double> @foo(<4 x double> %p)
index 9b65aa45f8994656c8b9161ab8410c84ee1ecbbb..514f0934b6cfcc26cf89ee56be88633eee95f463 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2q | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s
 target triple = "powerpc64-bgq-linux"
 
 define <4 x double> @foo(<4 x double>* %p) {
index 30c5f0b100ebe615cb9c2db91cf1a93a8da5ffcc..57d7e3b0ded3c4db5e0bec055f103359dee0063f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2q | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s
 target triple = "powerpc64-bgq-linux"
 
 define <4 x float> @foo(<4 x float>* %p) {
index 541eefafa78867dc806a447ae79cd88e5c669259..83b444b044cd9572a723adce19f8c6e7f69786fd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2q | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s
 target triple = "powerpc64-bgq-linux"
 
 @R = global <4 x i1> <i1 0, i1 0, i1 0, i1 0>, align 16
index 1c51ecc52fa5d3f34b7989a3b95d23cbeaf0f9f0..81cff7b6457f14d1358a53093377ef7b373168aa 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2q | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s
 target triple = "powerpc64-bgq-linux"
 
 define void @foo(<4 x float> %v, <4 x float>* %p) {
index 4278d357760ad5b5fe243ad4195b0b9100f14140..b027d602eb4939ff9c1ac58eb52c223195ce8b19 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2q | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s
 target triple = "powerpc64-bgq-linux"
 
 @R = global <4 x i1> <i1 0, i1 0, i1 0, i1 0>, align 16
index 61dcbec726d67274b8a68d7a7ac475e81a1c4e6f..2b96576ce449305f16cdf978c674951ade1b6940 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 -mcpu=a2q | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s
 target triple = "powerpc64-bgq-linux"
 
 define void @foo(<4 x double> %v, <4 x double>* %p) {
index c9e97cd28991b030a0f1b728cf7ba27b9b959f95..06af1c6245a82c0695b884d0ea96de81ad4e6f2b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32  | not grep or
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--  | not grep or
 
 %struct.foo = type { i32, i32, [0 x i8] }
 
index 216d5a709340d9b67a3e0cea202d7a8a800201cd..8dba2be6930756502fab34e66c364f1fd1c9180b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -march=ppc32 -relocation-model=pic < %s | FileCheck %s
+; RUN: llc -relocation-model=pic < %s | FileCheck %s
 
 ; The load restoring r30 at the end of the function was placed out of order
 ; relative to its uses as the PIC base pointer.
@@ -11,7 +11,7 @@
 ; CHECK-NOT:   30,
 
 target datalayout = "E-m:e-p:32:32-i64:64-n32"
-target triple = "powerpc"
+target triple = "powerpc--"
 
 define double @fred(i64 %a) #0 {
 entry:
index d8b6a18d316250fa5f0cf7c6b09b72e18e186185..3794f6e12af789211f27f984a494ef23c22bfe48 100644 (file)
@@ -1,8 +1,6 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep mflr
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep lwz
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | grep "ld r., 16(r1)"
-
-target triple = "powerpc-apple-darwin8"
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 | grep mflr
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 | grep lwz
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-apple-darwin8 | grep "ld r., 16(r1)"
 
 define void @foo(i8** %X) nounwind {
 entry:
index 3cd95d2a7e1bc5daee7cfe214ae35d3754931354..11e5fdc10fadbc76e879d47a3a5387066a873dec 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64--
 
 define i128 @__fixsfdi(float %a) {
 entry:
index 34351d884755c7976d36f4774bb2520e388f2fdc..e06c339584ee65b22c37a902b90172ac5a649dc2 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep rlwimi
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep "or "
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep rlwimi
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep "or "
 
 ; Make sure there is no register-register copies here.
 
index 9c55b4301c1eb287563f98e958a907fde8ad3ff8..9897d2b9a571a0547f2a2b8c77c9839de61ecb3b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin | FileCheck %s
 ; Formerly dropped the RHS of %tmp6 when constructing rlwimi.
 ; 7346117
 
index ba795ea93c520bd56f9c5a54a4eaf810d12ea20c..e701236b840b2c1d73eca44777aea653e2f24354 100644 (file)
@@ -1,6 +1,6 @@
 ; All of these ands and shifts should be folded into rlwimi's
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep and
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep rlwimi | count 8
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep and
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep rlwimi | count 8
 
 define i32 @test1(i32 %x, i32 %y) {
 entry:
index 5fe963a700733e3b4850758fa39614ac31d9d5cd..4474ddf759df4e2995dddfe8a2a8da5f76eddb58 100644 (file)
@@ -1,5 +1,5 @@
 ; All of these ands and shifts should be folded into rlwimi's
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -o %t
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -o %t
 ; RUN: grep rlwimi %t | count 4
 ; RUN: not grep srwi %t
 ; RUN: not grep slwi %t
index da4ae459643440718ab695e845742a22fb990c64..eb3ab795356138f3551425fc3405746719c0d7c7 100644 (file)
@@ -1,5 +1,5 @@
 ; REQUIRES: asserts
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -stats 2>&1 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -stats 2>&1 | \
 ; RUN:   grep "Number of machine instrs printed" | grep 12
 
 define i16 @Trans16Bit(i32 %srcA, i32 %srcB, i32 %alpha) {
index 7755f8295743ea620c0b90deedd3c515a24324a2..2f3b3bf003cf653c10bffc2eaef8b5e63ddedc54 100644 (file)
@@ -1,5 +1,5 @@
 ; All of these ands and shifts should be folded into rlwimi's
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -o %t
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -o %t
 ; RUN: not grep and %t
 ; RUN: not grep srawi %t
 ; RUN: not grep srwi %t
index 4faea96416339a0e0f8540c9ef26eb3b24f6b1a8..87b5cddaeb930a32691109dcaff47646517070df 100644 (file)
@@ -1,5 +1,5 @@
 ; All of these ands and shifts should be folded into rlw[i]nm instructions
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -o %t
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -o %t
 ; RUN: not grep and %t
 ; RUN: not grep srawi %t 
 ; RUN: not grep srwi %t 
index 6247b939453aa51b75cd8391a104ee7e2f7478b5..43d34f6f8c73fd17d28f6fbfd92ff2319ef10c5a 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32  | grep rotlwi | count 2
-; RUN: llc -verify-machineinstrs < %s -march=ppc32  | grep clrlwi | count 2
-; RUN: llc -verify-machineinstrs < %s -march=ppc32  | grep rotlw | count 4
-; RUN: llc -verify-machineinstrs < %s -march=ppc32  | not grep or
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--  | grep rotlwi | count 2
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--  | grep clrlwi | count 2
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--  | grep rotlw | count 4
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--  | not grep or
 
 define i32 @rotl32(i32 %A, i8 %Amt) nounwind {
        %shift.upgrd.1 = zext i8 %Amt to i32            ; <i32> [#uses=1]
index 6942f3c63ae5bfcdfb3f0365876f9725bc55e8e4..f8e8378371cc2dabbae27827895518f8b66c877c 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | grep rotld
-; RUN: llc -verify-machineinstrs < %s -march=ppc64 | grep rotldi
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- | grep rotld
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- | grep rotldi
 ; PR1613
 
 define i64 @t1(i64 %A) {
index 35780de887cbde71b4fd1b939b5aa9b29ce19b58..5204d28a144d8f2d1a7438bee799db09f63b6f50 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep rotrw: | count 1
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep rotlw: | count 1
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep rotlwi: | count 1
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep rotrwi: | count 1
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep rotrw: | count 1
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep rotlw: | count 1
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep rotlwi: | count 1
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep rotrwi: | count 1
 
 define i32 @rotlw(i32 %x, i32 %sh) {
 entry:
index 2e213ea82f8210cc1acf41423b3d28e54ebb7742..5c15145af2378741edf685e55af339c573bbf562 100644 (file)
@@ -1,7 +1,7 @@
+; RUN: llc -verify-machineinstrs < %s -enable-misched -mcpu=a2 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -enable-misched -enable-aa-sched-mi -mcpu=a2 | FileCheck %s
 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
 target triple = "powerpc64-bgq-linux"
-; RUN: llc -verify-machineinstrs < %s -enable-misched -march=ppc64 -mcpu=a2 | FileCheck %s
-; RUN: llc -verify-machineinstrs < %s -enable-misched -enable-aa-sched-mi -march=ppc64 -mcpu=a2 | FileCheck %s
 
 @aa = external global [256 x [256 x double]], align 32
 @bb = external global [256 x [256 x double]], align 32
index 1c7e19a1d5cb3040c338e30a64f52b2c579bce09..2e403cb80f4af359855a15cd2da8067976de6f1a 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc -march=ppc64 -ppc-always-use-base-pointer < %s | FileCheck %s --check-prefix CHECK --check-prefix PPC64
-; RUN: llc -march=ppc32 -ppc-always-use-base-pointer < %s | FileCheck %s --check-prefix CHECK --check-prefix PPC32
-; RUN: llc -march=ppc32 -ppc-always-use-base-pointer -relocation-model pic < %s | FileCheck %s --check-prefix CHECK --check-prefix PPC32PIC
+; RUN: llc -mtriple=ppc64-- -ppc-always-use-base-pointer < %s | FileCheck %s --check-prefix CHECK --check-prefix PPC64
+; RUN: llc -ppc-always-use-base-pointer < %s | FileCheck %s --check-prefix CHECK --check-prefix PPC32
+; RUN: llc -ppc-always-use-base-pointer -relocation-model pic < %s | FileCheck %s --check-prefix CHECK --check-prefix PPC32PIC
 
 ; CHECK-LABEL: fred:
 
index 9fabca1860505b6ffb5db73611e286addf514291..c5f4bf369fecbea11ee0476a4f98279e7ae5a4db 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -march=ppc32 -relocation-model pic < %s | FileCheck %s
+; RUN: llc -relocation-model pic < %s | FileCheck %s
 ;
 ; Make sure that the CR register is saved correctly on PPC32/SVR4.
 
index b7b3c1ada9653a9f536e6e84a25bc4a5c8dcc844..a42ae66ac374bf2b19c8bd5fb188baf406e7c433 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -march=ppc32 -relocation-model pic < %s | FileCheck %s
+; RUN: llc -relocation-model pic < %s | FileCheck %s
 
 ; CHECK-LABEL: fred
 ; CHECK: stwux 1, 1, 0
index 104f4335c3181929afdcaa2a11f2967306d3777e..7b2421735d8967f65d7d1786abb698fbb56f42d1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
 ; PR3011
 
 define <2 x double> @vector_select(<2 x double> %x, <2 x double> %y) nounwind  {
index 20d372a4cfd432ce7529740b5f1b89929f51bcca..9164ee0c4e2734abdaf7cdc307945beb6ba48072 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep cmp
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep cmp
 
 define i32 @seli32_1(i32 %a) {
 entry:
index d3501fc88b6745d9a42d6970dbfa848ca6b70d8d..14d64071c7028296208b4fd699baccef289a4f4c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep rlwinm
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep rlwinm
 
 ; FIXME: This optimization has temporarily regressed with crbits enabled by
 ; default at the default CodeOpt level.
index 4863ca266cc7522db43fa58a817aab02206af5bd..721b6613c8ccc5dfb0af1ec69b13a963e75d26e2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 | FileCheck %s
 
 define i32 @eq0(i32 %a) {
         %tmp.1 = icmp eq i32 %a, 0              ; <i1> [#uses=1]
index 25703177957672d9986303d09ff099240b2c51c2..8d360f7143fb13c010c12e6909cf84afa5e762ef 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep slwi
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep slwi
 
 define i32 @test1(i64 %a) {
         %tmp29 = lshr i64 %a, 24                ; <i64> [#uses=1]
index 62fb935808c272299fc89acf35daf7eb520f43e1..cf83944fef8d657fee65be330626b959e8eab870 100644 (file)
@@ -1,5 +1,5 @@
 ; This test should not contain a sign extend
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep extsb 
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep extsb
 
 define i32 @test(i32 %mode.0.i.0) {
         %tmp.79 = trunc i32 %mode.0.i.0 to i8           ; <i8> [#uses=1]
index fc037ace1ec4542731900a039aad2328a1fb81d2..ffb53802c8ff9aa51194149b61895ba718b9729a 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep srwi
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep rlwimi
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep srwi
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep rlwimi
 
 define i32 @baz(i64 %a) {
         %tmp29 = lshr i64 %a, 24                ; <i64> [#uses=1]
index 07f93d563084920f53cfeae819d3cc43a229e1cc..d35ef3d514c527aab5b8de04d3daa2d9edb57992 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep "extsh\|rlwinm"
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep "extsh\|rlwinm"
 
 declare signext i16 @foo()  
 
index 9b995e08256c94f514690c80667e243bf5917b3d..bb53589c9de8b552ac6a052727d4ed980f14ccec 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=stfiwx | FileCheck %s
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-stfiwx | FileCheck -check-prefix=CHECK-LS %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 -mattr=stfiwx | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 -mattr=-stfiwx | FileCheck -check-prefix=CHECK-LS %s
 
 define void @test1(float %a, i32* %b) nounwind {
 ; CHECK-LABEL: @test1
index 12e1dbe319f5647d69bba1f81718073331758c32..3d0b8096dc4d8ed9d77501f73d20cab791800b53 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | not grep lwz
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep lwz
 
 define i32 @test(i32* %P) {
         store i32 1, i32* %P
index f09150a82d1c482211d49eaf01972b1d91cde10d..c9cb5761739bf2548805a03b272cae43ed731b70 100644 (file)
@@ -1,5 +1,5 @@
 ; All of these should be codegen'd without loading immediates
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -o %t
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -o %t
 ; RUN: grep subfc %t | count 1
 ; RUN: grep subfe %t | count 1
 ; RUN: grep subfze %t | count 1
index dedb8702c78efdad5d1aad9a478a1b0fd98778ef..1c71b359cdec967344181dd4ab2ec79e7e32a9cc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -tailcallopt | grep TC_RETURN
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -tailcallopt | grep TC_RETURN
 define fastcc i32 @tailcallee(i32 %a1, i32 %a2, i32 %a3, i32 %a4) {
 entry:
        ret i32 %a3
index 6529469c1fd9736d67c3b37e5388971fd8a3c5e3..c770209c6ca5cdd4f15be5d2d1df698c0e85bfd4 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs -march=ppc64 -mcpu=pwr7 -O2 -relocation-model=pic < %s | FileCheck %s
-; RUN: llc -verify-machineinstrs -march=ppc64 -mcpu=pwr7 -O2 -relocation-model=pic < %s | grep "__tls_get_addr" | count 1
+; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O2 -relocation-model=pic < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O2 -relocation-model=pic < %s | grep "__tls_get_addr" | count 1
 
 ; This test was derived from LLVM's own
 ; PrettyStackTraceEntry::~PrettyStackTraceEntry().  It demonstrates an
index e498cd3fcd69430face28cd71df568f979bd8082..db60ec7e22a7fd921aa421297b77cb4c6a6e5bd2 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc -verify-machineinstrs -march=ppc64 -mcpu=pwr7 -O0 -relocation-model=pic < %s | FileCheck -check-prefix=OPT0 %s
-; RUN: llc -verify-machineinstrs -march=ppc64 -mcpu=pwr7 -O1 -relocation-model=pic < %s | FileCheck -check-prefix=OPT1 %s
-; RUN: llc -verify-machineinstrs -march=ppc32 -O0 -relocation-model=pic < %s | FileCheck -check-prefix=OPT0-32 %s
-; RUN: llc -verify-machineinstrs -march=ppc32 -O1 -relocation-model=pic < %s | FileCheck -check-prefix=OPT1-32 %s
+; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -relocation-model=pic < %s | FileCheck -check-prefix=OPT0 %s
+; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O1 -relocation-model=pic < %s | FileCheck -check-prefix=OPT1 %s
+; RUN: llc -verify-machineinstrs -mtriple=ppc32-- -O0 -relocation-model=pic < %s | FileCheck -check-prefix=OPT0-32 %s
+; RUN: llc -verify-machineinstrs -mtriple=ppc32-- -O1 -relocation-model=pic < %s | FileCheck -check-prefix=OPT1-32 %s
 
 target triple = "powerpc64-unknown-linux-gnu"
 ; Test correct assembly code generation for thread-local storage using
index c13bec249ad4035b7fbc4792c811b7d13b05aef6..d51c08891b4ea4b0fd80ae97e892f070c7cbbfad 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs -march=ppc64 -mcpu=pwr7 -O2 -relocation-model=pic < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O2 -relocation-model=pic < %s | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-n32:64"
 target triple = "powerpc64le-unknown-linux-gnu"
index 63f498c1662c5def3f2f6ae435fb6da113cfa41f..72e731cdb9cbd3e37e59b589a09b6e4f29002393 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc -relocation-model=static -verify-machineinstrs -O0 < %s -march=ppc64 -mcpu=ppc64 | FileCheck -check-prefix=OPT0 %s
-; RUN: llc -relocation-model=static -verify-machineinstrs -O1 < %s -march=ppc64 -mcpu=ppc64 | FileCheck -check-prefix=OPT1 %s
-; RUN: llc -verify-machineinstrs -O0 < %s -march=ppc32 -mcpu=ppc | FileCheck -check-prefix=OPT0-PPC32 %s
+; RUN: llc -relocation-model=static -verify-machineinstrs -O0 < %s -mcpu=ppc64 | FileCheck -check-prefix=OPT0 %s
+; RUN: llc -relocation-model=static -verify-machineinstrs -O1 < %s -mcpu=ppc64 | FileCheck -check-prefix=OPT1 %s
+; RUN: llc -verify-machineinstrs -O0 < %s -mtriple=ppc32-- -mcpu=ppc | FileCheck -check-prefix=OPT0-PPC32 %s
 
 target triple = "powerpc64-unknown-linux-gnu"
 
index d0658a8a23f1a7f563c038c7df17c8220076a6cb..f8e896690acc064fa82da86094139bc631197b54 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 | grep "__trampoline_setup"
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep "__trampoline_setup"
 
 module asm "\09.lazy_reference .objc_class_name_NSImageRep"
 module asm "\09.objc_class_name_NSBitmapImageRep=0"
index baa951dc164c20ffe066cb50c2e0c93ec9832d0f..edc970b4d1629f418c918e5f47a5dafbf2ae1d2f 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 | grep fmul | count 2
-; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=ppc32 -enable-unsafe-fp-math | \
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- | grep fmul | count 2
+; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- -enable-unsafe-fp-math | \
 ; RUN:   grep fmul | count 1
 
 define double @foo(double %X) nounwind {
index 607106ee4cff4be5444f920e322c9f32d6978e7b..416fd6cadea03403e1fb583fe065e7c3539e7e4b 100644 (file)
@@ -1,6 +1,6 @@
 ; This should fold the "vcmpbfp." and "vcmpbfp" instructions into a single
 ; "vcmpbfp.".
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | grep vcmpbfp | count 1
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | grep vcmpbfp | count 1
 
 
 define void @test(<4 x float>* %x, <4 x float>* %y, i32* %P) {
index 95965ef96b1041316f6f424ba18e8b2df0523fd6..f7ff18f3ce17901ed0ef898afbe9e259b3589064 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -march=ppc64le \
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu \
 ; RUN:          -mattr=+altivec -mattr=+vsx |  FileCheck %s
-; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -march=ppc64le \
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu \
 ; RUN:          -mattr=+altivec -mattr=-vsx |  FileCheck %s \
 ; RUN:          -check-prefix=CHECK-NOVSX
 
index 7055fbe26a5758e0d75c2edcdc9bbc6604b8eba7..ab5f1b836318bcec84732c96ffb704ab83d6e6da 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin -mcpu=g5 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin -mcpu=g5 | FileCheck %s
 ; Formerly produced .long, 7320806 (partial)
 ; CHECK: .byte  22
 ; CHECK: .byte  21
index b058fd0864d952d1bdcc7597b8745b5b13d73b04..fad927a22a960a2b5b89646cffaa79f7d842d65d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 -o %t
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 -o %t
 ; RUN: grep vcmpeqfp. %t
 ; RUN: not grep mfcr %t
 
index a088d4b314a9a6aad755ef4611941ae7081109c0..b48836db32ed1f466319b78521ecb4e2c4fa1418 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin -mattr=+altivec -disable-ppc-ilp-pref  | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin -mattr=+altivec -disable-ppc-ilp-pref  | FileCheck %s
 ; Formerly this did byte loads and word stores.
 @a = external global <16 x i8>
 @b = external global <16 x i8>
index 61a4c47d98f800c5b3accd5f5d08f61291627435..a7b156f5600cbeef6acca1aa77d65b341edcf3ad 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5
 
 define <4 x i32> @test_arg(<4 x i32> %A, <4 x i32> %B) {
        %C = add <4 x i32> %A, %B               ; <<4 x i32>> [#uses=1]
index 2d7fb1ec07c30495c32390a04f9d354b9189e347..904445abcaef24cf7f04781ed9f58b3a4687561a 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | FileCheck %s -check-prefix=CHECK-NOVSX
-; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -march=ppc64le \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | FileCheck %s -check-prefix=CHECK-NOVSX
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu \
 ; RUN:          -mattr=+altivec -mattr=+vsx |  FileCheck %s
-; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -march=ppc64le \
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu \
 ; RUN:          -mattr=+altivec -mattr=-vsx |  FileCheck %s \
 ; RUN:          -check-prefix=CHECK-NOVSX
 
index e09c1bae7a3f0f9455f3427c0e33b8126a93a2a3..c7de289010dd9293bb7dd25d938c831d0a0a5fcd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | grep sth
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | grep sth
 
 define <8 x i16> @insert(<8 x i16> %foo, i16 %a) nounwind  {
 entry:
index fb501a0635e7a15d9136ccf6b2aa7d9ad73ff437..8af4da03c254891385ac4842b2aa8a0f7a2d8391 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mcpu=g5 | FileCheck %s
 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mattr=+altivec -mattr=-vsx -mattr=-power8-vector | FileCheck %s
 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -mattr=+altivec -mattr=-vsx -mattr=-power8-vector | FileCheck %s -check-prefix=CHECK-LE
 
index 825ead61ccbea73f116408543cc65ac72eac7a1f..b1714b21334d314668fde8831c9f6877d879a8f0 100644 (file)
@@ -1,8 +1,8 @@
-; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu -march=ppc32 -mattr=+altivec -mattr=-vsx -mattr=-power8-altivec | FileCheck %s
-; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -march=ppc64 -mattr=+altivec -mattr=-vsx -mcpu=pwr7 | FileCheck %s
-; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -march=ppc64 -mattr=+altivec -mattr=-vsx -mcpu=pwr8 -mattr=-power8-altivec | FileCheck %s -check-prefix=CHECK-LE
-; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -march=ppc64 -mattr=+altivec -mattr=+vsx -mcpu=pwr7 | FileCheck %s -check-prefix=CHECK-VSX
-; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -march=ppc64 -mattr=+altivec -mattr=+vsx -mcpu=pwr8 -mattr=-power8-altivec | FileCheck %s -check-prefix=CHECK-LE-VSX
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu -mattr=+altivec -mattr=-vsx -mattr=-power8-altivec | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mattr=+altivec -mattr=-vsx -mcpu=pwr7 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -mattr=+altivec -mattr=-vsx -mcpu=pwr8 -mattr=-power8-altivec | FileCheck %s -check-prefix=CHECK-LE
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mattr=+altivec -mattr=+vsx -mcpu=pwr7 | FileCheck %s -check-prefix=CHECK-VSX
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -mattr=+altivec -mattr=+vsx -mcpu=pwr8 -mattr=-power8-altivec | FileCheck %s -check-prefix=CHECK-LE-VSX
 
 define <4 x i32> @test_v4i32(<4 x i32>* %X, <4 x i32>* %Y) {
        %tmp = load <4 x i32>, <4 x i32>* %X            ; <<4 x i32>> [#uses=1]
index 3ff901386fbe82c6b3845cd0ace3fbba514e1e39..05877a03563c39a4bf99b067c04610b9ae192603 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | not grep vperm
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | not grep vperm
 
 define <4 x float> @test_uu72(<4 x float>* %P1, <4 x float>* %P2) {
        %V1 = load <4 x float>, <4 x float>* %P1                ; <<4 x float>> [#uses=1]
index b3e9418da4caf3b29017c5d8ec866f19ee861ee4..6cdd0f4daf0e77a40f61ce483d3e855c6af5ce9f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s  -march=ppc32 -mcpu=g5
+; RUN: llc -verify-machineinstrs < %s  -mtriple=ppc32-- -mcpu=g5
 ; PR3628
 
 define void @update(<4 x i32> %val, <4 x i32>* %dst) nounwind {
index 41a884dfc8c62b50d14e06370e32d8b6813d18f6..9f055c3542b54148cb3453dcb8bfab0bbcd6d9d9 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt -mtriple=powerpc-apple-darwin < %s -instcombine | \
-; RUN:   llc -march=ppc32 -mcpu=g5 | not grep vperm
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 > %t
+; RUN:   llc -mtriple=ppc32-- -mcpu=g5 | not grep vperm
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 > %t
 ; RUN: grep vsldoi  %t | count 2
 ; RUN: grep vmrgh   %t | count 7
 ; RUN: grep vmrgl   %t | count 6
index 986852d7c3584dcba4096a8b69d6468c8bfab90a..7829f6fbede34db34b8efe092381c53b0e9eecc1 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that vectors are scalarized/lowered correctly.
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g3 | \
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g3 | \
 ; RUN:    grep stfs | count 4
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 -o %t
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 -o %t
 ; RUN: grep vspltw %t | count 2
 ; RUN: grep vsplti %t | count 3
 ; RUN: grep vsplth %t | count 1
index 69d251564362d48fee17bb52b493e5878422c81e..1751d04b2b9370828f81903e163417ba2ca327c6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin -mcpu=g5 | FileCheck %s
+; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin -mcpu=g5 | FileCheck %s
 ; Formerly incorrectly inserted vsldoi (endian confusion)
 
 @baz = common global <16 x i8> zeroinitializer    ; <<16 x i8>*> [#uses=1]
index e54ee32c238801ad4e094e43387f0ce39db0c13c..4d48c332fb100c8ed06fff75fc3c6964c03cd12c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 -o %t
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 -o %t
 ; RUN: grep vrlw %t
 ; RUN: not grep spr %t
 ; RUN: not grep vrsave %t
index 81bb320299d477086a2bb5734f90e869859f45f3..fe198bc8a5563ac498c40a72694bcfd5d1f0a574 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | grep vxor
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | grep vxor
 
 define void @foo(<4 x float>* %P) {
         %T = load <4 x float>, <4 x float>* %P               ; <<4 x float>> [#uses=1]
index 075f2eea17aafa92f0e7246c56baad9ca75343cf..7af4b827e7d03ddd51a4d6f8fd1d4e18e6d01496 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | grep test:
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 | not grep vperm
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | grep test:
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | not grep vperm
 
 define void @test(<4 x float>* %tmp2.i) {
         %tmp2.i.upgrd.1 = load <4 x float>, <4 x float>* %tmp2.i             ; <<4 x float>> [#uses=4]
index 004df6c4f3a6f463d195eb037f621acdf61d4b57..489e67f7ef2bb901701e9418bd59e864226ea3e6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -verify-machineinstrs -march=ppc64 -mtriple=ppc64-apple-darwin < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -mtriple=ppc64-apple-darwin < %s | FileCheck %s
 
 ; CHECK-LABEL: {{^}}_merge_8_float_zero_stores:
 ; CHECK: li [[ZEROREG:r[0-9]+]], 0
index 1f97d39816d76bada56a4aad2383a75ff60722dd..8b1f98065a57c3a398356f39fbff79e4f0bfe24f 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that vectors are scalarized/lowered correctly.
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g5 > %t
-; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mcpu=g3 >> %t
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 > %t
+; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g3 >> %t
 
 %d8 = type <8 x double>
 %f1 = type <1 x float>