Index: lib/Target/PowerPC/InstPrinter/PPCInstPrinter.h =================================================================== --- lib/Target/PowerPC/InstPrinter/PPCInstPrinter.h +++ lib/Target/PowerPC/InstPrinter/PPCInstPrinter.h @@ -20,23 +20,28 @@ class PPCInstPrinter : public MCInstPrinter { bool IsDarwin; + bool IsLinux; public: PPCInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII, - const MCRegisterInfo &MRI, bool isDarwin) - : MCInstPrinter(MAI, MII, MRI), IsDarwin(isDarwin) {} - + const MCRegisterInfo &MRI, bool isDarwin, bool isLinux) + : MCInstPrinter(MAI, MII, MRI), IsDarwin(isDarwin), IsLinux(isLinux) {} + bool isDarwinSyntax() const { return IsDarwin; } - + + bool isLinuxSyntax() const { + return IsLinux; + } + void printRegName(raw_ostream &OS, unsigned RegNo) const override; void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot, const MCSubtargetInfo &STI) override; - + // Autogenerated by tblgen. void printInstruction(const MCInst *MI, raw_ostream &O); static const char *getRegisterName(unsigned RegNo); - + bool printAliasInstr(const MCInst *MI, raw_ostream &OS); void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx, unsigned PrintMethodIdx, Index: lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp =================================================================== --- lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp +++ lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp @@ -39,6 +39,12 @@ ShowVSRNumsAsVR("ppc-vsr-nums-as-vr", cl::Hidden, cl::init(false), cl::desc("Prints full register names with vs{31-63} as v{0-31}")); +// Useful for testing purposes. Removes percent check in tests. +// Prefixes will be checked in full register name tests. +static cl::opt +IgnorePercentPrefix("ppc-ignore-percent-prefix", cl::Hidden, cl::init(false), + cl::desc("Prints register names without percent prefix")); + #define PRINT_ALIAS_INSTR #include "PPCGenAsmWriter.inc" @@ -446,10 +452,11 @@ } -/// stripRegisterPrefix - This method strips the character prefix from a -/// register name so that only the number is left. Used by for linux asm. -static const char *stripRegisterPrefix(const char *RegName, unsigned RegNum, - unsigned RegEncoding) { +/// fixRegisterPrefix - In Linux, it adds a percent symbol in the register +/// prefixes. In other OSs, it strips the character prefix from the +/// register name so that only the number is left. +static const char *fixRegisterPrefix(const char *RegName, unsigned RegNum, + unsigned RegEncoding, bool isLinux) { if (FullRegNames) { if (RegNum >= PPC::CR0EQ && RegNum <= PPC::CR7UN) { const char *CRBits[] = @@ -464,18 +471,33 @@ }; return CRBits[RegEncoding]; } - return RegName; - } - - switch (RegName[0]) { - case 'r': - case 'f': - case 'q': // for QPX - case 'v': - if (RegName[1] == 's') - return RegName + 2; - return RegName + 1; - case 'c': if (RegName[1] == 'r') return RegName + 2; + } else { + if (isLinux and !IgnorePercentPrefix) { + switch (RegName[0]) { + case 'r': + case 'f': + case 'q': // for QPX + case 'v': + case 'c': + char *newRegName = new char[strlen(RegName) + 1]; + strcpy(newRegName, "%"); + strcat(newRegName, RegName); + return newRegName; + } + } else { + switch (RegName[0]) { + case 'r': + case 'f': + case 'q': // for QPX + case 'v': + if (RegName[1] == 's') + return RegName + 2; + return RegName + 1; + case 'c': + if (RegName[1] == 'r') + return RegName + 2; + } + } } return RegName; @@ -503,9 +525,11 @@ } const char *RegName = getRegisterName(Reg); - // The linux and AIX assembler does not take register prefixes. + + // Fix register prefixes for linux and AIX assemblers. if (!isDarwinSyntax()) - RegName = stripRegisterPrefix(RegName, Reg, MRI.getEncodingValue(Reg)); + RegName = fixRegisterPrefix(RegName, Reg, MRI.getEncodingValue(Reg), + isLinuxSyntax()); O << RegName; return; Index: lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp =================================================================== --- lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp +++ lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp @@ -239,7 +239,7 @@ const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI) { - return new PPCInstPrinter(MAI, MII, MRI, T.isOSDarwin()); + return new PPCInstPrinter(MAI, MII, MRI, T.isOSDarwin(), T.isOSLinux()); } extern "C" void LLVMInitializePowerPCTargetMC() { Index: test/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll =================================================================== --- test/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll +++ test/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: -ppc-ignore-percent-prefix | FileCheck %s @lens = external global i8* ; [#uses=1] @vals = external global i32* ; [#uses=1] Index: test/CodeGen/PowerPC/2007-03-24-cntlzd.ll =================================================================== --- test/CodeGen/PowerPC/2007-03-24-cntlzd.ll +++ test/CodeGen/PowerPC/2007-03-24-cntlzd.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=g5 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=g5 < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/2012-10-12-bitcast.ll =================================================================== --- test/CodeGen/PowerPC/2012-10-12-bitcast.ll +++ test/CodeGen/PowerPC/2012-10-12-bitcast.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mattr=-vsx -mattr=+altivec -mcpu=pwr7 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mattr=+vsx -mattr=+altivec -mcpu=pwr7 < %s | FileCheck -check-prefix=CHECK-VSX %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mattr=-vsx \ +; RUN: -mattr=+altivec -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mattr=+vsx \ +; RUN: -mattr=+altivec -mcpu=pwr7 < %s | FileCheck -check-prefix=CHECK-VSX %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: test/CodeGen/PowerPC/2012-11-16-mischedcall.ll =================================================================== --- test/CodeGen/PowerPC/2012-11-16-mischedcall.ll +++ test/CodeGen/PowerPC/2012-11-16-mischedcall.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-bgq-linux -enable-misched < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-bgq-linux -enable-misched < %s | FileCheck %s ; ; PR14315: misched should not move the physreg copy of %t below the calls. Index: test/CodeGen/PowerPC/2013-05-15-preinc-fold.ll =================================================================== --- test/CodeGen/PowerPC/2013-05-15-preinc-fold.ll +++ test/CodeGen/PowerPC/2013-05-15-preinc-fold.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -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-f128:128:128-v128:128:128-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/2016-04-28-setjmp.ll =================================================================== --- test/CodeGen/PowerPC/2016-04-28-setjmp.ll +++ test/CodeGen/PowerPC/2016-04-28-setjmp.ll @@ -1,4 +1,5 @@ -; RUN: llc -filetype=obj <%s | llvm-objdump --disassemble - | FileCheck %s +; RUN: llc -filetype=obj <%s | llvm-objdump --disassemble \ +; RUN: -ppc-ignore-percent-prefix - | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/BreakableToken-reduced.ll =================================================================== --- test/CodeGen/PowerPC/BreakableToken-reduced.ll +++ test/CodeGen/PowerPC/BreakableToken-reduced.ll @@ -1,4 +1,6 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -enable-shrink-wrap=true %s -o - | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 \ +; RUN: -enable-shrink-wrap=true %s -o - | FileCheck %s ; ; Test the use of a non-R0 register to save/restore the LR in function ; prologue/epilogue. Index: test/CodeGen/PowerPC/a2q-stackalign.ll =================================================================== --- test/CodeGen/PowerPC/a2q-stackalign.ll +++ test/CodeGen/PowerPC/a2q-stackalign.ll @@ -1,6 +1,10 @@ -; 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 +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=ppc64-- -mcpu=a2 | FileCheck -check-prefix=CHECK-A2 %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=ppc64-- -mcpu=a2q | FileCheck -check-prefix=CHECK-A2Q %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-bgq-linux -mcpu=a2 | FileCheck \ +; RUN: -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: test/CodeGen/PowerPC/aa-tbaa.ll =================================================================== --- test/CodeGen/PowerPC/aa-tbaa.ll +++ test/CodeGen/PowerPC/aa-tbaa.ll @@ -1,4 +1,7 @@ -; RUN: llc -verify-machineinstrs -enable-misched -misched=shuffle -enable-aa-sched-mi -use-tbaa-in-sched-mi=0 -post-RA-scheduler=0 -mcpu=ppc64 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -enable-misched -misched=shuffle -enable-aa-sched-mi \ +; RUN: -use-tbaa-in-sched-mi=0 -post-RA-scheduler=0 -mcpu=ppc64 \ +; RUN: < %s | FileCheck %s ; REQUIRES: asserts ; -misched=shuffle is NDEBUG only! Index: test/CodeGen/PowerPC/aantidep-inline-asm-use.ll =================================================================== --- test/CodeGen/PowerPC/aantidep-inline-asm-use.ll +++ test/CodeGen/PowerPC/aantidep-inline-asm-use.ll @@ -1,4 +1,4 @@ -; RUN: llc -O2 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -O2 < %s | FileCheck %s ; ModuleID = 'bugpoint-reduced-simplified.bc' target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-grtev4-linux-gnu" Index: test/CodeGen/PowerPC/add-fi.ll =================================================================== --- test/CodeGen/PowerPC/add-fi.ll +++ test/CodeGen/PowerPC/add-fi.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=ppc64 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=ppc64 < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/addegluecrash.ll =================================================================== --- test/CodeGen/PowerPC/addegluecrash.ll +++ test/CodeGen/PowerPC/addegluecrash.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -O0 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -O0 < %s | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/addi-licm.ll =================================================================== --- test/CodeGen/PowerPC/addi-licm.ll +++ test/CodeGen/PowerPC/addi-licm.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -disable-ppc-preinc-prep < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s -check-prefix=PIP +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=pwr7 -disable-ppc-preinc-prep < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=pwr7 < %s | FileCheck %s -check-prefix=PIP target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/addi-offset-fold.ll =================================================================== --- test/CodeGen/PowerPC/addi-offset-fold.ll +++ test/CodeGen/PowerPC/addi-offset-fold.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/addisdtprelha-nonr3.mir =================================================================== --- test/CodeGen/PowerPC/addisdtprelha-nonr3.mir +++ test/CodeGen/PowerPC/addisdtprelha-nonr3.mir @@ -1,4 +1,4 @@ -# RUN: llc -relocation-model=pic -start-after=block-placement -o - %s | FileCheck %s +# RUN: llc -relocation-model=pic -start-after=block-placement -o - %s -ppc-ignore-percent-prefix | FileCheck %s --- | target datalayout = "E-m:e-i64:64-n32:64" Index: test/CodeGen/PowerPC/aggressive-anti-dep-breaker-subreg.ll =================================================================== --- test/CodeGen/PowerPC/aggressive-anti-dep-breaker-subreg.ll +++ test/CodeGen/PowerPC/aggressive-anti-dep-breaker-subreg.ll @@ -1,4 +1,6 @@ -; RUN: llc -verify-machineinstrs %s -mtriple=powerpc64-unknown-linux-gnu -O2 -o - -optimize-regalloc=false -regalloc=fast | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -O2 -o - \ +; RUN: -optimize-regalloc=false -regalloc=fast | FileCheck %s declare void @func(i8*, i64, i64) Index: test/CodeGen/PowerPC/alias.ll =================================================================== --- test/CodeGen/PowerPC/alias.ll +++ test/CodeGen/PowerPC/alias.ll @@ -1,5 +1,11 @@ -; RUN: llc -relocation-model=static -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -code-model=medium| FileCheck --check-prefix=CHECK --check-prefix=MEDIUM %s -; RUN: llc -relocation-model=static -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -code-model=large | FileCheck --check-prefix=CHECK --check-prefix=LARGE %s +; RUN: llc -ppc-ignore-percent-prefix -relocation-model=static \ +; RUN: -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -code-model=medium| FileCheck --check-prefix=CHECK \ +; RUN: --check-prefix=MEDIUM %s +; RUN: llc -ppc-ignore-percent-prefix -relocation-model=static \ +; RUN: -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -code-model=large | FileCheck --check-prefix=CHECK \ +; RUN: --check-prefix=LARGE %s @foo = global i32 42 @fooa = alias i32, i32* @foo Index: test/CodeGen/PowerPC/allocate-r0.ll =================================================================== --- test/CodeGen/PowerPC/allocate-r0.ll +++ test/CodeGen/PowerPC/allocate-r0.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=g5 | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=g5 | 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-unknown-linux-gnu" Index: test/CodeGen/PowerPC/anon_aggr.ll =================================================================== --- test/CodeGen/PowerPC/anon_aggr.ll +++ test/CodeGen/PowerPC/anon_aggr.ll @@ -1,6 +1,12 @@ -; RUN: llc -verify-machineinstrs -O0 -mcpu=ppc64 -mtriple=powerpc64-unknown-linux-gnu -fast-isel=false < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -O0 -mcpu=g4 -mtriple=powerpc-apple-darwin8 < %s | FileCheck -check-prefix=DARWIN32 %s -; RUN: llc -verify-machineinstrs -O0 -mcpu=970 -mtriple=powerpc64-apple-darwin8 < %s | FileCheck -check-prefix=DARWIN64 %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -O0 -mcpu=ppc64 -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -fast-isel=false < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -O0 \ +; RUN: -mcpu=g4 -mtriple=powerpc-apple-darwin8 < %s \ +; RUN: | FileCheck -check-prefix=DARWIN32 %s +; RUN: llc -verify-machineinstrs \ +; RUN: -O0 -mcpu=970 -mtriple=powerpc64-apple-darwin8 < %s \ +; RUN: | FileCheck -check-prefix=DARWIN64 %s ; Test case for PR 14779: anonymous aggregates are not handled correctly. ; Darwin bug report PR 15821 is similar. Index: test/CodeGen/PowerPC/anyext_srl.ll =================================================================== --- test/CodeGen/PowerPC/anyext_srl.ll +++ test/CodeGen/PowerPC/anyext_srl.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu \ ; RUN: -mcpu=pwr8 < %s | FileCheck %s %class.PB2 = type { [1 x i32], %class.PB1* } Index: test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll =================================================================== --- test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll +++ test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=ppc64 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=ppc64 < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/asm-Zy.ll =================================================================== --- test/CodeGen/PowerPC/asm-Zy.ll +++ test/CodeGen/PowerPC/asm-Zy.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=a2 | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: < %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" Index: test/CodeGen/PowerPC/asm-constraints.ll =================================================================== --- test/CodeGen/PowerPC/asm-constraints.ll +++ test/CodeGen/PowerPC/asm-constraints.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=pwr8 | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: < %s -mcpu=pwr8 | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/atomic-minmax.ll =================================================================== --- test/CodeGen/PowerPC/atomic-minmax.ll +++ test/CodeGen/PowerPC/atomic-minmax.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/atomics-constant.ll =================================================================== --- test/CodeGen/PowerPC/atomics-constant.ll +++ test/CodeGen/PowerPC/atomics-constant.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc < %s | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix | FileCheck %s target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/atomics-regression.ll =================================================================== --- test/CodeGen/PowerPC/atomics-regression.ll +++ test/CodeGen/PowerPC/atomics-regression.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -mtriple=powerpc64le-linux-gnu < %s | FileCheck %s -check-prefix=PPC64LE +; RUN: llc -ppc-ignore-percent-prefix -mtriple=powerpc64le-linux-gnu \ +; RUN: < %s | FileCheck %s -check-prefix=PPC64LE define i8 @test0(i8* %ptr) { ; PPC64LE-LABEL: test0: Index: test/CodeGen/PowerPC/big-endian-actual-args.ll =================================================================== --- test/CodeGen/PowerPC/big-endian-actual-args.ll +++ test/CodeGen/PowerPC/big-endian-actual-args.ll @@ -1,6 +1,8 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc-unknown-linux-gnu | \ ; RUN: grep "addc 4, 4, 6" -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc-unknown-linux-gnu | \ ; RUN: grep "adde 3, 3, 5" define i64 @foo(i64 %x, i64 %y) { Index: test/CodeGen/PowerPC/big-endian-call-result.ll =================================================================== --- test/CodeGen/PowerPC/big-endian-call-result.ll +++ test/CodeGen/PowerPC/big-endian-call-result.ll @@ -1,6 +1,8 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: < %s -mtriple=powerpc-unknown-linux-gnu | \ ; RUN: grep "addic 4, 4, 1" -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: < %s -mtriple=powerpc-unknown-linux-gnu | \ ; RUN: grep "addze 3, 3" declare i64 @foo() Index: test/CodeGen/PowerPC/big-endian-formal-args.ll =================================================================== --- test/CodeGen/PowerPC/big-endian-formal-args.ll +++ test/CodeGen/PowerPC/big-endian-formal-args.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc-unknown-linux-gnu | FileCheck %s declare void @bar(i64 %x, i64 %y) Index: test/CodeGen/PowerPC/blockaddress.ll =================================================================== --- test/CodeGen/PowerPC/blockaddress.ll +++ test/CodeGen/PowerPC/blockaddress.ll @@ -1,9 +1,21 @@ -; 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 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -code-model=small -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: | FileCheck %s -check-prefix=SMALL +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -code-model=medium -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: | FileCheck %s -check-prefix=MEDIUM +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -code-model=large -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: | FileCheck %s -check-prefix=MEDIUM +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -code-model=small -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: | FileCheck %s -check-prefix=SMALL +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -code-model=medium -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: | FileCheck %s -check-prefix=MEDIUM +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -code-model=large -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: | FileCheck %s -check-prefix=MEDIUM define i8* @test() { entry: Index: test/CodeGen/PowerPC/bperm.ll =================================================================== --- test/CodeGen/PowerPC/bperm.ll +++ test/CodeGen/PowerPC/bperm.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=pwr7 < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/branch_coalesce.ll =================================================================== --- test/CodeGen/PowerPC/branch_coalesce.ll +++ test/CodeGen/PowerPC/branch_coalesce.ll @@ -1,7 +1,16 @@ -; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -verify-machineinstrs -enable-ppc-branch-coalesce < %s | FileCheck %s -; RUN: llc -mcpu=pwr8 -mtriple=powerpc64-unknown-linux-gnu -verify-machineinstrs -enable-ppc-branch-coalesce < %s | FileCheck %s -; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -verify-machineinstrs < %s | FileCheck --check-prefix=CHECK-NOCOALESCE %s -; RUN: llc -mcpu=pwr8 -mtriple=powerpc64-unknown-linux-gnu -verify-machineinstrs < %s | FileCheck --check-prefix=CHECK-NOCOALESCE %s +; RUN: llc -ppc-ignore-percent-prefix -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: -verify-machineinstrs -enable-ppc-branch-coalesce < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -mcpu=pwr8 \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -verify-machineinstrs \ +; RUN: -enable-ppc-branch-coalesce < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: -verify-machineinstrs < %s \ +; RUN: | FileCheck --check-prefix=CHECK-NOCOALESCE %s +; RUN: llc -ppc-ignore-percent-prefix -mcpu=pwr8 \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -verify-machineinstrs < %s \ +; RUN: | FileCheck --check-prefix=CHECK-NOCOALESCE %s ; Function Attrs: nounwind define double @testBranchCoal(double %a, double %b, double %c, i32 %x) { Index: test/CodeGen/PowerPC/builtins-ppc-elf2-abi.ll =================================================================== --- test/CodeGen/PowerPC/builtins-ppc-elf2-abi.ll +++ test/CodeGen/PowerPC/builtins-ppc-elf2-abi.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s @vda = common global <2 x double> zeroinitializer, align 16 @vdb = common global <2 x double> zeroinitializer, align 16 Index: test/CodeGen/PowerPC/builtins-ppc-p8vector.ll =================================================================== --- test/CodeGen/PowerPC/builtins-ppc-p8vector.ll +++ test/CodeGen/PowerPC/builtins-ppc-p8vector.ll @@ -1,7 +1,15 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=+power8-vector -mattr=-vsx < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -check-prefix=CHECK-VSX +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s \ +; RUN: | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s \ +; RUN: | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=+power8-vector \ +; RUN: -mattr=-vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s \ +; RUN: | FileCheck %s -check-prefix=CHECK-VSX @vsc = global <16 x i8> , align 16 @vsc2 = global <16 x i8> , align 16 Index: test/CodeGen/PowerPC/cannonicalize-vector-shifts.ll =================================================================== --- test/CodeGen/PowerPC/cannonicalize-vector-shifts.ll +++ test/CodeGen/PowerPC/cannonicalize-vector-shifts.ll @@ -1,6 +1,8 @@ -; RUN: llc -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: llc -ppc-ignore-percent-prefix -mcpu=pwr8 \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu \ ; RUN: -verify-machineinstrs < %s | FileCheck %s -; RUN: llc -mcpu=pwr8 -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: llc -ppc-ignore-percent-prefix -mcpu=pwr8 \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu \ ; RUN: -verify-machineinstrs < %s | FileCheck %s define <4 x i32> @test1(<4 x i32> %a) { entry: Index: test/CodeGen/PowerPC/cc.ll =================================================================== --- test/CodeGen/PowerPC/cc.ll +++ test/CodeGen/PowerPC/cc.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=pwr7 < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/cmp_elimination.ll =================================================================== --- test/CodeGen/PowerPC/cmp_elimination.ll +++ test/CodeGen/PowerPC/cmp_elimination.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s ; Test cases for compare elimination in PPCMIPeephole pass Index: test/CodeGen/PowerPC/cmpb-ppc32.ll =================================================================== --- test/CodeGen/PowerPC/cmpb-ppc32.ll +++ test/CodeGen/PowerPC/cmpb-ppc32.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: < %s | FileCheck %s target datalayout = "E-m:e-p:32:32-i64:64-n32" target triple = "powerpc-unknown-linux-gnu" Index: test/CodeGen/PowerPC/cmpb.ll =================================================================== --- test/CodeGen/PowerPC/cmpb.ll +++ test/CodeGen/PowerPC/cmpb.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu pwr7 < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/complex-return.ll =================================================================== --- test/CodeGen/PowerPC/complex-return.ll +++ test/CodeGen/PowerPC/complex-return.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=ppc64 -O0 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=ppc64 \ +; RUN: -O0 < %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-f128:128:128-v128:128:128-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/constants-i64.ll =================================================================== --- test/CodeGen/PowerPC/constants-i64.ll +++ test/CodeGen/PowerPC/constants-i64.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=ppc64 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=ppc64 < %s \ +; RUN: | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/copysignl.ll =================================================================== --- test/CodeGen/PowerPC/copysignl.ll +++ test/CodeGen/PowerPC/copysignl.ll @@ -1,5 +1,8 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mtriple=powerpc64-unknown-linux-gnu -mattr=-vsx < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mtriple=powerpc64-unknown-linux-gnu -mattr=+vsx < %s | FileCheck %s -check-prefix=CHECK-VSX +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mattr=-vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mattr=+vsx < %s \ +; RUN: | FileCheck %s -check-prefix=CHECK-VSX 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: test/CodeGen/PowerPC/crbit-asm.ll =================================================================== --- test/CodeGen/PowerPC/crbit-asm.ll +++ test/CodeGen/PowerPC/crbit-asm.ll @@ -1,7 +1,13 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -O1 -mcpu=pwr7 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -ppc-gen-isel=false < %s | FileCheck --check-prefix=CHECK-NO-ISEL %s -; RUN: llc -verify-machineinstrs -O1 -mcpu=pwr7 -ppc-gen-isel=false < %s | FileCheck --check-prefix=CHECK-NO-ISEL %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -O1 -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=pwr7 -ppc-gen-isel=false < %s \ +; RUN: | FileCheck --check-prefix=CHECK-NO-ISEL %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -O1 -mcpu=pwr7 -ppc-gen-isel=false < %s \ +; RUN: | FileCheck --check-prefix=CHECK-NO-ISEL %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/crsave.ll =================================================================== --- test/CodeGen/PowerPC/crsave.ll +++ test/CodeGen/PowerPC/crsave.ll @@ -1,6 +1,11 @@ -; RUN: llc -O0 -disable-fp-elim -mtriple=powerpc-unknown-linux-gnu -mcpu=g5 < %s | FileCheck %s -check-prefix=PPC32 -; RUN: llc -O0 -mtriple=powerpc64-unknown-linux-gnu -mcpu=g5 < %s | FileCheck %s -check-prefix=PPC64 -; RUN: llc -O0 -mtriple=powerpc64le-unknown-linux-gnu -verify-machineinstrs < %s | FileCheck %s -check-prefix=PPC64-ELFv2 +; RUN: llc -O0 -ppc-ignore-percent-prefix -disable-fp-elim \ +; RUN: -mtriple=powerpc-unknown-linux-gnu -mcpu=g5 < %s \ +; RUN: | FileCheck %s -check-prefix=PPC32 +; RUN: llc -O0 -ppc-ignore-percent-prefix -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=g5 < %s | FileCheck %s -check-prefix=PPC64 +; RUN: llc -O0 -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -verify-machineinstrs < %s \ +; RUN: | FileCheck %s -check-prefix=PPC64-ELFv2 declare void @foo() Index: test/CodeGen/PowerPC/crypto_bifs.ll =================================================================== --- test/CodeGen/PowerPC/crypto_bifs.ll +++ test/CodeGen/PowerPC/crypto_bifs.ll @@ -1,7 +1,11 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=+crypto < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=+crypto < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 < %s | FileCheck %s ; FIXME: llc -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s ; FIXME: The original intent was to add a check-next for the blr after every check. ; However, this currently fails since we don't eliminate stores of the unused Index: test/CodeGen/PowerPC/ctr-cleanup.ll =================================================================== --- test/CodeGen/PowerPC/ctr-cleanup.ll +++ test/CodeGen/PowerPC/ctr-cleanup.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -mcpu=a2 | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix -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-unknown-linux-gnu" Index: test/CodeGen/PowerPC/div-e-32.ll =================================================================== --- test/CodeGen/PowerPC/div-e-32.ll +++ test/CodeGen/PowerPC/div-e-32.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu -mcpu=pwr7 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc-unknown-linux-gnu -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s ; Function Attrs: nounwind define signext i32 @test1() #0 { Index: test/CodeGen/PowerPC/div-e-all.ll =================================================================== --- test/CodeGen/PowerPC/div-e-all.ll +++ test/CodeGen/PowerPC/div-e-all.ll @@ -1,6 +1,9 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s ; Function Attrs: nounwind define signext i32 @test1() #0 { Index: test/CodeGen/PowerPC/dyn-alloca-aligned.ll =================================================================== --- test/CodeGen/PowerPC/dyn-alloca-aligned.ll +++ test/CodeGen/PowerPC/dyn-alloca-aligned.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %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-f128:128:128-v128:128:128-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/dyn-alloca-offset.ll =================================================================== --- test/CodeGen/PowerPC/dyn-alloca-offset.ll +++ test/CodeGen/PowerPC/dyn-alloca-offset.ll @@ -1,4 +1,5 @@ -; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr7 < %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-f128:128:128-v128:128:128-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/eh-dwarf-cfa.ll =================================================================== --- test/CodeGen/PowerPC/eh-dwarf-cfa.ll +++ test/CodeGen/PowerPC/eh-dwarf-cfa.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/empty-functions.ll =================================================================== --- test/CodeGen/PowerPC/empty-functions.ll +++ test/CodeGen/PowerPC/empty-functions.ll @@ -1,7 +1,12 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin | FileCheck -check-prefix=CHECK-MACHO %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin -disable-fp-elim | FileCheck -check-prefix=CHECK-MACHO %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-linux-gnu | FileCheck -check-prefix=LINUX-NO-FP %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-linux-gnu -disable-fp-elim | FileCheck -check-prefix=LINUX-FP %s +; RUN: llc -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc-apple-darwin | FileCheck -check-prefix=CHECK-MACHO %s +; RUN: llc -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc-apple-darwin -disable-fp-elim | FileCheck -check-prefix=CHECK-MACHO %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc-linux-gnu | FileCheck -check-prefix=LINUX-NO-FP %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc-linux-gnu -disable-fp-elim | FileCheck \ +; RUN: -check-prefix=LINUX-FP %s define void @func() { entry: Index: test/CodeGen/PowerPC/emptystruct.ll =================================================================== --- test/CodeGen/PowerPC/emptystruct.ll +++ test/CodeGen/PowerPC/emptystruct.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -fast-isel=false < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -O0 -fast-isel=false < %s | FileCheck %s ; This tests correct handling of empty aggregate parameters and return values. ; An empty parameter passed by value does not consume a protocol register or Index: test/CodeGen/PowerPC/extra-toc-reg-deps.ll =================================================================== --- test/CodeGen/PowerPC/extra-toc-reg-deps.ll +++ test/CodeGen/PowerPC/extra-toc-reg-deps.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-bgq-linux" Index: test/CodeGen/PowerPC/fast-isel-GEP-coalesce.ll =================================================================== --- test/CodeGen/PowerPC/fast-isel-GEP-coalesce.ll +++ test/CodeGen/PowerPC/fast-isel-GEP-coalesce.ll @@ -1,4 +1,6 @@ -; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s --check-prefix=ELF64 +; RUN: llc < %s -O0 -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr7 | FileCheck %s --check-prefix=ELF64 %struct.A = type { i32, [2 x [2 x i32]], i8, [3 x [3 x [3 x i32]]] } %struct.B = type { i32, [2 x [2 x [2 x %struct.A]]] } Index: test/CodeGen/PowerPC/fast-isel-call.ll =================================================================== --- test/CodeGen/PowerPC/fast-isel-call.ll +++ test/CodeGen/PowerPC/fast-isel-call.ll @@ -2,7 +2,9 @@ ; registers and with -fast-isel-abort=1 turned on the test case will then fail. ; When fastisel better supports VSX fix up this test case. ; -; RUN: llc < %s -O0 -verify-machineinstrs -mattr=-vsx -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s --check-prefix=ELF64 +; RUN: llc < %s -O0 -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mattr=-vsx -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr7 | FileCheck %s --check-prefix=ELF64 define i32 @t1(i8 signext %a) nounwind { %1 = sext i8 %a to i32 Index: test/CodeGen/PowerPC/fast-isel-cmp-imm.ll =================================================================== --- test/CodeGen/PowerPC/fast-isel-cmp-imm.ll +++ test/CodeGen/PowerPC/fast-isel-cmp-imm.ll @@ -2,7 +2,9 @@ ; registers and with -fast-isel-abort=1 turned on the test case will then fail. ; When fastisel better supports VSX fix up this test case. ; -; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-vsx | FileCheck %s --check-prefix=ELF64 +; RUN: llc < %s -O0 -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr7 -mattr=-vsx | FileCheck %s --check-prefix=ELF64 define void @t1a(float %a) nounwind { entry: ; ELF64: t1a Index: test/CodeGen/PowerPC/fast-isel-const.ll =================================================================== --- test/CodeGen/PowerPC/fast-isel-const.ll +++ test/CodeGen/PowerPC/fast-isel-const.ll @@ -1,4 +1,6 @@ -; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-vsx | FileCheck %s --check-prefix=ELF64 +; RUN: llc < %s -O0 -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr7 -mattr=-vsx | FileCheck %s --check-prefix=ELF64 define zeroext i1 @testi1(i8 %in) nounwind { entry: Index: test/CodeGen/PowerPC/fast-isel-conversion-p5.ll =================================================================== --- test/CodeGen/PowerPC/fast-isel-conversion-p5.ll +++ test/CodeGen/PowerPC/fast-isel-conversion-p5.ll @@ -1,4 +1,7 @@ -; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr5 | FileCheck %s --check-prefix=ELF64 +; RUN: llc < %s -O0 -verify-machineinstrs \ +; RUN: -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr5 -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s --check-prefix=ELF64 ; Test sitofp Index: test/CodeGen/PowerPC/fast-isel-conversion.ll =================================================================== --- test/CodeGen/PowerPC/fast-isel-conversion.ll +++ test/CodeGen/PowerPC/fast-isel-conversion.ll @@ -2,9 +2,15 @@ ; registers and with -fast-isel-abort=1 turned on the test case will then fail. ; When fastisel better supports VSX fix up this test case. ; -; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-vsx | FileCheck %s -; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx | FileCheck %s -; RUN: llc < %s -O0 -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=970 -mattr=-vsx | FileCheck %s --check-prefix=PPC970 +; RUN: llc < %s -O0 -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr7 -mattr=-vsx | FileCheck %s +; RUN: llc < %s -O0 -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -fast-isel-abort=1 -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: -mcpu=pwr8 -mattr=-vsx | FileCheck %s +; RUN: llc < %s -O0 -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=970 -mattr=-vsx \ +; RUN: | FileCheck %s --check-prefix=PPC970 ;; Tests for 970 don't use -fast-isel-abort=1 because we intentionally punt ;; to SelectionDAG in some cases. Index: test/CodeGen/PowerPC/fast-isel-ext.ll =================================================================== --- test/CodeGen/PowerPC/fast-isel-ext.ll +++ test/CodeGen/PowerPC/fast-isel-ext.ll @@ -1,4 +1,6 @@ -; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s --check-prefix=ELF64 +; RUN: llc < %s -O0 -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr7 | FileCheck %s --check-prefix=ELF64 ; zext Index: test/CodeGen/PowerPC/fast-isel-fpconv.ll =================================================================== --- test/CodeGen/PowerPC/fast-isel-fpconv.ll +++ test/CodeGen/PowerPC/fast-isel-fpconv.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mtriple powerpc64-unknown-linux-gnu -fast-isel -O0 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple powerpc64-unknown-linux-gnu -fast-isel -O0 < %s | FileCheck %s ; The second fctiwz would use an incorrect input register due to wrong handling ; of COPY_TO_REGCLASS in the FastISel pass. Verify that this is fixed. Index: test/CodeGen/PowerPC/fast-isel-indirectbr.ll =================================================================== --- test/CodeGen/PowerPC/fast-isel-indirectbr.ll +++ test/CodeGen/PowerPC/fast-isel-indirectbr.ll @@ -1,4 +1,6 @@ -; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s --check-prefix=ELF64 +; RUN: llc < %s -O0 -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr7 | FileCheck %s --check-prefix=ELF64 define void @t1(i8* %x) nounwind { entry: Index: test/CodeGen/PowerPC/fast-isel-load-store-vsx.ll =================================================================== --- test/CodeGen/PowerPC/fast-isel-load-store-vsx.ll +++ test/CodeGen/PowerPC/fast-isel-load-store-vsx.ll @@ -1,4 +1,6 @@ -; RUN: llc < %s -O0 -fast-isel -mattr=+vsx -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s --check-prefix=ELF64VSX +; RUN: llc < %s -O0 -ppc-ignore-percent-prefix -fast-isel -mattr=+vsx \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 \ +; RUN: | FileCheck %s --check-prefix=ELF64VSX ;; The semantics of VSX stores for when R0 is used is different depending on ;; whether it is used as base or offset. If used as base, the effective Index: test/CodeGen/PowerPC/fast-isel-ret.ll =================================================================== --- test/CodeGen/PowerPC/fast-isel-ret.ll +++ test/CodeGen/PowerPC/fast-isel-ret.ll @@ -2,7 +2,9 @@ ; registers and with -fast-isel-abort=1 turned on the test case will then fail. ; When fastisel better supports VSX fix up this test case. ; -; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-vsx | FileCheck %s --check-prefix=ELF64 +; RUN: llc < %s -O0 -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr7 -mattr=-vsx | FileCheck %s --check-prefix=ELF64 define zeroext i1 @rettrue() nounwind { entry: Index: test/CodeGen/PowerPC/fcpsgn.ll =================================================================== --- test/CodeGen/PowerPC/fcpsgn.ll +++ test/CodeGen/PowerPC/fcpsgn.ll @@ -1,5 +1,9 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-vsx < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=+vsx < %s | FileCheck -check-prefix=CHECK-VSX %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 \ +; RUN: -mattr=-vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 \ +; RUN: -mattr=+vsx < %s | FileCheck -check-prefix=CHECK-VSX %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: test/CodeGen/PowerPC/fdiv-combine.ll =================================================================== --- test/CodeGen/PowerPC/fdiv-combine.ll +++ test/CodeGen/PowerPC/fdiv-combine.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=ppc64 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=ppc64 < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/float-to-int.ll =================================================================== --- test/CodeGen/PowerPC/float-to-int.ll +++ test/CodeGen/PowerPC/float-to-int.ll @@ -1,10 +1,14 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu \ ; RUN: -mcpu=a2 | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu \ ; RUN: -mcpu=pwr7 -mattr=+vsx | FileCheck -check-prefix=CHECK-VSX %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu \ ; RUN: -mcpu=g5 -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu \ ; RUN: -mcpu=pwr9 -mattr=-direct-move | FileCheck -check-prefix=CHECK-P9 %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: test/CodeGen/PowerPC/floatPSA.ll =================================================================== --- test/CodeGen/PowerPC/floatPSA.ll +++ test/CodeGen/PowerPC/floatPSA.ll @@ -1,4 +1,6 @@ -; RUN: llc -verify-machineinstrs -O2 -mtriple=powerpc64-unknown-linux-gnu -fast-isel=false < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -O2 \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -fast-isel=false < %s \ +; RUN: | FileCheck %s ; This verifies that single-precision floating point values that can't ; be passed in registers are stored in the rightmost word of the parameter Index: test/CodeGen/PowerPC/fma-aggr-FMF.ll =================================================================== --- test/CodeGen/PowerPC/fma-aggr-FMF.ll +++ test/CodeGen/PowerPC/fma-aggr-FMF.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc < %s -verify-machineinstrs -mtriple=powerpc64le-linux-gnu | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-linux-gnu | FileCheck %s define float @can_fma_with_fewer_uses(float %f1, float %f2, float %f3, float %f4) { ; CHECK-LABEL: can_fma_with_fewer_uses: Index: test/CodeGen/PowerPC/fma-mutate.ll =================================================================== --- test/CodeGen/PowerPC/fma-mutate.ll +++ test/CodeGen/PowerPC/fma-mutate.ll @@ -3,7 +3,9 @@ ; same as the FMA target register. The second one is legal. The third ; one doesn't fit the feeding-copy pattern. -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -enable-unsafe-fp-math -mattr=+vsx -disable-ppc-vsx-fma-mutation=false | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -enable-unsafe-fp-math \ +; RUN: -mattr=+vsx -disable-ppc-vsx-fma-mutation=false | 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-unknown-linux-gnu" Index: test/CodeGen/PowerPC/fold-zero.ll =================================================================== --- test/CodeGen/PowerPC/fold-zero.ll +++ test/CodeGen/PowerPC/fold-zero.ll @@ -1,6 +1,12 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-crbits | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck --check-prefix=CHECK-CRB %s -; RUN: llc -verify-machineinstrs -ppc-gen-isel=false < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck --check-prefix=CHECK-NO-ISEL %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-crbits \ +; RUN: | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 \ +; RUN: | FileCheck --check-prefix=CHECK-CRB %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -ppc-gen-isel=false < %s -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr7 | FileCheck --check-prefix=CHECK-NO-ISEL %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: test/CodeGen/PowerPC/fp-to-int-ext.ll =================================================================== --- test/CodeGen/PowerPC/fp-to-int-ext.ll +++ test/CodeGen/PowerPC/fp-to-int-ext.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=a2 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=a2 < %s \ +; RUN: | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/fp-to-int-to-fp.ll =================================================================== --- test/CodeGen/PowerPC/fp-to-int-to-fp.ll +++ test/CodeGen/PowerPC/fp-to-int-to-fp.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=a2 < %s | FileCheck %s -check-prefix=FPCVT -; RUN: llc -verify-machineinstrs -mcpu=ppc64 < %s | FileCheck %s -check-prefix=PPC64 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=a2 < %s | FileCheck %s -check-prefix=FPCVT +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=ppc64 < %s | FileCheck %s -check-prefix=PPC64 target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/fp128-bitcast-after-operation.ll =================================================================== --- test/CodeGen/PowerPC/fp128-bitcast-after-operation.ll +++ test/CodeGen/PowerPC/fp128-bitcast-after-operation.ll @@ -1,8 +1,18 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -check-prefix=PPC64-P8 -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr7 < %s | FileCheck %s -check-prefix=PPC64 -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -check-prefix=PPC64-P8 -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %s | FileCheck %s -check-prefix=PPC64 -; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s -check-prefix=PPC32 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s \ +; RUN: | FileCheck %s -check-prefix=PPC64-P8 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr7 < %s \ +; RUN: | FileCheck %s -check-prefix=PPC64 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s \ +; RUN: | FileCheck %s -check-prefix=PPC64-P8 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %s \ +; RUN: | FileCheck %s -check-prefix=PPC64 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s \ +; RUN: -check-prefix=PPC32 define i128 @test_abs(ppc_fp128 %x) nounwind { entry: Index: test/CodeGen/PowerPC/fp64-to-int16.ll =================================================================== --- test/CodeGen/PowerPC/fp64-to-int16.ll +++ test/CodeGen/PowerPC/fp64-to-int16.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -O0 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -O0 < %s | FileCheck %s target triple = "powerpc64le--linux-gnu" define i1 @Test(double %a) { Index: test/CodeGen/PowerPC/frame-size.ll =================================================================== --- test/CodeGen/PowerPC/frame-size.ll +++ test/CodeGen/PowerPC/frame-size.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=a2 | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=a2 | FileCheck %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-f128:64:128-n32" define i64 @foo() nounwind { Index: test/CodeGen/PowerPC/frameaddr.ll =================================================================== --- test/CodeGen/PowerPC/frameaddr.ll +++ test/CodeGen/PowerPC/frameaddr.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=pwr7 | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -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-f128:128:128-v128:128:128-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/fsel.ll =================================================================== --- test/CodeGen/PowerPC/fsel.ll +++ test/CodeGen/PowerPC/fsel.ll @@ -1,6 +1,14 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-vsx | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -enable-no-infs-fp-math -enable-no-nans-fp-math -mattr=-vsx | FileCheck -check-prefix=CHECK-FM %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -enable-no-infs-fp-math -enable-no-nans-fp-math -mattr=+vsx | FileCheck -check-prefix=CHECK-FM-VSX %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-vsx \ +; RUN: | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 \ +; RUN: -enable-no-infs-fp-math -enable-no-nans-fp-math -mattr=-vsx \ +; RUN: | FileCheck -check-prefix=CHECK-FM %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 \ +; RUN: -enable-no-infs-fp-math -enable-no-nans-fp-math -mattr=+vsx \ +; RUN: | FileCheck -check-prefix=CHECK-FM-VSX %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: test/CodeGen/PowerPC/func-addr.ll =================================================================== --- test/CodeGen/PowerPC/func-addr.ll +++ test/CodeGen/PowerPC/func-addr.ll @@ -1,5 +1,7 @@ -; RUN: llc -relocation-model=static -verify-machineinstrs -mtriple powerpc64-linux < %s | FileCheck %s -; RUN: llc -relocation-model=static -verify-machineinstrs -O0 -mtriple powerpc64-linux < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -relocation-model=static \ +; RUN: -verify-machineinstrs -mtriple powerpc64-linux < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -relocation-model=static \ +; RUN: -verify-machineinstrs -O0 -mtriple powerpc64-linux < %s | FileCheck %s define void @foo() { ret void Index: test/CodeGen/PowerPC/gpr-vsr-spill.ll =================================================================== --- test/CodeGen/PowerPC/gpr-vsr-spill.ll +++ test/CodeGen/PowerPC/gpr-vsr-spill.ll @@ -1,4 +1,6 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mtriple=powerpc64le-unknown-linux-gnu -ppc-enable-gpr-to-vsr-spills < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr9 \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -ppc-enable-gpr-to-vsr-spills \ +; RUN: < %s | FileCheck %s define signext i32 @foo(i32 signext %a, i32 signext %b) { entry: %cmp = icmp slt i32 %a, %b Index: test/CodeGen/PowerPC/htm.ll =================================================================== --- test/CodeGen/PowerPC/htm.ll +++ test/CodeGen/PowerPC/htm.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mattr=+htm < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=pwr8 -mattr=+htm < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/i1-ext-fold.ll =================================================================== --- test/CodeGen/PowerPC/i1-ext-fold.ll +++ test/CodeGen/PowerPC/i1-ext-fold.ll @@ -1,5 +1,8 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -ppc-gen-isel=false < %s | FileCheck --check-prefix=CHECK-NO-ISEL %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=pwr7 -ppc-gen-isel=false < %s | FileCheck \ +; RUN: --check-prefix=CHECK-NO-ISEL %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/i1-to-double.ll =================================================================== --- test/CodeGen/PowerPC/i1-to-double.ll +++ test/CodeGen/PowerPC/i1-to-double.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=ppc32 -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=ppc32 \ +; RUN: -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s define double @test(i1 %X) { %Y = uitofp i1 %X to double ret double %Y Index: test/CodeGen/PowerPC/i32-to-float.ll =================================================================== --- test/CodeGen/PowerPC/i32-to-float.ll +++ test/CodeGen/PowerPC/i32-to-float.ll @@ -1,7 +1,12 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=g5 | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr6 | FileCheck -check-prefix=CHECK-PWR6 %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=a2 | FileCheck -check-prefix=CHECK-A2 %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=+vsx | FileCheck -check-prefix=CHECK-VSX %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=g5 | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr6 | FileCheck -check-prefix=CHECK-PWR6 %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=a2 | FileCheck -check-prefix=CHECK-A2 %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=+vsx \ +; RUN: | FileCheck -check-prefix=CHECK-VSX %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: test/CodeGen/PowerPC/i64-to-float.ll =================================================================== --- test/CodeGen/PowerPC/i64-to-float.ll +++ test/CodeGen/PowerPC/i64-to-float.ll @@ -1,9 +1,11 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu \ -; RUN: -mcpu=a2 | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu \ -; RUN: -mcpu=pwr7 -mattr=+vsx | FileCheck -check-prefix=CHECK-VSX %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu \ -; RUN: -mcpu=pwr9 -mattr=-direct-move | FileCheck %s -check-prefix=CHECK-P9 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=a2 | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=+vsx \ +; RUN: | FileCheck -check-prefix=CHECK-VSX %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr9 -mattr=-direct-move \ +; RUN: | FileCheck %s -check-prefix=CHECK-P9 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: test/CodeGen/PowerPC/i64_fp_round.ll =================================================================== --- test/CodeGen/PowerPC/i64_fp_round.ll +++ test/CodeGen/PowerPC/i64_fp_round.ll @@ -1,5 +1,8 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=-fpcvt < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=-fpcvt -ppc-gen-isel=false < %s | FileCheck %s --check-prefix=CHECK-NO-ISEL +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -mattr=-fpcvt < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -mattr=-fpcvt -ppc-gen-isel=false < %s | FileCheck %s \ +; RUN: --check-prefix=CHECK-NO-ISEL 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: test/CodeGen/PowerPC/ia-neg-const.ll =================================================================== --- test/CodeGen/PowerPC/ia-neg-const.ll +++ test/CodeGen/PowerPC/ia-neg-const.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 < %s \ +; RUN: | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ifcvt.ll =================================================================== --- test/CodeGen/PowerPC/ifcvt.ll +++ test/CodeGen/PowerPC/ifcvt.ll @@ -1,5 +1,9 @@ -; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -verify-machineinstrs | FileCheck %s -; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -verify-machineinstrs -ppc-gen-isel=false | FileCheck --check-prefix=CHECK-NO-ISEL %s +; RUN: llc < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -verify-machineinstrs \ +; RUN: | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -verify-machineinstrs \ +; RUN: -ppc-gen-isel=false | FileCheck --check-prefix=CHECK-NO-ISEL %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: test/CodeGen/PowerPC/inlineasm-i64-reg.ll =================================================================== --- test/CodeGen/PowerPC/inlineasm-i64-reg.ll +++ test/CodeGen/PowerPC/inlineasm-i64-reg.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-bgq-linux -mcpu=a2 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: --mtriple=powerpc64-bgq-linux -mcpu=a2 < %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-f128:128:128-v128:128:128-n32:64" target triple = "powerpc64-bgq-linux" Index: test/CodeGen/PowerPC/isel.ll =================================================================== --- test/CodeGen/PowerPC/isel.ll +++ test/CodeGen/PowerPC/isel.ll @@ -1,8 +1,11 @@ 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 -mcpu=a2 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -ppc-gen-isel=false < %s | FileCheck --check-prefix=CHECK-NO-ISEL %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=a2 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -ppc-gen-isel=false < %s | FileCheck --check-prefix=CHECK-NO-ISEL %s define i64 @test1(i64 %a, i64 %b, i64 %c, i64 %d) { entry: Index: test/CodeGen/PowerPC/jaggedstructs.ll =================================================================== --- test/CodeGen/PowerPC/jaggedstructs.ll +++ test/CodeGen/PowerPC/jaggedstructs.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=ppc64 -O0 -fast-isel=false < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=ppc64 -O0 \ +; RUN: -fast-isel=false < %s | FileCheck %s ; This tests receiving and re-passing parameters consisting of structures ; of size 3, 5, 6, and 7. They are to be found/placed right-adjusted in Index: test/CodeGen/PowerPC/lbz-from-ld-shift.ll =================================================================== --- test/CodeGen/PowerPC/lbz-from-ld-shift.ll +++ test/CodeGen/PowerPC/lbz-from-ld-shift.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=ppc64 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=ppc64 < %s \ +; RUN: | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ld-st-upd.ll =================================================================== --- test/CodeGen/PowerPC/ld-st-upd.ll +++ test/CodeGen/PowerPC/ld-st-upd.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -mcpu=pwr7 -ppc-ignore-percent-prefix < %s \ +; RUN: | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ldtoc-inv.ll =================================================================== --- test/CodeGen/PowerPC/ldtoc-inv.ll +++ test/CodeGen/PowerPC/ldtoc-inv.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -mcpu=pwr7 -ppc-ignore-percent-prefix < %s \ +; RUN: | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/licm-remat.ll =================================================================== --- test/CodeGen/PowerPC/licm-remat.ll +++ test/CodeGen/PowerPC/licm-remat.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: -ppc-ignore-percent-prefix < %s | FileCheck %s ; Test case is reduced from the snappy benchmark. ; Verify MachineLICM will always hoist trivially rematerializable instructions even when register pressure is high. Index: test/CodeGen/PowerPC/licm-tocReg.ll =================================================================== --- test/CodeGen/PowerPC/licm-tocReg.ll +++ test/CodeGen/PowerPC/licm-tocReg.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: -ppc-ignore-percent-prefix < %s | FileCheck %s ; The instructions ADDIStocHA/LDtocL are used to calculate the address of ; globals. The ones that are in bb.3.if.end could not be hoisted by Machine Index: test/CodeGen/PowerPC/load-two-flts.ll =================================================================== --- test/CodeGen/PowerPC/load-two-flts.ll +++ test/CodeGen/PowerPC/load-two-flts.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-bgq-linux" Index: test/CodeGen/PowerPC/load-v4i8-improved.ll =================================================================== --- test/CodeGen/PowerPC/load-v4i8-improved.ll +++ test/CodeGen/PowerPC/load-v4i8-improved.ll @@ -1,6 +1,8 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr8 \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck \ ; RUN: -implicit-check-not vmrg -implicit-check-not=vperm %s -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr8 \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck \ ; RUN: -implicit-check-not vmrg -implicit-check-not=vperm %s define <16 x i8> @test(i32* %s, i32* %t) { Index: test/CodeGen/PowerPC/longcall.ll =================================================================== --- test/CodeGen/PowerPC/longcall.ll +++ test/CodeGen/PowerPC/longcall.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/loop-prep-all.ll =================================================================== --- test/CodeGen/PowerPC/loop-prep-all.ll +++ test/CodeGen/PowerPC/loop-prep-all.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-bgq-linux < %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-BGQ +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix | FileCheck %s +; RUN: llc -verify-machineinstrs -mtriple=powerpc64-bgq-linux < %s \ +; RUN: -ppc-ignore-percent-prefix | FileCheck %s -check-prefix=CHECK \ +; RUN: -check-prefix=CHECK-BGQ target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/lsa.ll =================================================================== --- test/CodeGen/PowerPC/lsa.ll +++ test/CodeGen/PowerPC/lsa.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=ppc64 | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=ppc64 | 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-unknown-linux-gnu" Index: test/CodeGen/PowerPC/lxv-aligned-stack-slots.ll =================================================================== --- test/CodeGen/PowerPC/lxv-aligned-stack-slots.ll +++ test/CodeGen/PowerPC/lxv-aligned-stack-slots.ll @@ -1,4 +1,4 @@ -; RUN: llc -O3 -o - %s | FileCheck %s +; RUN: llc -O3 -o - %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/machine-combiner.ll =================================================================== --- test/CodeGen/PowerPC/machine-combiner.ll +++ test/CodeGen/PowerPC/machine-combiner.ll @@ -1,5 +1,9 @@ -; RUN: llc -verify-machineinstrs -O3 -mcpu=pwr7 -enable-unsafe-fp-math < %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-PWR -; RUN: llc -verify-machineinstrs -O3 -mcpu=a2q -enable-unsafe-fp-math < %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-QPX +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -O3 \ +; RUN: -mcpu=pwr7 -enable-unsafe-fp-math < %s \ +; RUN: | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-PWR +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -O3 -mcpu=a2q \ +; RUN: -enable-unsafe-fp-math < %s | FileCheck %s -check-prefix=CHECK \ +; RUN: -check-prefix=CHECK-QPX target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/mcm-1.ll =================================================================== --- test/CodeGen/PowerPC/mcm-1.ll +++ test/CodeGen/PowerPC/mcm-1.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=medium <%s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=large <%s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -O0 -code-model=medium <%s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -O0 -code-model=large <%s | FileCheck %s ; Test correct code generation for medium and large code model ; for loading and storing an external variable. Index: test/CodeGen/PowerPC/mcm-10.ll =================================================================== --- test/CodeGen/PowerPC/mcm-10.ll +++ test/CodeGen/PowerPC/mcm-10.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O1 -code-model=medium <%s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 -O1 \ +; RUN: -code-model=medium <%s | FileCheck %s ; Test peephole optimization for medium code model (32-bit TOC offsets) ; for loading and storing a static variable scoped to a function. Index: test/CodeGen/PowerPC/mcm-11.ll =================================================================== --- test/CodeGen/PowerPC/mcm-11.ll +++ test/CodeGen/PowerPC/mcm-11.ll @@ -1,4 +1,6 @@ -; RUN: llc -relocation-model=static -verify-machineinstrs -mcpu=pwr7 -O1 -code-model=medium <%s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -relocation-model=static \ +; RUN: -verify-machineinstrs -mcpu=pwr7 -O1 -code-model=medium <%s \ +; RUN: | FileCheck %s ; Test peephole optimization for medium code model (32-bit TOC offsets) ; for loading and storing a file-scope static variable. Index: test/CodeGen/PowerPC/mcm-12.ll =================================================================== --- test/CodeGen/PowerPC/mcm-12.ll +++ test/CodeGen/PowerPC/mcm-12.ll @@ -1,8 +1,11 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O1 -code-model=medium \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -O1 -code-model=medium \ ; RUN: -mattr=-vsx < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O1 -code-model=medium \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -O1 -code-model=medium \ ; RUN: -mattr=+vsx < %s | FileCheck -check-prefix=CHECK-VSX %s -; RUN: llc -verify-machineinstrs -mcpu=pwr9 -O1 -code-model=medium < %s | \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr9 \ +; RUN: -O1 -code-model=medium < %s | \ ; RUN: FileCheck -check-prefix=CHECK-P9 %s ; Test peephole optimization for medium code model (32-bit TOC offsets) Index: test/CodeGen/PowerPC/mcm-13.ll =================================================================== --- test/CodeGen/PowerPC/mcm-13.ll +++ test/CodeGen/PowerPC/mcm-13.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=medium <%s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=large <%s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -O0 -code-model=medium <%s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -O0 -code-model=large <%s | FileCheck %s ; Test correct code generation for medium and large code model ; for loading and storing a weak variable Index: test/CodeGen/PowerPC/mcm-2.ll =================================================================== --- test/CodeGen/PowerPC/mcm-2.ll +++ test/CodeGen/PowerPC/mcm-2.ll @@ -1,5 +1,8 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=medium <%s | FileCheck -check-prefix=MEDIUM %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=large <%s | FileCheck -check-prefix=LARGE %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=pwr7 -O0 -code-model=medium <%s \ +; RUN: | FileCheck -check-prefix=MEDIUM %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -O0 -code-model=large <%s | FileCheck -check-prefix=LARGE %s ; Test correct code generation for medium and large code model ; for loading and storing a static variable scoped to a function. Index: test/CodeGen/PowerPC/mcm-3.ll =================================================================== --- test/CodeGen/PowerPC/mcm-3.ll +++ test/CodeGen/PowerPC/mcm-3.ll @@ -1,5 +1,9 @@ -; RUN: llc -relocation-model=static -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=medium <%s | FileCheck -check-prefix=MEDIUM %s -; RUN: llc -relocation-model=static -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=large <%s | FileCheck -check-prefix=LARGE %s +; RUN: llc -ppc-ignore-percent-prefix -relocation-model=static \ +; RUN: -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=medium <%s \ +; RUN: | FileCheck -check-prefix=MEDIUM %s +; RUN: llc -ppc-ignore-percent-prefix -relocation-model=static \ +; RUN: -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=large <%s \ +; RUN: | FileCheck -check-prefix=LARGE %s ; Test correct code generation for medium and large code model ; for loading and storing a file-scope static variable. Index: test/CodeGen/PowerPC/mcm-4.ll =================================================================== --- test/CodeGen/PowerPC/mcm-4.ll +++ test/CodeGen/PowerPC/mcm-4.ll @@ -1,15 +1,22 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=medium \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mcpu=pwr7 -O0 -code-model=medium \ ; RUN: -fast-isel=false -mattr=-vsx <%s | FileCheck -check-prefix=MEDIUM %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=medium \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mcpu=pwr7 -O0 -code-model=medium \ ; RUN: -fast-isel=false -mattr=+vsx <%s | FileCheck -check-prefix=MEDIUM-VSX %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=large \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mcpu=pwr7 -O0 -code-model=large \ ; RUN: -fast-isel=false -mattr=-vsx <%s | FileCheck -check-prefix=LARGE %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=large \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mcpu=pwr7 -O0 -code-model=large \ ; RUN: -fast-isel=false -mattr=+vsx <%s | FileCheck -check-prefix=LARGE-VSX %s -; RUN: llc -verify-machineinstrs -mcpu=pwr9 -O0 -code-model=medium \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mcpu=pwr9 -O0 -code-model=medium \ ; RUN: -fast-isel=false -mattr=+vsx <%s | FileCheck -check-prefix=MEDIUM-P9 %s -; RUN: llc -verify-machineinstrs -mcpu=pwr9 -O0 -code-model=large \ -; RUN: -fast-isel=false -mattr=+vsx <%s | FileCheck -check-prefix=LARGE-P9 %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mcpu=pwr9 -O0 -code-model=large \ +; RUN: -fast-isel=false -mattr=+vsx <%s \ +; RUN: | FileCheck -check-prefix=LARGE-P9 %s ; Test correct code generation for medium and large code model ; for loading a value from the constant pool (TOC-relative). Index: test/CodeGen/PowerPC/mcm-5.ll =================================================================== --- test/CodeGen/PowerPC/mcm-5.ll +++ test/CodeGen/PowerPC/mcm-5.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -code-model=medium <%s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -code-model=large <%s | FileCheck -check-prefix=LARGE %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -code-model=medium <%s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -code-model=large <%s | FileCheck -check-prefix=LARGE %s ; Test correct code generation for medium and large code model ; for loading the address of a jump table from the TOC. Index: test/CodeGen/PowerPC/mcm-6.ll =================================================================== --- test/CodeGen/PowerPC/mcm-6.ll +++ test/CodeGen/PowerPC/mcm-6.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=medium < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=large < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -O0 -code-model=medium < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -O0 -code-model=large < %s | FileCheck %s ; Test correct code generation for medium and large code model ; for loading and storing a tentatively defined variable. Index: test/CodeGen/PowerPC/mcm-7.ll =================================================================== --- test/CodeGen/PowerPC/mcm-7.ll +++ test/CodeGen/PowerPC/mcm-7.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=medium < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=large < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -O0 -code-model=medium < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -O0 -code-model=large < %s | FileCheck %s ; Test correct code generation for medium and large code model ; for loading a function address. Index: test/CodeGen/PowerPC/mcm-8.ll =================================================================== --- test/CodeGen/PowerPC/mcm-8.ll +++ test/CodeGen/PowerPC/mcm-8.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=medium < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=large < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -O0 -code-model=medium < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -O0 -code-model=large < %s | FileCheck %s ; Test correct code generation for medium and large code model ; for loading a variable with available-externally linkage. Index: test/CodeGen/PowerPC/mcm-9.ll =================================================================== --- test/CodeGen/PowerPC/mcm-9.ll +++ test/CodeGen/PowerPC/mcm-9.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=medium <%s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 -code-model=large <%s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -O0 -code-model=medium <%s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -O0 -code-model=large <%s | FileCheck %s ; Test correct code generation for medium and large code model ; for loading and storing an aliased external variable. Index: test/CodeGen/PowerPC/mcm-default.ll =================================================================== --- test/CodeGen/PowerPC/mcm-default.ll +++ test/CodeGen/PowerPC/mcm-default.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 <%s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -O0 <%s | FileCheck %s ; Test that we generate code for the medium model as the default. ; Use an external variable reference as an example. Index: test/CodeGen/PowerPC/memcmp.ll =================================================================== --- test/CodeGen/PowerPC/memcmp.ll +++ test/CodeGen/PowerPC/memcmp.ll @@ -1,5 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mtriple=powerpc64le-unknown-gnu-linux < %s | FileCheck %s -check-prefix=CHECK +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr8 \ +; RUN: -mtriple=powerpc64le-unknown-gnu-linux < %s \ +; RUN: | FileCheck %s -check-prefix=CHECK define signext i32 @memcmp8(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) { ; CHECK-LABEL: memcmp8: Index: test/CodeGen/PowerPC/memcpy-vec.ll =================================================================== --- test/CodeGen/PowerPC/memcpy-vec.ll +++ test/CodeGen/PowerPC/memcpy-vec.ll @@ -1,6 +1,9 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s -check-prefix=PWR7 -; RUN: llc -verify-machineinstrs -mcpu=pwr8 < %s | FileCheck %s -check-prefix=PWR8 -; RUN: llc -verify-machineinstrs -mcpu=a2q < %s | FileCheck %s -check-prefix=A2Q +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 < %s \ +; RUN: | FileCheck %s -check-prefix=PWR7 +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr8 < %s \ +; RUN: | FileCheck %s -check-prefix=PWR8 +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=a2q < %s \ +; RUN: | FileCheck %s -check-prefix=A2Q target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/memcpy_dereferenceable.ll =================================================================== --- test/CodeGen/PowerPC/memcpy_dereferenceable.ll +++ test/CodeGen/PowerPC/memcpy_dereferenceable.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr8 \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s ; This code causes an assertion failure if dereferenceable flag is not properly set in the load generated for memcpy Index: test/CodeGen/PowerPC/merge_stores_dereferenceable.ll =================================================================== --- test/CodeGen/PowerPC/merge_stores_dereferenceable.ll +++ test/CodeGen/PowerPC/merge_stores_dereferenceable.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s ; This code causes an assertion failure if dereferenceable flag is not properly set when in merging consecutive stores ; CHECK-LABEL: func: Index: test/CodeGen/PowerPC/mftb.ll =================================================================== --- test/CodeGen/PowerPC/mftb.ll +++ test/CodeGen/PowerPC/mftb.ll @@ -4,19 +4,26 @@ ; should be used instead. There should no longer be a deprecated warning ; message emittedfor this instruction for any CPU. -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %s 2>&1 \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %s 2>&1 \ ; RUN: | FileCheck %s --check-prefix=CHECK-MFSPR -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s 2>&1 \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s 2>&1 \ ; RUN: | FileCheck %s --check-prefix=CHECK-MFSPR -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu < %s 2>&1 \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s 2>&1 \ ; RUN: | FileCheck %s --check-prefix=CHECK-MFSPR -; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu < %s 2>&1 \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc-unknown-linux-gnu < %s 2>&1 \ ; RUN: | FileCheck %s --check-prefix=CHECK-MFSPR -; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu -mcpu=ppc < %s 2>&1 \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc-unknown-linux-gnu -mcpu=ppc < %s 2>&1 \ ; RUN: | FileCheck %s --check-prefix=CHECK-MFSPR -; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu -mcpu=601 < %s 2>&1 \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc-unknown-linux-gnu -mcpu=601 < %s 2>&1 \ ; RUN: | FileCheck %s --check-prefix=CHECK-MFTB -; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu -mcpu=pwr3 < %s 2>&1 \ +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc-unknown-linux-gnu -mcpu=pwr3 < %s 2>&1 \ ; RUN: | FileCheck %s --check-prefix=CHECK-MFTB ; CHECK-MFSPR-NOT: warning: deprecated Index: test/CodeGen/PowerPC/mulli64.ll =================================================================== --- test/CodeGen/PowerPC/mulli64.ll +++ test/CodeGen/PowerPC/mulli64.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -mcpu=pwr7 -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu < %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-f128:128:128-v128:128:128-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/multi-return.ll =================================================================== --- test/CodeGen/PowerPC/multi-return.ll +++ test/CodeGen/PowerPC/multi-return.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -O0 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -O2 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -O0 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -O2 < %s | FileCheck %s ; Verify that returning multiple return values in registers works, ; both with fast-isel and regular isel. Index: test/CodeGen/PowerPC/named-reg-alloc-r1-64.ll =================================================================== --- test/CodeGen/PowerPC/named-reg-alloc-r1-64.ll +++ test/CodeGen/PowerPC/named-reg-alloc-r1-64.ll @@ -1,5 +1,6 @@ ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-apple-darwin 2>&1 | FileCheck %s --check-prefix=CHECK-DARWIN -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s define i64 @get_reg() nounwind { entry: Index: test/CodeGen/PowerPC/named-reg-alloc-r1.ll =================================================================== --- test/CodeGen/PowerPC/named-reg-alloc-r1.ll +++ test/CodeGen/PowerPC/named-reg-alloc-r1.ll @@ -1,7 +1,12 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin 2>&1 | FileCheck %s --check-prefix=CHECK-DARWIN -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-apple-darwin 2>&1 | FileCheck %s --check-prefix=CHECK-DARWIN -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu 2>&1 | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin \ +; RUN: 2>&1 | FileCheck %s --check-prefix=CHECK-DARWIN +; RUN: llc -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-apple-darwin 2>&1 | FileCheck %s \ +; RUN: --check-prefix=CHECK-DARWIN +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix < %s \ +; RUN: -mtriple=powerpc-unknown-linux-gnu 2>&1 | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s define i32 @get_reg() nounwind { entry: Index: test/CodeGen/PowerPC/named-reg-alloc-r13-64.ll =================================================================== --- test/CodeGen/PowerPC/named-reg-alloc-r13-64.ll +++ test/CodeGen/PowerPC/named-reg-alloc-r13-64.ll @@ -1,5 +1,6 @@ ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-apple-darwin 2>&1 | FileCheck %s --check-prefix=CHECK-DARWIN -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s define i64 @get_reg() nounwind { entry: Index: test/CodeGen/PowerPC/named-reg-alloc-r13.ll =================================================================== --- test/CodeGen/PowerPC/named-reg-alloc-r13.ll +++ test/CodeGen/PowerPC/named-reg-alloc-r13.ll @@ -1,6 +1,8 @@ ; RUN: not llc < %s -mtriple=powerpc-apple-darwin 2>&1 | FileCheck %s --check-prefix=CHECK-DARWIN -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu 2>&1 | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc-unknown-linux-gnu 2>&1 | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s define i32 @get_reg() nounwind { entry: Index: test/CodeGen/PowerPC/named-reg-alloc-r2.ll =================================================================== --- test/CodeGen/PowerPC/named-reg-alloc-r2.ll +++ test/CodeGen/PowerPC/named-reg-alloc-r2.ll @@ -1,6 +1,9 @@ ; RUN: not llc < %s -mtriple=powerpc-apple-darwin 2>&1 | FileCheck %s --check-prefix=CHECK-NOTPPC32 -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu 2>&1 | FileCheck %s -; RUN: not llc < %s -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s --check-prefix=CHECK-NOTPPC32 +; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu \ +; RUN: -ppc-ignore-percent-prefix 2>&1 | FileCheck %s +; RUN: not llc < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s \ +; RUN: --check-prefix=CHECK-NOTPPC32 define i32 @get_reg() nounwind { entry: Index: test/CodeGen/PowerPC/negate-i1.ll =================================================================== --- test/CodeGen/PowerPC/negate-i1.ll +++ test/CodeGen/PowerPC/negate-i1.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s ; PR30661 - https://llvm.org/bugs/show_bug.cgi?id=30661 Index: test/CodeGen/PowerPC/negctr.ll =================================================================== --- test/CodeGen/PowerPC/negctr.ll +++ test/CodeGen/PowerPC/negctr.ll @@ -1,5 +1,6 @@ -; RUN: llc < %s -mcpu=a2 | FileCheck %s -; RUN: llc < %s -mcpu=a2 -disable-lsr | FileCheck -check-prefix=NOLSR %s +; RUN: llc < %s -mcpu=a2 -ppc-ignore-percent-prefix | FileCheck %s +; RUN: llc < %s -mcpu=a2 -ppc-ignore-percent-prefix \ +; RUN: -disable-lsr | FileCheck -check-prefix=NOLSR %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: test/CodeGen/PowerPC/no-extra-fp-conv-ldst.ll =================================================================== --- test/CodeGen/PowerPC/no-extra-fp-conv-ldst.ll +++ test/CodeGen/PowerPC/no-extra-fp-conv-ldst.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=a2 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=a2 < %s \ +; RUN: | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/opt-li-add-to-addi.ll =================================================================== --- test/CodeGen/PowerPC/opt-li-add-to-addi.ll +++ test/CodeGen/PowerPC/opt-li-add-to-addi.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s define i64 @testOptimizeLiAddToAddi(i64 %a) { ; CHECK-LABEL: testOptimizeLiAddToAddi: Index: test/CodeGen/PowerPC/optnone-crbits-i1-ret.ll =================================================================== --- test/CodeGen/PowerPC/optnone-crbits-i1-ret.ll +++ test/CodeGen/PowerPC/optnone-crbits-i1-ret.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-bgq-linux" Index: test/CodeGen/PowerPC/ori_imm32.ll =================================================================== --- test/CodeGen/PowerPC/ori_imm32.ll +++ test/CodeGen/PowerPC/ori_imm32.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix < %s \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s define i64 @ori_test_a(i64 %a) { entry: Index: test/CodeGen/PowerPC/p8-isel-sched.ll =================================================================== --- test/CodeGen/PowerPC/p8-isel-sched.ll +++ test/CodeGen/PowerPC/p8-isel-sched.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -ppc-gen-isel=false < %s | FileCheck --check-prefix=CHECK-NO-ISEL %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr8 \ +; RUN: < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr8 \ +; RUN: -ppc-gen-isel=false < %s | FileCheck --check-prefix=CHECK-NO-ISEL %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll =================================================================== --- test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll +++ test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll @@ -1,5 +1,7 @@ -; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 | FileCheck %s -; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 | FileCheck %s -check-prefix=CHECK-LE +; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 \ +; RUN: -ppc-ignore-percent-prefix | FileCheck %s +; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 \ +; RUN: -ppc-ignore-percent-prefix | FileCheck %s -check-prefix=CHECK-LE ; The build[csilf] functions simply test the scalar_to_vector handling with ; direct moves. This corresponds to the "insertelement" instruction. Subsequent Index: test/CodeGen/PowerPC/p8altivec-shuffles-pred.ll =================================================================== --- test/CodeGen/PowerPC/p8altivec-shuffles-pred.ll +++ test/CodeGen/PowerPC/p8altivec-shuffles-pred.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/p9-vector-compares-and-counts.ll =================================================================== --- test/CodeGen/PowerPC/p9-vector-compares-and-counts.ll +++ test/CodeGen/PowerPC/p9-vector-compares-and-counts.ll @@ -1,4 +1,5 @@ -; RUN: llc -mcpu=pwr9 -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: llc -mcpu=pwr9 -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu \ ; RUN: -verify-machineinstrs < %s | FileCheck %s ; Function Attrs: nounwind readnone Index: test/CodeGen/PowerPC/p9-xxinsertw-xxextractuw.ll =================================================================== --- test/CodeGen/PowerPC/p9-xxinsertw-xxextractuw.ll +++ test/CodeGen/PowerPC/p9-xxinsertw-xxextractuw.ll @@ -1,7 +1,8 @@ ; RUN: llc -mcpu=pwr9 -mtriple=powerpc64le-unknown-linux-gnu \ -; RUN: -verify-machineinstrs < %s | FileCheck %s +; RUN: -verify-machineinstrs -ppc-ignore-percent-prefix < %s | FileCheck %s ; RUN: llc -mcpu=pwr9 -mtriple=powerpc64-unknown-linux-gnu \ -; RUN: -verify-machineinstrs < %s | FileCheck %s --check-prefix=CHECK-BE +; RUN: -verify-machineinstrs -ppc-ignore-percent-prefix < %s | FileCheck %s \ +; RUN: --check-prefix=CHECK-BE define <4 x float> @_Z7testInsILj0ELj0EDv4_fET1_S1_S1_(<4 x float> %a, <4 x float> %b) { entry: Index: test/CodeGen/PowerPC/peephole-align.ll =================================================================== --- test/CodeGen/PowerPC/peephole-align.ll +++ test/CodeGen/PowerPC/peephole-align.ll @@ -1,5 +1,9 @@ -; RUN: llc -relocation-model=static -verify-machineinstrs -mcpu=pwr7 -O1 -code-model=medium <%s | FileCheck %s -; RUN: llc -relocation-model=static -verify-machineinstrs -mcpu=pwr8 -O1 -code-model=medium <%s | FileCheck %s +; RUN: llc -relocation-model=static -ppc-ignore-percent-prefix \ +; RUN: -verify-machineinstrs -mcpu=pwr7 -O1 -code-model=medium <%s \ +; RUN: | FileCheck %s +; RUN: llc -relocation-model=static -ppc-ignore-percent-prefix \ +; RUN: -verify-machineinstrs -mcpu=pwr8 -O1 -code-model=medium <%s \ +; RUN: | FileCheck %s ; Test peephole optimization for medium code model (32-bit TOC offsets) ; for loading and storing small offsets within aligned values. Index: test/CodeGen/PowerPC/pip-inner.ll =================================================================== --- test/CodeGen/PowerPC/pip-inner.ll +++ test/CodeGen/PowerPC/pip-inner.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/power9-moves-and-splats.ll =================================================================== --- test/CodeGen/PowerPC/power9-moves-and-splats.ll +++ test/CodeGen/PowerPC/power9-moves-and-splats.ll @@ -1,5 +1,7 @@ -; RUN: llc -mcpu=pwr9 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s -; RUN: llc -mcpu=pwr9 -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s \ +; RUN: llc -mcpu=pwr9 -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -mcpu=pwr9 -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s \ ; RUN: --check-prefix=CHECK-BE @Globi = external global i32, align 4 Index: test/CodeGen/PowerPC/ppc-redzone-alignment-bug.ll =================================================================== --- test/CodeGen/PowerPC/ppc-redzone-alignment-bug.ll +++ test/CodeGen/PowerPC/ppc-redzone-alignment-bug.ll @@ -1,7 +1,11 @@ ; Note the formula for negative number alignment calculation should be y = x & ~(n-1) rather than y = (x + (n-1)) & ~(n-1). ; after patch https://reviews.llvm.org/D34337, we could save 16 bytes in the best case. -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -check-prefix=CHECK-BE -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -check-prefix=CHECK-LE +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s \ +; RUN: | FileCheck %s -check-prefix=CHECK-BE +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s \ +; RUN: | FileCheck %s -check-prefix=CHECK-LE define signext i32 @bar(i32 signext %ii) { entry: Index: test/CodeGen/PowerPC/ppc-shrink-wrapping.ll =================================================================== --- test/CodeGen/PowerPC/ppc-shrink-wrapping.ll +++ test/CodeGen/PowerPC/ppc-shrink-wrapping.ll @@ -1,5 +1,9 @@ -; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=ENABLE -; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu %s -o - -enable-shrink-wrap=false | FileCheck %s --check-prefix=CHECK --check-prefix=DISABLE +; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: -ppc-ignore-percent-prefix -mcpu=pwr8 %s -o - \ +; RUN: | FileCheck %s --check-prefix=CHECK --check-prefix=ENABLE +; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: -ppc-ignore-percent-prefix %s -o - -enable-shrink-wrap=false \ +; RUN: | FileCheck %s --check-prefix=CHECK --check-prefix=DISABLE ; ; Note: Lots of tests use inline asm instead of regular calls. ; This allows to have a better control on what the allocation will do. Index: test/CodeGen/PowerPC/ppc32-align-long-double-sf.ll =================================================================== --- test/CodeGen/PowerPC/ppc32-align-long-double-sf.ll +++ test/CodeGen/PowerPC/ppc32-align-long-double-sf.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -O2 -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -O2 -mtriple=powerpc-unknown-linux-gnu \ +; RUN: -ppc-ignore-percent-prefix < %s | FileCheck %s @x = global ppc_fp128 0xM405EDA5E353F7CEE0000000000000000, align 16 @.str = private unnamed_addr constant [5 x i8] c"%Lf\0A\00", align 1 Index: test/CodeGen/PowerPC/ppc32-constant-BE-ppcf128.ll =================================================================== --- test/CodeGen/PowerPC/ppc32-constant-BE-ppcf128.ll +++ test/CodeGen/PowerPC/ppc32-constant-BE-ppcf128.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -O2 -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -O2 -mtriple=powerpc-unknown-linux-gnu \ +; RUN: -ppc-ignore-percent-prefix < %s | FileCheck %s target datalayout = "E-m:e-p:32:32-i64:64-n32" target triple = "powerpc-buildroot-linux-gnu" Index: test/CodeGen/PowerPC/ppc32-i1-vaarg.ll =================================================================== --- test/CodeGen/PowerPC/ppc32-i1-vaarg.ll +++ test/CodeGen/PowerPC/ppc32-i1-vaarg.ll @@ -1,5 +1,7 @@ -; 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 +; RUN: llc -verify-machineinstrs < %s -mcpu=ppc32 -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -mcpu=ppc32 -mtriple=powerpc-darwin9 \ +; RUN: -ppc-ignore-percent-prefix | FileCheck %s -check-prefix=CHECK-D target triple = "powerpc-unknown-linux-gnu" declare void @printf(i8*, ...) Index: test/CodeGen/PowerPC/ppc32-nest.ll =================================================================== --- test/CodeGen/PowerPC/ppc32-nest.ll +++ test/CodeGen/PowerPC/ppc32-nest.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix < %s | FileCheck %s target datalayout = "E-m:e-p:32:32-i64:64-n32" target triple = "powerpc-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ppc32-pic-large.ll =================================================================== --- test/CodeGen/PowerPC/ppc32-pic-large.ll +++ test/CodeGen/PowerPC/ppc32-pic-large.ll @@ -1,4 +1,5 @@ -; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -relocation-model=pic | FileCheck -check-prefix=LARGE-BSS %s +; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -ppc-ignore-percent-prefix \ +; RUN: -relocation-model=pic | FileCheck -check-prefix=LARGE-BSS %s @bar = common global i32 0, align 4 declare i32 @call_foo(i32, ...) Index: test/CodeGen/PowerPC/ppc32-pic.ll =================================================================== --- test/CodeGen/PowerPC/ppc32-pic.ll +++ test/CodeGen/PowerPC/ppc32-pic.ll @@ -1,4 +1,5 @@ -; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -relocation-model=pic | FileCheck -check-prefix=SMALL-BSS %s +; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -ppc-ignore-percent-prefix \ +; RUN: -relocation-model=pic | FileCheck -check-prefix=SMALL-BSS %s @bar = common global i32 0, align 4 declare i32 @call_foo(i32, ...) Index: test/CodeGen/PowerPC/ppc32-skip-regs.ll =================================================================== --- test/CodeGen/PowerPC/ppc32-skip-regs.ll +++ test/CodeGen/PowerPC/ppc32-skip-regs.ll @@ -1,4 +1,5 @@ -; RUN: llc -O2 -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -O2 -mtriple=powerpc-unknown-linux-gnu \ +; RUN: -ppc-ignore-percent-prefix < %s | FileCheck %s target datalayout = "E-m:e-p:32:32-i64:64-n32" target triple = "powerpc-buildroot-linux-gnu" Index: test/CodeGen/PowerPC/ppc32-vacopy.ll =================================================================== --- test/CodeGen/PowerPC/ppc32-vacopy.ll +++ test/CodeGen/PowerPC/ppc32-vacopy.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mtriple="powerpc-unknown-linux-gnu" -mcpu=ppc64 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple="powerpc-unknown-linux-gnu" -mcpu=ppc64 < %s | FileCheck %s ; PR15286 %va_list = type {i8, i8, i16, i8*, i8*} Index: test/CodeGen/PowerPC/ppc64-P9-mod.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-P9-mod.ll +++ test/CodeGen/PowerPC/ppc64-P9-mod.ll @@ -1,6 +1,10 @@ -; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 -verify-machineinstrs | FileCheck %s -; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr9 -verify-machineinstrs | FileCheck %s -; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 | FileCheck %s -check-prefix=CHECK-PWR8 -implicit-check-not mod[us][wd] +; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 \ +; RUN: -verify-machineinstrs -ppc-ignore-percent-prefix | FileCheck %s +; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr9 \ +; RUN: -verify-machineinstrs -ppc-ignore-percent-prefix | FileCheck %s +; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 \ +; RUN: -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s -check-prefix=CHECK-PWR8 -implicit-check-not mod[us][wd] @mod_resultsw = common local_unnamed_addr global i32 0, align 4 @mod_resultud = common local_unnamed_addr global i64 0, align 8 Index: test/CodeGen/PowerPC/ppc64-P9-vabsd.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-P9-vabsd.ll +++ test/CodeGen/PowerPC/ppc64-P9-vabsd.ll @@ -1,6 +1,10 @@ -; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 -verify-machineinstrs | FileCheck %s -; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr9 -verify-machineinstrs | FileCheck %s -; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -verify-machineinstrs | FileCheck %s -check-prefix=CHECK-PWR8 -implicit-check-not vabsdu +; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 \ +; RUN: -verify-machineinstrs -ppc-ignore-percent-prefix | FileCheck %s +; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr9 \ +; RUN: -verify-machineinstrs -ppc-ignore-percent-prefix | FileCheck %s +; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 \ +; RUN: -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s -check-prefix=CHECK-PWR8 -implicit-check-not vabsdu ; Function Attrs: nounwind readnone define <4 x i32> @simple_absv_32(<4 x i32> %a) local_unnamed_addr { Index: test/CodeGen/PowerPC/ppc64-abi-extend.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-abi-extend.ll +++ test/CodeGen/PowerPC/ppc64-abi-extend.ll @@ -1,6 +1,6 @@ ; Verify that i32 argument/return values are extended to i64 -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix | 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-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ppc64-align-long-double.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-align-long-double.ll +++ test/CodeGen/PowerPC/ppc64-align-long-double.ll @@ -1,6 +1,9 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O2 -fast-isel=false -mattr=-vsx < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O2 -fast-isel=false -mattr=+vsx < %s | FileCheck -check-prefix=CHECK-VSX %s -; RUN: llc -verify-machineinstrs -mcpu=pwr9 -O2 -fast-isel=false -mattr=+vsx < %s | FileCheck -check-prefix=CHECK-P9 %s +; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O2 -fast-isel=false -mattr=-vsx \ +; RUN: -ppc-ignore-percent-prefix < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O2 -fast-isel=false -mattr=+vsx \ +; RUN: -ppc-ignore-percent-prefix < %s | FileCheck -check-prefix=CHECK-VSX %s +; RUN: llc -verify-machineinstrs -mcpu=pwr9 -O2 -fast-isel=false -mattr=+vsx \ +; RUN: -ppc-ignore-percent-prefix < %s | FileCheck -check-prefix=CHECK-P9 %s ; Verify internal alignment of long double in a struct. The double ; argument comes in in GPR3; GPR4 is skipped; GPRs 5 and 6 contain Index: test/CodeGen/PowerPC/ppc64-altivec-abi.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-altivec-abi.ll +++ test/CodeGen/PowerPC/ppc64-altivec-abi.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mattr=+altivec | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mattr=+altivec | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ppc64-byval-align.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-byval-align.ll +++ test/CodeGen/PowerPC/ppc64-byval-align.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -O1 < %s -mcpu=pwr7 | FileCheck %s +; RUN: llc -verify-machineinstrs -O1 < %s -ppc-ignore-percent-prefix \ +; RUN: -mcpu=pwr7 | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ppc64-calls.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-calls.ll +++ test/CodeGen/PowerPC/ppc64-calls.ll @@ -1,5 +1,8 @@ -; RUN: llc -relocation-model=static -verify-machineinstrs < %s -mcpu=pwr7 | FileCheck %s -; RUN: llc -relocation-model=static -verify-machineinstrs < %s -code-model=small -mcpu=pwr7 | FileCheck %s -check-prefix=SCM +; RUN: llc -relocation-model=static -verify-machineinstrs < %s \ +; RUN: -ppc-ignore-percent-prefix -mcpu=pwr7 | FileCheck %s +; RUN: llc -relocation-model=static -verify-machineinstrs < %s \ +; RUN: -ppc-ignore-percent-prefix -code-model=small -mcpu=pwr7 \ +; RUN: | FileCheck %s -check-prefix=SCM 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: test/CodeGen/PowerPC/ppc64-cyclecounter.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-cyclecounter.ll +++ test/CodeGen/PowerPC/ppc64-cyclecounter.ll @@ -1,6 +1,6 @@ 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 | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix | FileCheck %s define i64 @test1() nounwind { entry: Index: test/CodeGen/PowerPC/ppc64-fastcc-fast-isel.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-fastcc-fast-isel.ll +++ test/CodeGen/PowerPC/ppc64-fastcc-fast-isel.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=-vsx -fast-isel -fast-isel-abort=1 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -mattr=-vsx -fast-isel -fast-isel-abort=1 < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ppc64-func-desc-hoist.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-func-desc-hoist.ll +++ test/CodeGen/PowerPC/ppc64-func-desc-hoist.ll @@ -1,5 +1,8 @@ -; RUN: llc -verify-machineinstrs -mcpu=a2 < %s | FileCheck %s -check-prefix=INVFUNCDESC -; RUN: llc -verify-machineinstrs -mcpu=a2 -mattr=-invariant-function-descriptors < %s | FileCheck %s -check-prefix=NONINVFUNCDESC +; RUN: llc -verify-machineinstrs -mcpu=a2 < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s -check-prefix=INVFUNCDESC +; RUN: llc -verify-machineinstrs -mcpu=a2 \ +; RUN: -mattr=-invariant-function-descriptors < %s \ +; RUN: -ppc-ignore-percent-prefix | FileCheck %s -check-prefix=NONINVFUNCDESC target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ppc64-gep-opt.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-gep-opt.ll +++ test/CodeGen/PowerPC/ppc64-gep-opt.ll @@ -1,6 +1,13 @@ -; RUN: llc -verify-machineinstrs -O3 -mcpu=pwr7 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -O3 -print-after=codegenprepare -mcpu=ppc64 < %s >%t 2>&1 && FileCheck --check-prefix=CHECK-NoAA <%t %s -; RUN: llc -verify-machineinstrs -O3 -print-after=codegenprepare -mcpu=pwr7 < %s >%t 2>&1 && FileCheck --check-prefix=CHECK-UseAA <%t %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -O3 \ +; RUN: -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -O3 -print-after=codegenprepare -mcpu=ppc64 \ +; RUN: < %s >%t 2>&1 && FileCheck \ +; RUN: --check-prefix=CHECK-NoAA <%t %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -O3 -print-after=codegenprepare -mcpu=pwr7 \ +; RUN: < %s >%t 2>&1 && FileCheck \ +; RUN: --check-prefix=CHECK-UseAA <%t %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ppc64-i128-abi.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-i128-abi.ll +++ test/CodeGen/PowerPC/ppc64-i128-abi.ll @@ -1,22 +1,27 @@ ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \ -; RUN: -mcpu=pwr8 < %s | FileCheck %s -check-prefix=CHECK-LE \ +; RUN: -mcpu=pwr8 < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s -check-prefix=CHECK-LE \ ; RUN: --implicit-check-not xxswapd ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \ -; RUN: -mcpu=pwr8 < %s | FileCheck %s -check-prefix=CHECK-BE +; RUN: -mcpu=pwr8 < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s -check-prefix=CHECK-BE ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \ -; RUN: -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s -check-prefix=CHECK-NOVSX +; RUN: -mcpu=pwr8 -mattr=-vsx < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s -check-prefix=CHECK-NOVSX ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \ -; RUN: -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s -check-prefix=CHECK-NOVSX \ +; RUN: -mcpu=pwr8 -mattr=-vsx < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s -check-prefix=CHECK-NOVSX \ ; RUN: --implicit-check-not xxswapd ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \ -; RUN: -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s -check-prefix=CHECK-BE-NOVSX +; RUN: -mcpu=pwr8 -mattr=-vsx < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s -check-prefix=CHECK-BE-NOVSX ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \ -; RUN: -mcpu=pwr8 -mattr=-vsx < %s | \ +; RUN: -mcpu=pwr8 -mattr=-vsx < %s -ppc-ignore-percent-prefix | \ ; RUN: FileCheck %s -check-prefix=CHECK-LE-NOVSX --implicit-check-not xxswapd ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \ @@ -24,11 +29,13 @@ ; RUN: FileCheck %s -check-prefix=CHECK-P9 --implicit-check-not xxswapd ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \ -; RUN: -mcpu=pwr9 -mattr=-vsx < %s | FileCheck %s -check-prefix=CHECK-NOVSX \ +; RUN: -mcpu=pwr9 -mattr=-vsx < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s -check-prefix=CHECK-NOVSX \ ; RUN: --implicit-check-not xxswapd ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \ -; RUN: -mcpu=pwr9 -mattr=-power9-vector -mattr=-direct-move < %s | \ +; RUN: -mcpu=pwr9 -mattr=-power9-vector -mattr=-direct-move < %s \ +; RUN: -ppc-ignore-percent-prefix | \ ; RUN: FileCheck %s -check-prefix=CHECK-LE --implicit-check-not xxswapd @x = common global <1 x i128> zeroinitializer, align 16 Index: test/CodeGen/PowerPC/ppc64-nest.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-nest.ll +++ test/CodeGen/PowerPC/ppc64-nest.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ppc64-nonfunc-calls.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-nonfunc-calls.ll +++ test/CodeGen/PowerPC/ppc64-nonfunc-calls.ll @@ -1,4 +1,5 @@ -; RUN: llc -relocation-model=static -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -relocation-model=static -verify-machineinstrs -mcpu=pwr7 < %s \ +; RUN: -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ppc64-patchpoint.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-patchpoint.ll +++ test/CodeGen/PowerPC/ppc64-patchpoint.ll @@ -1,7 +1,12 @@ -; RUN: llc < %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-BE -; RUN: llc -fast-isel -fast-isel-abort=1 < %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-BE -; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-LE -; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -fast-isel -fast-isel-abort=1 < %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-LE +; RUN: llc < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-BE +; RUN: llc -fast-isel -fast-isel-abort=1 < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-BE +; RUN: llc -ppc-ignore-percent-prefix -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: < %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-LE +; RUN: llc -ppc-ignore-percent-prefix -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: -fast-isel -fast-isel-abort=1 < %s | FileCheck %s \ +; RUN: -check-prefix=CHECK -check-prefix=CHECK-LE target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ppc64-pre-inc-no-extra-phi.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-pre-inc-no-extra-phi.ll +++ test/CodeGen/PowerPC/ppc64-pre-inc-no-extra-phi.ll @@ -1,7 +1,15 @@ -; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 -verify-machineinstrs | FileCheck %s -; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr9 -verify-machineinstrs | FileCheck %s -; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -verify-machineinstrs | FileCheck %s -; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -verify-machineinstrs | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 \ +; RUN: -verify-machineinstrs | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr9 \ +; RUN: -verify-machineinstrs | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 \ +; RUN: -verify-machineinstrs | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr8 -verify-machineinstrs | FileCheck %s @perm = common local_unnamed_addr global [100 x i64] zeroinitializer, align 8 Index: test/CodeGen/PowerPC/ppc64-r2-alloc.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-r2-alloc.ll +++ test/CodeGen/PowerPC/ppc64-r2-alloc.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ppc64-sibcall-shrinkwrap.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-sibcall-shrinkwrap.ll +++ test/CodeGen/PowerPC/ppc64-sibcall-shrinkwrap.ll @@ -1,7 +1,23 @@ -; RUN: llc -relocation-model=static -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -disable-ppc-sco=false --enable-shrink-wrap=false | FileCheck %s -check-prefix=CHECK-SCO-ONLY -; RUN: llc -relocation-model=static -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -disable-ppc-sco=false --enable-shrink-wrap=true | FileCheck %s -check-prefix=CHECK-SCO-SHRK -; RUN: llc -relocation-model=static -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -disable-ppc-sco=false --enable-shrink-wrap=false | FileCheck %s -check-prefix=CHECK-SCO-ONLY -; RUN: llc -relocation-model=static -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -disable-ppc-sco=false --enable-shrink-wrap=true | FileCheck %s -check-prefix=CHECK-SCO-SHRK +; RUN: llc -relocation-model=static -verify-machineinstrs \ +; RUN: -ppc-ignore-percent-prefix < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -disable-ppc-sco=false --enable-shrink-wrap=false \ +; RUN: | FileCheck %s -check-prefix=CHECK-SCO-ONLY +; RUN: llc -relocation-model=static -verify-machineinstrs \ +; RUN: -ppc-ignore-percent-prefix < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -disable-ppc-sco=false --enable-shrink-wrap=true \ +; RUN: | FileCheck %s -check-prefix=CHECK-SCO-SHRK +; RUN: llc -relocation-model=static -verify-machineinstrs \ +; RUN: -ppc-ignore-percent-prefix < %s \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: -disable-ppc-sco=false --enable-shrink-wrap=false \ +; RUN: | FileCheck %s -check-prefix=CHECK-SCO-ONLY +; RUN: llc -relocation-model=static -verify-machineinstrs \ +; RUN: -ppc-ignore-percent-prefix < %s \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: -disable-ppc-sco=false --enable-shrink-wrap=true \ +; RUN: | FileCheck %s -check-prefix=CHECK-SCO-SHRK %"class.clang::NamedDecl" = type { i32 } declare void @__assert_fail(); Index: test/CodeGen/PowerPC/ppc64-sibcall.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-sibcall.ll +++ test/CodeGen/PowerPC/ppc64-sibcall.ll @@ -1,7 +1,19 @@ -; RUN: llc < %s -relocation-model=static -O1 -disable-ppc-sco=false -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=CHECK-SCO -; RUN: llc < %s -relocation-model=static -O1 -disable-ppc-sco=false -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 | FileCheck %s -check-prefix=CHECK-SCO-HASQPX -; RUN: llc < %s -relocation-model=static -O1 -disable-ppc-sco=false -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 | FileCheck %s -check-prefix=CHECK-SCO-HASQPX -; RUN: llc < %s -relocation-model=static -O1 -disable-ppc-sco=false -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -code-model=small | FileCheck %s -check-prefix=SCM +; RUN: llc < %s -relocation-model=static -O1 -disable-ppc-sco=false \ +; RUN: -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s \ +; RUN: -check-prefix=CHECK-SCO +; RUN: llc < %s -relocation-model=static -O1 -disable-ppc-sco=false \ +; RUN: -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 \ +; RUN: | FileCheck %s -check-prefix=CHECK-SCO-HASQPX +; RUN: llc < %s -relocation-model=static -O1 -disable-ppc-sco=false \ +; RUN: -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 \ +; RUN: | FileCheck %s -check-prefix=CHECK-SCO-HASQPX +; RUN: llc < %s -relocation-model=static -O1 -disable-ppc-sco=false \ +; RUN: -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 \ +; RUN: -code-model=small | FileCheck %s -check-prefix=SCM ; No combination of "powerpc64le-unknown-linux-gnu" + "CHECK-SCO", because ; only Power8 (and later) fully support LE. Index: test/CodeGen/PowerPC/ppc64-smallarg.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-smallarg.ll +++ test/CodeGen/PowerPC/ppc64-smallarg.ll @@ -1,7 +1,7 @@ ; Verify that small structures and float arguments are passed in the ; least significant part of a stack slot doubleword. -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ppc64-stackmap-nops.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-stackmap-nops.ll +++ test/CodeGen/PowerPC/ppc64-stackmap-nops.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-gnu-linux | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-gnu-linux | FileCheck %s define void @test_shadow_optimization() { entry: Index: test/CodeGen/PowerPC/ppc64-toc.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-toc.ll +++ test/CodeGen/PowerPC/ppc64-toc.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -code-model=small < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -code-model=small < %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" Index: test/CodeGen/PowerPC/ppc64-vaarg-int.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-vaarg-int.ll +++ test/CodeGen/PowerPC/ppc64-vaarg-int.ll @@ -1,6 +1,6 @@ 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 | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix | FileCheck %s define i32 @intvaarg(i32 %a, ...) nounwind { entry: Index: test/CodeGen/PowerPC/ppc64-zext.ll =================================================================== --- test/CodeGen/PowerPC/ppc64-zext.ll +++ test/CodeGen/PowerPC/ppc64-zext.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: | 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" Index: test/CodeGen/PowerPC/ppc64le-aggregates.ll =================================================================== --- test/CodeGen/PowerPC/ppc64le-aggregates.ll +++ test/CodeGen/PowerPC/ppc64le-aggregates.ll @@ -1,8 +1,9 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=pwr8 \ +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix -mcpu=pwr8 \ ; RUN: -mattr=+altivec -mattr=-vsx | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mattr=+altivec \ +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mattr=+altivec \ ; RUN: -mattr=-vsx | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mcpu=pwr9 \ +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix -mcpu=pwr9 \ ; RUN: -mattr=-direct-move -mattr=+altivec | FileCheck %s ; Currently VSX support is disabled for this test because we generate lxsdx Index: test/CodeGen/PowerPC/ppc64le-calls.ll =================================================================== --- test/CodeGen/PowerPC/ppc64le-calls.ll +++ test/CodeGen/PowerPC/ppc64le-calls.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -mcpu=pwr8 < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: | 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: test/CodeGen/PowerPC/ppc64le-localentry-large.ll =================================================================== --- test/CodeGen/PowerPC/ppc64le-localentry-large.ll +++ test/CodeGen/PowerPC/ppc64le-localentry-large.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -code-model=large < %s | FileCheck %s +; RUN: llc -verify-machineinstrs \ +; RUN: -code-model=large < %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ppc64le-localentry.ll =================================================================== --- test/CodeGen/PowerPC/ppc64le-localentry.ll +++ test/CodeGen/PowerPC/ppc64le-localentry.ll @@ -1,7 +1,11 @@ -; 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 +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mcpu=pwr8 -O0 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -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: test/CodeGen/PowerPC/ppc64le-smallarg.ll =================================================================== --- test/CodeGen/PowerPC/ppc64le-smallarg.ll +++ test/CodeGen/PowerPC/ppc64le-smallarg.ll @@ -1,7 +1,7 @@ ; Verify that small structures and float arguments are passed in the ; least significant part of a stack slot doubleword. -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/ppcf128-endian.ll =================================================================== --- test/CodeGen/PowerPC/ppcf128-endian.ll +++ test/CodeGen/PowerPC/ppcf128-endian.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=+altivec -mattr=-vsx < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=+altivec \ +; RUN: -mattr=-vsx < %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/pr13891.ll =================================================================== --- test/CodeGen/PowerPC/pr13891.ll +++ test/CodeGen/PowerPC/pr13891.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix | 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: test/CodeGen/PowerPC/pr26690.ll =================================================================== --- test/CodeGen/PowerPC/pr26690.ll +++ test/CodeGen/PowerPC/pr26690.ll @@ -1,4 +1,6 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -mcpu=pwr8 \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s \ +; RUN: -ppc-ignore-percent-prefix | FileCheck %s %struct.anon = type { %struct.anon.0, %struct.anon.1 } %struct.anon.0 = type { i32 } Index: test/CodeGen/PowerPC/pr28130.ll =================================================================== --- test/CodeGen/PowerPC/pr28130.ll +++ test/CodeGen/PowerPC/pr28130.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -O0 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -O0 < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s target triple = "powerpc64le-unknown-linux-gnu" %StructA = type { double, double, double, double, double, double, double, double } Index: test/CodeGen/PowerPC/pr30640.ll =================================================================== --- test/CodeGen/PowerPC/pr30640.ll +++ test/CodeGen/PowerPC/pr30640.ll @@ -1,4 +1,5 @@ -; RUN: llc -O2 -mtriple=powerpc64-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -O2 -mtriple=powerpc64-linux-gnu -mcpu=pwr8 < %s \ +; RUN: -ppc-ignore-percent-prefix | FileCheck %s define i64 @foo() { entry: Index: test/CodeGen/PowerPC/pr32140.ll =================================================================== --- test/CodeGen/PowerPC/pr32140.ll +++ test/CodeGen/PowerPC/pr32140.ll @@ -1,6 +1,8 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -mtriple=powerpc64le-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -mtriple=powerpc64-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -mtriple=powerpc64le-linux-gnu -mcpu=pwr8 < %s \ +; RUN: -ppc-ignore-percent-prefix | FileCheck %s +; RUN: llc -mtriple=powerpc64-linux-gnu -mcpu=pwr8 < %s \ +; RUN: -ppc-ignore-percent-prefix | FileCheck %s @as = common local_unnamed_addr global i16 0, align 2 @bs = common local_unnamed_addr global i16 0, align 2 Index: test/CodeGen/PowerPC/pr33093.ll =================================================================== --- test/CodeGen/PowerPC/pr33093.ll +++ test/CodeGen/PowerPC/pr33093.ll @@ -1,6 +1,8 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s \ +; RUN: -ppc-ignore-percent-prefix | FileCheck %s +; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s \ +; RUN: -ppc-ignore-percent-prefix | FileCheck %s define zeroext i32 @ReverseBits(i32 zeroext %n) { ; CHECK-LABEL: ReverseBits: Index: test/CodeGen/PowerPC/preincprep-invoke.ll =================================================================== --- test/CodeGen/PowerPC/preincprep-invoke.ll +++ test/CodeGen/PowerPC/preincprep-invoke.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/pwr7-gt-nop.ll =================================================================== --- test/CodeGen/PowerPC/pwr7-gt-nop.ll +++ test/CodeGen/PowerPC/pwr7-gt-nop.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=pwr7 | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: | 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-unknown-linux-gnu" Index: test/CodeGen/PowerPC/pzero-fp-xored.ll =================================================================== --- test/CodeGen/PowerPC/pzero-fp-xored.ll +++ test/CodeGen/PowerPC/pzero-fp-xored.ll @@ -1,6 +1,8 @@ -; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mattr=+vsx -mcpu=pwr8 < %s | \ +; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -ppc-ignore-percent-prefix \ +; RUN: -mattr=+vsx -mcpu=pwr8 < %s | \ ; RUN: FileCheck %s --implicit-check-not lxvd2x --implicit-check-not lfs -; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mattr=-altivec -mcpu=pwr8 -mattr=-vsx < %s | \ +; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -ppc-ignore-percent-prefix \ +; RUN: -mattr=-altivec -mcpu=pwr8 -mattr=-vsx < %s | \ ; RUN: FileCheck %s --check-prefix=CHECK-NVSXALT --implicit-check-not xxlxor \ ; RUN: --implicit-check-not vxor Index: test/CodeGen/PowerPC/qpx-bv-sint.ll =================================================================== --- test/CodeGen/PowerPC/qpx-bv-sint.ll +++ test/CodeGen/PowerPC/qpx-bv-sint.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix < %s \ +; RUN: -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" Index: test/CodeGen/PowerPC/qpx-bv.ll =================================================================== --- test/CodeGen/PowerPC/qpx-bv.ll +++ test/CodeGen/PowerPC/qpx-bv.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix < %s \ +; RUN: -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" Index: test/CodeGen/PowerPC/qpx-func-clobber.ll =================================================================== --- test/CodeGen/PowerPC/qpx-func-clobber.ll +++ test/CodeGen/PowerPC/qpx-func-clobber.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix -mcpu=a2q \ +; RUN: | FileCheck %s target triple = "powerpc64-bgq-linux" declare <4 x double> @foo(<4 x double> %p) Index: test/CodeGen/PowerPC/qpx-load-splat.ll =================================================================== --- test/CodeGen/PowerPC/qpx-load-splat.ll +++ test/CodeGen/PowerPC/qpx-load-splat.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-bgq-linux" Index: test/CodeGen/PowerPC/qpx-load.ll =================================================================== --- test/CodeGen/PowerPC/qpx-load.ll +++ test/CodeGen/PowerPC/qpx-load.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix < %s -mcpu=a2q \ +; RUN: | FileCheck %s target triple = "powerpc64-bgq-linux" define <4 x double> @foo(<4 x double>* %p) { Index: test/CodeGen/PowerPC/qpx-rounding-ops.ll =================================================================== --- test/CodeGen/PowerPC/qpx-rounding-ops.ll +++ test/CodeGen/PowerPC/qpx-rounding-ops.ll @@ -1,5 +1,8 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=a2q | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=a2q -enable-unsafe-fp-math | FileCheck -check-prefix=CHECK-FM %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=a2q | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=a2q \ +; RUN: -enable-unsafe-fp-math | FileCheck -check-prefix=CHECK-FM %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: test/CodeGen/PowerPC/qpx-s-load.ll =================================================================== --- test/CodeGen/PowerPC/qpx-s-load.ll +++ test/CodeGen/PowerPC/qpx-s-load.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -mcpu=a2q -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s target triple = "powerpc64-bgq-linux" define <4 x float> @foo(<4 x float>* %p) { Index: test/CodeGen/PowerPC/qpx-s-sel.ll =================================================================== --- test/CodeGen/PowerPC/qpx-s-sel.ll +++ test/CodeGen/PowerPC/qpx-s-sel.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix -mcpu=a2q \ +; RUN: | FileCheck %s target triple = "powerpc64-bgq-linux" @R = global <4 x i1> , align 16 Index: test/CodeGen/PowerPC/qpx-sel.ll =================================================================== --- test/CodeGen/PowerPC/qpx-sel.ll +++ test/CodeGen/PowerPC/qpx-sel.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=a2q | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix -mcpu=a2q \ +; RUN: | FileCheck %s target triple = "powerpc64-bgq-linux" @R = global <4 x i1> , align 16 Index: test/CodeGen/PowerPC/qpx-unal-cons-lds.ll =================================================================== --- test/CodeGen/PowerPC/qpx-unal-cons-lds.ll +++ test/CodeGen/PowerPC/qpx-unal-cons-lds.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/r31.ll =================================================================== --- test/CodeGen/PowerPC/r31.ll +++ test/CodeGen/PowerPC/r31.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=g4 | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=g4 | FileCheck %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-f128:64:128-n32" define i64 @foo(i64 %a) nounwind { Index: test/CodeGen/PowerPC/reg-names.ll =================================================================== --- test/CodeGen/PowerPC/reg-names.ll +++ test/CodeGen/PowerPC/reg-names.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu < %s \ +; RUN: -ppc-ignore-percent-prefix | FileCheck %s ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -ppc-asm-full-reg-names < %s | FileCheck -check-prefix=CHECK-FN %s define i64 @test1(i64 %a, i64 %b) { Index: test/CodeGen/PowerPC/remat-imm.ll =================================================================== --- test/CodeGen/PowerPC/remat-imm.ll +++ test/CodeGen/PowerPC/remat-imm.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -ppc-ignore-percent-prefix | FileCheck %s ; ModuleID = 'test.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-unknown-linux" Index: test/CodeGen/PowerPC/remove-redundant-moves.ll =================================================================== --- test/CodeGen/PowerPC/remove-redundant-moves.ll +++ test/CodeGen/PowerPC/remove-redundant-moves.ll @@ -1,7 +1,8 @@ ; RUN: llc -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu \ -; RUN: -verify-machineinstrs < %s | FileCheck %s +; RUN: -verify-machineinstrs < %s -ppc-ignore-percent-prefix | FileCheck %s ; RUN: llc -mcpu=pwr8 -mtriple=powerpc64-unknown-linux-gnu \ -; RUN: -verify-machineinstrs < %s | FileCheck %s --check-prefix=CHECK-BE +; RUN: -verify-machineinstrs < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s --check-prefix=CHECK-BE define double @test1(<2 x i64> %a) { entry: ; CHECK-LABEL: test1 Index: test/CodeGen/PowerPC/retaddr2.ll =================================================================== --- test/CodeGen/PowerPC/retaddr2.ll +++ test/CodeGen/PowerPC/retaddr2.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s -ppc-ignore-percent-prefix \ +; RUN: | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/rlwimi-and.ll =================================================================== --- test/CodeGen/PowerPC/rlwimi-and.ll +++ test/CodeGen/PowerPC/rlwimi-and.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=-crbits < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -mattr=-crbits < %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-f128:128:128-v128:128:128-n32:64" target triple = "powerpc64-bgq-linux" Index: test/CodeGen/PowerPC/rlwimi-dyn-and.ll =================================================================== --- test/CodeGen/PowerPC/rlwimi-dyn-and.ll +++ test/CodeGen/PowerPC/rlwimi-dyn-and.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 < %s \ +; RUN: | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/rlwinm-zero-ext.ll =================================================================== --- test/CodeGen/PowerPC/rlwinm-zero-ext.ll +++ test/CodeGen/PowerPC/rlwinm-zero-ext.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -O2 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -O2 < %s \ +; RUN: | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/rounding-ops.ll =================================================================== --- test/CodeGen/PowerPC/rounding-ops.ll +++ test/CodeGen/PowerPC/rounding-ops.ll @@ -1,5 +1,9 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-vsx < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=+vsx < %s | FileCheck -check-prefix=CHECK-VSX %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 \ +; RUN: -mattr=-vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=+vsx < %s \ +; RUN: | FileCheck -check-prefix=CHECK-VSX %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: test/CodeGen/PowerPC/sdag-ppcf128.ll =================================================================== --- test/CodeGen/PowerPC/sdag-ppcf128.ll +++ test/CodeGen/PowerPC/sdag-ppcf128.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mattr=-crbits < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mattr=-crbits < %s | FileCheck %s ; ; PR14751: Unsupported type in SelectionDAG::getConstantFP() Index: test/CodeGen/PowerPC/sdiv-pow2.ll =================================================================== --- test/CodeGen/PowerPC/sdiv-pow2.ll +++ test/CodeGen/PowerPC/sdiv-pow2.ll @@ -1,5 +1,8 @@ -; RUN: llc -verify-machineinstrs -mcpu=ppc64 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu -mcpu=ppc < %s | FileCheck -check-prefix=CHECK-32 %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=ppc64 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc-unknown-linux-gnu -mcpu=ppc < %s \ +; RUN: | FileCheck -check-prefix=CHECK-32 %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/select-i1-vs-i1.ll =================================================================== --- test/CodeGen/PowerPC/select-i1-vs-i1.ll +++ test/CodeGen/PowerPC/select-i1-vs-i1.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -ppc-gen-isel=false < %s | FileCheck --check-prefix=CHECK-NO-ISEL %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -ppc-gen-isel=false < %s | FileCheck --check-prefix=CHECK-NO-ISEL %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/setcc-to-sub.ll =================================================================== --- test/CodeGen/PowerPC/setcc-to-sub.ll +++ test/CodeGen/PowerPC/setcc-to-sub.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \ -; RUN: -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s %class.PB2 = type { [1 x i32], %class.PB1* } %class.PB1 = type { [1 x i32], i64, i64, i32 } Index: test/CodeGen/PowerPC/shift-cmp.ll =================================================================== --- test/CodeGen/PowerPC/shift-cmp.ll +++ test/CodeGen/PowerPC/shift-cmp.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix < %s | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/shift128.ll =================================================================== --- test/CodeGen/PowerPC/shift128.ll +++ test/CodeGen/PowerPC/shift128.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck --check-prefix=P8 --check-prefix=CHECK %s -; RUN: llc -mcpu=pwr9 -verify-machineinstrs < %s | FileCheck --check-prefix=P9 --check-prefix=CHECK %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: | FileCheck --check-prefix=P8 --check-prefix=CHECK %s +; RUN: llc -ppc-ignore-percent-prefix -mcpu=pwr9 -verify-machineinstrs < %s \ +; RUN: | FileCheck --check-prefix=P9 --check-prefix=CHECK %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/shift_mask.ll =================================================================== --- test/CodeGen/PowerPC/shift_mask.ll +++ test/CodeGen/PowerPC/shift_mask.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix < %s | FileCheck %s target triple = "powerpc64le-linux-gnu" define i8 @test000(i8 %a, i8 %b) { Index: test/CodeGen/PowerPC/sjlj.ll =================================================================== --- test/CodeGen/PowerPC/sjlj.ll +++ test/CodeGen/PowerPC/sjlj.ll @@ -1,5 +1,8 @@ -; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s -; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=a2 | FileCheck -check-prefix=CHECK-NOAV %s +; RUN: llc < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=a2 \ +; RUN: | FileCheck -check-prefix=CHECK-NOAV %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: test/CodeGen/PowerPC/sjlj_no0x.ll =================================================================== --- test/CodeGen/PowerPC/sjlj_no0x.ll +++ test/CodeGen/PowerPC/sjlj_no0x.ll @@ -1,6 +1,12 @@ -; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -verify-machineinstrs | FileCheck %s -; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=a2 -verify-machineinstrs | FileCheck %s -; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -verify-machineinstrs | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 \ +; RUN: -verify-machineinstrs | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=a2 -verify-machineinstrs | FileCheck %s +; RUN: llc < %s -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 \ +; RUN: -verify-machineinstrs | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/splat-bug.ll =================================================================== --- test/CodeGen/PowerPC/splat-bug.ll +++ test/CodeGen/PowerPC/splat-bug.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=ppc64 -O0 -fast-isel=false < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=ppc64 \ +; RUN: -O0 -fast-isel=false < %s | FileCheck %s ; Checks for a previous bug where vspltisb/vaddubm were issued in place ; of vsplitsh/vadduhm. Index: test/CodeGen/PowerPC/srl-mask.ll =================================================================== --- test/CodeGen/PowerPC/srl-mask.ll +++ test/CodeGen/PowerPC/srl-mask.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=a2 | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -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-unknown-linux-gnu" Index: test/CodeGen/PowerPC/stack-protector.ll =================================================================== --- test/CodeGen/PowerPC/stack-protector.ll +++ test/CodeGen/PowerPC/stack-protector.ll @@ -1,7 +1,12 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc-apple-darwin8 < %s | FileCheck -check-prefix=DARWIN32 %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-apple-darwin < %s | FileCheck -check-prefix=DARWIN64 %s -; RUN: llc -verify-machineinstrs -mtriple=ppc32-unknown-linux < %s | FileCheck -check-prefix=LINUX32 %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux < %s | FileCheck -check-prefix=LINUX64 %s +; RUN: llc -verify-machineinstrs -mtriple=powerpc-apple-darwin8 < %s \ +; RUN: | FileCheck -check-prefix=DARWIN32 %s +; RUN: llc -verify-machineinstrs -mtriple=powerpc64-apple-darwin < %s \ +; RUN: | FileCheck -check-prefix=DARWIN64 %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=ppc32-unknown-linux < %s | FileCheck -check-prefix=LINUX32 %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux < %s \ +; RUN: | FileCheck -check-prefix=LINUX64 %s ; DARWIN32: __stack_chk_guard ; DARWIN64: __stack_chk_guard Index: test/CodeGen/PowerPC/stack-realign.ll =================================================================== --- test/CodeGen/PowerPC/stack-realign.ll +++ test/CodeGen/PowerPC/stack-realign.ll @@ -1,7 +1,12 @@ -; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %s | FileCheck %s -; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -disable-fp-elim < %s | FileCheck -check-prefix=CHECK-FP %s -; RUN: llc -mtriple=powerpc-unknown-linux-gnu -disable-fp-elim < %s | FileCheck -check-prefix=CHECK-32 %s -; RUN: llc -mtriple=powerpc-unknown-linux-gnu -disable-fp-elim -relocation-model=pic < %s | FileCheck -check-prefix=CHECK-32-PIC %s +; RUN: llc -ppc-ignore-percent-prefix -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr7 -disable-fp-elim < %s | FileCheck -check-prefix=CHECK-FP %s +; RUN: llc -ppc-ignore-percent-prefix -mtriple=powerpc-unknown-linux-gnu \ +; RUN: -disable-fp-elim < %s | FileCheck -check-prefix=CHECK-32 %s +; RUN: llc -ppc-ignore-percent-prefix -mtriple=powerpc-unknown-linux-gnu \ +; RUN: -disable-fp-elim -relocation-model=pic < %s \ +; RUN: | FileCheck -check-prefix=CHECK-32-PIC %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: test/CodeGen/PowerPC/stacksize.ll =================================================================== --- test/CodeGen/PowerPC/stacksize.ll +++ test/CodeGen/PowerPC/stacksize.ll @@ -3,12 +3,20 @@ ; For ELFv1 ABI, we always need to allocate the parameter area. ; Tests for ELFv2 ABI -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -target-abi elfv2 < %s | FileCheck %s -check-prefix=PPC64-ELFV2 -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -target-abi elfv2 < %s | FileCheck %s -check-prefix=PPC64-ELFV2 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: -target-abi elfv2 < %s | FileCheck %s -check-prefix=PPC64-ELFV2 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -target-abi elfv2 < %s | FileCheck %s -check-prefix=PPC64-ELFV2 ; Tests for ELFv1 ABI -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -target-abi elfv1 < %s | FileCheck %s -check-prefix=PPC64-ELFV1 -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -target-abi elfv1 < %s | FileCheck %s -check-prefix=PPC64-ELFV1 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -target-abi elfv1 < %s \ +; RUN: | FileCheck %s -check-prefix=PPC64-ELFV1 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -target-abi elfv1 < %s \ +; RUN: | FileCheck %s -check-prefix=PPC64-ELFV1 ; If the callee has at most eight integer args, parameter area can be ommited for ELFv2 ABI. Index: test/CodeGen/PowerPC/stfiwx-2.ll =================================================================== --- test/CodeGen/PowerPC/stfiwx-2.ll +++ test/CodeGen/PowerPC/stfiwx-2.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu -mcpu=g5 | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc-unknown-linux-gnu -mcpu=g5 | FileCheck %s define void @test(float %F, i8* %P) { %I = fptosi float %F to i32 Index: test/CodeGen/PowerPC/structsinmem.ll =================================================================== --- test/CodeGen/PowerPC/structsinmem.ll +++ test/CodeGen/PowerPC/structsinmem.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=ppc64 -O0 -disable-fp-elim -fast-isel=false < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=ppc64 \ +; RUN: -O0 -disable-fp-elim -fast-isel=false < %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" Index: test/CodeGen/PowerPC/structsinregs.ll =================================================================== --- test/CodeGen/PowerPC/structsinregs.ll +++ test/CodeGen/PowerPC/structsinregs.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=ppc64 -O0 -disable-fp-elim -fast-isel=false < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=ppc64 -O0 -disable-fp-elim -fast-isel=false < %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" Index: test/CodeGen/PowerPC/subreg-postra-2.ll =================================================================== --- test/CodeGen/PowerPC/subreg-postra-2.ll +++ test/CodeGen/PowerPC/subreg-postra-2.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -ppc-gen-isel=false < %s | FileCheck --check-prefix=CHECK-NO-ISEL %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=pwr7 -ppc-gen-isel=false < %s | FileCheck --check-prefix=CHECK-NO-ISEL %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/subreg-postra.ll =================================================================== --- test/CodeGen/PowerPC/subreg-postra.ll +++ test/CodeGen/PowerPC/subreg-postra.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -ppc-gen-isel=false < %s | FileCheck --check-prefix=CHECK-NO-ISEL %s +; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s -ppc-ignore-percent-prefix\ +; RUN: | FileCheck %s +; RUN: llc -verify-machineinstrs -mcpu=pwr7 -ppc-gen-isel=false < %s \ +; RUN: -ppc-ignore-percent-prefix | FileCheck --check-prefix=CHECK-NO-ISEL %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/subtract_from_imm.ll =================================================================== --- test/CodeGen/PowerPC/subtract_from_imm.ll +++ test/CodeGen/PowerPC/subtract_from_imm.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s ; Make sure that the subfic is generated iff possible Index: test/CodeGen/PowerPC/svr4-redzone.ll =================================================================== --- test/CodeGen/PowerPC/svr4-redzone.ll +++ test/CodeGen/PowerPC/svr4-redzone.ll @@ -1,5 +1,9 @@ -; RUN: llc -verify-machineinstrs -mtriple="powerpc-unknown-linux-gnu" < %s | FileCheck %s --check-prefix=PPC32 -; RUN: llc -verify-machineinstrs -mtriple="powerpc64-unknown-linux-gnu" < %s | FileCheck %s --check-prefix=PPC64 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple="powerpc-unknown-linux-gnu" < %s \ +; RUN: | FileCheck %s --check-prefix=PPC32 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple="powerpc64-unknown-linux-gnu" < %s \ +; RUN: | FileCheck %s --check-prefix=PPC64 ; PR15332 define i32 @regalloc() nounwind { Index: test/CodeGen/PowerPC/swaps-le-2.ll =================================================================== --- test/CodeGen/PowerPC/swaps-le-2.ll +++ test/CodeGen/PowerPC/swaps-le-2.ll @@ -1,4 +1,6 @@ -; RUN: llc -verify-machineinstrs -O3 -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -O3 -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu < %s \ +; RUN: | FileCheck %s ; Test swap removal when a vector splat must be adjusted to make it legal. ; Index: test/CodeGen/PowerPC/swaps-le-5.ll =================================================================== --- test/CodeGen/PowerPC/swaps-le-5.ll +++ test/CodeGen/PowerPC/swaps-le-5.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu -O3 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr8 \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -O3 < %s | FileCheck %s ; These tests verify that VSX swap optimization works for various ; manipulations of <2 x double> vectors. Index: test/CodeGen/PowerPC/swaps-le-6.ll =================================================================== --- test/CodeGen/PowerPC/swaps-le-6.ll +++ test/CodeGen/PowerPC/swaps-le-6.ll @@ -1,11 +1,13 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr8 \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr8 \ ; RUN: -mtriple=powerpc64le-unknown-linux-gnu -O3 < %s | FileCheck %s -; RUN: llc -mcpu=pwr9 -mtriple=powerpc64le-unknown-linux-gnu -O3 \ +; RUN: llc -ppc-ignore-percent-prefix -mcpu=pwr9 \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -O3 \ ; RUN: -verify-machineinstrs < %s | FileCheck %s --check-prefix=CHECK-P9 \ ; RUN: --implicit-check-not xxswapd -; RUN: llc -mcpu=pwr9 -mtriple=powerpc64le-unknown-linux-gnu -O3 \ +; RUN: llc -ppc-ignore-percent-prefix -mcpu=pwr9 \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -O3 \ ; RUN: -verify-machineinstrs -mattr=-power9-vector < %s | FileCheck %s ; These tests verify that VSX swap optimization works when loading a scalar Index: test/CodeGen/PowerPC/tail-dup-break-cfg.ll =================================================================== --- test/CodeGen/PowerPC/tail-dup-break-cfg.ll +++ test/CodeGen/PowerPC/tail-dup-break-cfg.ll @@ -1,4 +1,4 @@ -; RUN: llc -O2 -o - %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -O2 -o - %s | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-grtev4-linux-gnu" Index: test/CodeGen/PowerPC/tail-dup-layout.ll =================================================================== --- test/CodeGen/PowerPC/tail-dup-layout.ll +++ test/CodeGen/PowerPC/tail-dup-layout.ll @@ -1,5 +1,7 @@ -; RUN: llc -O2 -o - %s | FileCheck --check-prefix=CHECK --check-prefix=CHECK-O2 %s -; RUN: llc -O3 -o - %s | FileCheck --check-prefix=CHECK --check-prefix=CHECK-O3 %s +; RUN: llc -ppc-ignore-percent-prefix -O2 -o - %s \ +; RUN: | FileCheck --check-prefix=CHECK --check-prefix=CHECK-O2 %s +; RUN: llc -ppc-ignore-percent-prefix -O3 -o - %s \ +; RUN: | FileCheck --check-prefix=CHECK --check-prefix=CHECK-O3 %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-grtev4-linux-gnu" Index: test/CodeGen/PowerPC/testBitReverse.ll =================================================================== --- test/CodeGen/PowerPC/testBitReverse.ll +++ test/CodeGen/PowerPC/testBitReverse.ll @@ -1,6 +1,8 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s declare i32 @llvm.bitreverse.i32(i32) define i32 @testBitReverseIntrinsicI32(i32 %arg) { ; CHECK-LABEL: testBitReverseIntrinsicI32: Index: test/CodeGen/PowerPC/thread-pointer.ll =================================================================== --- test/CodeGen/PowerPC/thread-pointer.ll +++ test/CodeGen/PowerPC/thread-pointer.ll @@ -1,6 +1,12 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s --check-prefix=CHECK-32 -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s --check-prefix=CHECK-64 -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s --check-prefix=CHECK-64 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: < %s -mtriple=powerpc-unknown-linux-gnu \ +; RUN: | FileCheck %s --check-prefix=CHECK-32 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: < %s -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: | FileCheck %s --check-prefix=CHECK-64 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: < %s -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: | FileCheck %s --check-prefix=CHECK-64 ; Function Attrs: nounwind readnone declare i8* @llvm.thread.pointer() #1 Index: test/CodeGen/PowerPC/tls-cse.ll =================================================================== --- test/CodeGen/PowerPC/tls-cse.ll +++ test/CodeGen/PowerPC/tls-cse.ll @@ -1,5 +1,7 @@ -; 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 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -O2 -relocation-model=pic < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -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: test/CodeGen/PowerPC/tls-pic.ll =================================================================== --- test/CodeGen/PowerPC/tls-pic.ll +++ test/CodeGen/PowerPC/tls-pic.ll @@ -1,7 +1,15 @@ -; 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 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs\ +; RUN: -mcpu=pwr7 -O0 -relocation-model=pic < %s \ +; RUN: | FileCheck -check-prefix=OPT0 %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mcpu=pwr7 -O1 -relocation-model=pic < %s \ +; RUN: | FileCheck -check-prefix=OPT1 %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=ppc32-- -O0 -relocation-model=pic < %s \ +; RUN: | FileCheck -check-prefix=OPT0-32 %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=ppc32-- -O1 -relocation-model=pic < %s \ +; RUN: | FileCheck -check-prefix=OPT1-32 %s target triple = "powerpc64-unknown-linux-gnu" ; Test correct assembly code generation for thread-local storage using Index: test/CodeGen/PowerPC/tls-store2.ll =================================================================== --- test/CodeGen/PowerPC/tls-store2.ll +++ test/CodeGen/PowerPC/tls-store2.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O2 -relocation-model=pic < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -O2 -relocation-model=pic < %s | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/tls.ll =================================================================== --- test/CodeGen/PowerPC/tls.ll +++ test/CodeGen/PowerPC/tls.ll @@ -1,6 +1,12 @@ -; 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 +; RUN: llc -ppc-ignore-percent-prefix -relocation-model=static \ +; RUN: -verify-machineinstrs -O0 < %s -mcpu=ppc64 \ +; RUN: | FileCheck -check-prefix=OPT0 %s +; RUN: llc -ppc-ignore-percent-prefix -relocation-model=static \ +; RUN: -verify-machineinstrs -O1 < %s -mcpu=ppc64 \ +; RUN: | FileCheck -check-prefix=OPT1 %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -O0 < %s -mtriple=ppc32-- -mcpu=ppc \ +; RUN: | FileCheck -check-prefix=OPT0-PPC32 %s target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/tls_get_addr_clobbers.ll =================================================================== --- test/CodeGen/PowerPC/tls_get_addr_clobbers.ll +++ test/CodeGen/PowerPC/tls_get_addr_clobbers.ll @@ -1,4 +1,6 @@ -; RUN: llc -verify-machineinstrs -mtriple="powerpc64le-unknown-linux-gnu" -relocation-model=pic < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple="powerpc64le-unknown-linux-gnu" \ +; RUN: -relocation-model=pic < %s | FileCheck %s @a = thread_local global i32* null, align 8 Index: test/CodeGen/PowerPC/tls_get_addr_stackframe.ll =================================================================== --- test/CodeGen/PowerPC/tls_get_addr_stackframe.ll +++ test/CodeGen/PowerPC/tls_get_addr_stackframe.ll @@ -1,4 +1,6 @@ -; RUN: llc -verify-machineinstrs -mtriple="powerpc64le-unknown-linux-gnu" -relocation-model=pic < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple="powerpc64le-unknown-linux-gnu" \ +; RUN: -relocation-model=pic < %s | FileCheck %s ; CHECK-LABEL: foo_test: ; CHECK: mflr 0 ; CHECK: __tls_get_addr Index: test/CodeGen/PowerPC/toc-load-sched-bug.ll =================================================================== --- test/CodeGen/PowerPC/toc-load-sched-bug.ll +++ test/CodeGen/PowerPC/toc-load-sched-bug.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s | FileCheck %s target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/unal-altivec-wint.ll =================================================================== --- test/CodeGen/PowerPC/unal-altivec-wint.ll +++ test/CodeGen/PowerPC/unal-altivec-wint.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 < %s \ +; RUN: | 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-unknown-linux-gnu" Index: test/CodeGen/PowerPC/unal-altivec.ll =================================================================== --- test/CodeGen/PowerPC/unal-altivec.ll +++ test/CodeGen/PowerPC/unal-altivec.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=g5 | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s -mcpu=g5 \ +; RUN: | 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-unknown-linux-gnu" Index: test/CodeGen/PowerPC/unal-vec-ldst.ll =================================================================== --- test/CodeGen/PowerPC/unal-vec-ldst.ll +++ test/CodeGen/PowerPC/unal-vec-ldst.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/unal4-std.ll =================================================================== --- test/CodeGen/PowerPC/unal4-std.ll +++ test/CodeGen/PowerPC/unal4-std.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=pwr7 -mattr=-vsx| FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mcpu=pwr7 -mattr=+vsx | FileCheck -check-prefix=CHECK-VSX %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s -mcpu=pwr7 \ +; RUN: -mattr=-vsx| FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s -mcpu=pwr7 \ +; RUN: -mattr=+vsx | FileCheck -check-prefix=CHECK-VSX %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: test/CodeGen/PowerPC/vaddsplat.ll =================================================================== --- test/CodeGen/PowerPC/vaddsplat.ll +++ test/CodeGen/PowerPC/vaddsplat.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -O0 -mcpu=pwr7 <%s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -O0 \ +; RUN: -mcpu=pwr7 <%s | FileCheck %s ; Test optimizations of build_vector for 6-bit immediates. Index: test/CodeGen/PowerPC/varargs-struct-float.ll =================================================================== --- test/CodeGen/PowerPC/varargs-struct-float.ll +++ test/CodeGen/PowerPC/varargs-struct-float.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -O0 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix -mcpu=pwr7 \ +; RUN: -O0 < %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-f128:128:128-v128:128:128-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/vec-abi-align.ll =================================================================== --- test/CodeGen/PowerPC/vec-abi-align.ll +++ test/CodeGen/PowerPC/vec-abi-align.ll @@ -1,5 +1,9 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-vsx < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=+vsx < %s | FileCheck -check-prefix=CHECK-VSX %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 \ +; RUN: -mattr=-vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 \ +; RUN: -mattr=+vsx < %s | FileCheck -check-prefix=CHECK-VSX %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: test/CodeGen/PowerPC/vec_absd.ll =================================================================== --- test/CodeGen/PowerPC/vec_absd.ll +++ test/CodeGen/PowerPC/vec_absd.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr9 \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr9 \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s ; Check the vabsd* instructions that were added in PowerISA V3.0 Index: test/CodeGen/PowerPC/vec_add_sub_doubleword.ll =================================================================== --- test/CodeGen/PowerPC/vec_add_sub_doubleword.ll +++ test/CodeGen/PowerPC/vec_add_sub_doubleword.ll @@ -1,7 +1,10 @@ ; Check VMX 64-bit integer operations ; -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s \ +; RUN: | FileCheck %s define <2 x i64> @test_add(<2 x i64> %x, <2 x i64> %y) nounwind { %result = add <2 x i64> %x, %y Index: test/CodeGen/PowerPC/vec_add_sub_quadword.ll =================================================================== --- test/CodeGen/PowerPC/vec_add_sub_quadword.ll +++ test/CodeGen/PowerPC/vec_add_sub_quadword.ll @@ -1,7 +1,10 @@ ; Check VMX 128-bit integer operations ; -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s \ +; RUN: | FileCheck %s define <1 x i128> @out_of_bounds_insertelement(<1 x i128> %x, i128 %val) nounwind { %tmpvec = insertelement <1 x i128> , i128 %val, i32 1 Index: test/CodeGen/PowerPC/vec_clz.ll =================================================================== --- test/CodeGen/PowerPC/vec_clz.ll +++ test/CodeGen/PowerPC/vec_clz.ll @@ -1,6 +1,9 @@ ; Check the vctlz* instructions that were added in P8 -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 \ +; RUN: -mattr=-vsx < %s | FileCheck %s declare <16 x i8> @llvm.ctlz.v16i8(<16 x i8>) nounwind readnone declare <8 x i16> @llvm.ctlz.v8i16(<8 x i16>) nounwind readnone Index: test/CodeGen/PowerPC/vec_cmp.ll =================================================================== --- test/CodeGen/PowerPC/vec_cmp.ll +++ test/CodeGen/PowerPC/vec_cmp.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr6 -mattr=+altivec < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr6 \ +; RUN: -mattr=+altivec < %s | FileCheck %s ; Check vector comparisons using altivec. For non-native types, just basic ; comparison instruction check is done. For altivec supported type (16i8, Index: test/CodeGen/PowerPC/vec_cmpd.ll =================================================================== --- test/CodeGen/PowerPC/vec_cmpd.ll +++ test/CodeGen/PowerPC/vec_cmpd.ll @@ -1,7 +1,10 @@ ; Test the doubleword comparison instructions that were added in POWER8 ; -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 \ +; RUN: -mattr=-vsx < %s | FileCheck %s define <2 x i64> @v2si64_cmp(<2 x i64> %x, <2 x i64> %y) nounwind readnone { %cmp = icmp eq <2 x i64> %x, %y Index: test/CodeGen/PowerPC/vec_conv.ll =================================================================== --- test/CodeGen/PowerPC/vec_conv.ll +++ test/CodeGen/PowerPC/vec_conv.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mattr=+altivec < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mattr=+altivec < %s | FileCheck %s ; Check vector float/int conversion using altivec. Index: test/CodeGen/PowerPC/vec_extload.ll =================================================================== --- test/CodeGen/PowerPC/vec_extload.ll +++ test/CodeGen/PowerPC/vec_extload.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr6 -mattr=+altivec -code-model=small < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr6 \ +; RUN: -mattr=+altivec -code-model=small < %s | FileCheck %s ; Check vector extend load expansion with altivec enabled. Index: test/CodeGen/PowerPC/vec_extract_p9.ll =================================================================== --- test/CodeGen/PowerPC/vec_extract_p9.ll +++ test/CodeGen/PowerPC/vec_extract_p9.ll @@ -1,6 +1,10 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-gnu-linux -mcpu=pwr9 < %s | FileCheck %s -check-prefix=CHECK-LE -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-gnu-linux -mcpu=pwr9 < %s | FileCheck %s -check-prefix=CHECK-BE +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-gnu-linux -mcpu=pwr9 < %s \ +; RUN: | FileCheck %s -check-prefix=CHECK-LE +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-gnu-linux -mcpu=pwr9 < %s \ +; RUN: | FileCheck %s -check-prefix=CHECK-BE define zeroext i8 @test1(<16 x i8> %a, i32 signext %index) { ; CHECK-LE-LABEL: test1: Index: test/CodeGen/PowerPC/vec_fmuladd.ll =================================================================== --- test/CodeGen/PowerPC/vec_fmuladd.ll +++ test/CodeGen/PowerPC/vec_fmuladd.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr6 -mattr=+altivec < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr6 \ +; RUN: -mattr=+altivec < %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" Index: test/CodeGen/PowerPC/vec_int_ext.ll =================================================================== --- test/CodeGen/PowerPC/vec_int_ext.ll +++ test/CodeGen/PowerPC/vec_int_ext.ll @@ -1,6 +1,10 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-gnu-linux -mcpu=pwr9 < %s | FileCheck %s -check-prefix=CHECK-LE -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-gnu-linux -mcpu=pwr9 < %s | FileCheck %s -check-prefix=CHECK-BE +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-gnu-linux -mcpu=pwr9 < %s \ +; RUN: | FileCheck %s -check-prefix=CHECK-LE +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-gnu-linux -mcpu=pwr9 < %s \ +; RUN: | FileCheck %s -check-prefix=CHECK-BE define <4 x i32> @vextsb2wLE(<16 x i8> %a) { ; CHECK-LE-LABEL: vextsb2wLE: Index: test/CodeGen/PowerPC/vec_mergeow.ll =================================================================== --- test/CodeGen/PowerPC/vec_mergeow.ll +++ test/CodeGen/PowerPC/vec_mergeow.ll @@ -1,6 +1,8 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | \ ; RUN: FileCheck %s -check-prefix=CHECK-LE -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | \ ; RUN: FileCheck %s -check-prefix=CHECK-BE ; Check for a vector merge instruction using two inputs Index: test/CodeGen/PowerPC/vec_minmax.ll =================================================================== --- test/CodeGen/PowerPC/vec_minmax.ll +++ test/CodeGen/PowerPC/vec_minmax.ll @@ -1,6 +1,9 @@ ; Test the vector min/max doubleword instructions added for P8 -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s \ +; RUN: | FileCheck %s declare <2 x i64> @llvm.ppc.altivec.vmaxsd(<2 x i64>, <2 x i64>) nounwind readnone declare <2 x i64> @llvm.ppc.altivec.vmaxud(<2 x i64>, <2 x i64>) nounwind readnone Index: test/CodeGen/PowerPC/vec_mul.ll =================================================================== --- test/CodeGen/PowerPC/vec_mul.ll +++ test/CodeGen/PowerPC/vec_mul.ll @@ -1,8 +1,19 @@ -; 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 +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc-unknown-linux-gnu -mattr=+altivec -mattr=-vsx \ +; RUN: -mattr=-power8-altivec | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mattr=+altivec -mattr=-vsx \ +; RUN: -mcpu=pwr7 | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mattr=+altivec -mattr=-vsx \ +; RUN: -mcpu=pwr8 -mattr=-power8-altivec | FileCheck %s -check-prefix=CHECK-LE +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mattr=+altivec -mattr=+vsx \ +; RUN: -mcpu=pwr7 | FileCheck %s -check-prefix=CHECK-VSX +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mattr=+altivec -mattr=+vsx \ +; RUN: -mcpu=pwr8 -mattr=-power8-altivec | FileCheck %s \ +; RUN: -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: test/CodeGen/PowerPC/vec_mul_even_odd.ll =================================================================== --- test/CodeGen/PowerPC/vec_mul_even_odd.ll +++ test/CodeGen/PowerPC/vec_mul_even_odd.ll @@ -1,7 +1,10 @@ ; Check the vector multiply even/odd word instructions that were added in P8 ; -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s \ +; RUN: | FileCheck %s declare <2 x i64> @llvm.ppc.altivec.vmuleuw(<4 x i32>, <4 x i32>) nounwind readnone declare <2 x i64> @llvm.ppc.altivec.vmulesw(<4 x i32>, <4 x i32>) nounwind readnone Index: test/CodeGen/PowerPC/vec_popcnt.ll =================================================================== --- test/CodeGen/PowerPC/vec_popcnt.ll +++ test/CodeGen/PowerPC/vec_popcnt.ll @@ -1,7 +1,10 @@ ; Check the vecpopcnt* instructions that were added in P8 ; In addition, check the conversions to/from the v2i64 VMX register that was also added in P8. -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s \ +; RUN: | FileCheck %s declare <16 x i8> @llvm.ctpop.v16i8(<16 x i8>) nounwind readnone declare <8 x i16> @llvm.ctpop.v8i16(<8 x i16>) nounwind readnone Index: test/CodeGen/PowerPC/vec_revb.ll =================================================================== --- test/CodeGen/PowerPC/vec_revb.ll +++ test/CodeGen/PowerPC/vec_revb.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr9 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr9 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 < %s | FileCheck %s define <8 x i16> @testXXBRH(<8 x i16> %a) { ; CHECK-LABEL: testXXBRH: Index: test/CodeGen/PowerPC/vec_rotate_shift.ll =================================================================== --- test/CodeGen/PowerPC/vec_rotate_shift.ll +++ test/CodeGen/PowerPC/vec_rotate_shift.ll @@ -1,6 +1,9 @@ ; Test the vector rotate and shift doubleword instructions that were added in P8 -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s \ +; RUN: | FileCheck %s declare <2 x i64> @llvm.ppc.altivec.vrld(<2 x i64>, <2 x i64>) nounwind readnone declare <2 x i64> @llvm.ppc.altivec.vsld(<2 x i64>, <2 x i64>) nounwind readnone Index: test/CodeGen/PowerPC/vec_shuffle_le.ll =================================================================== --- test/CodeGen/PowerPC/vec_shuffle_le.ll +++ test/CodeGen/PowerPC/vec_shuffle_le.ll @@ -1,4 +1,6 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -mattr=+altivec -mattr=-vsx -mcpu=pwr7 | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mattr=+altivec -mattr=-vsx \ +; RUN: -mcpu=pwr7 | FileCheck %s define void @VPKUHUM_xy(<16 x i8>* %A, <16 x i8>* %B) { entry: Index: test/CodeGen/PowerPC/vec_sldwi.ll =================================================================== --- test/CodeGen/PowerPC/vec_sldwi.ll +++ test/CodeGen/PowerPC/vec_sldwi.ll @@ -1,6 +1,8 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | \ ; RUN: FileCheck %s -check-prefix=CHECK-LE -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | \ ; RUN: FileCheck %s -check-prefix=CHECK-BE ; Possible LE ShuffleVector masks (Case 1): Index: test/CodeGen/PowerPC/vec_sqrt.ll =================================================================== --- test/CodeGen/PowerPC/vec_sqrt.ll +++ test/CodeGen/PowerPC/vec_sqrt.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr6 -mattr=+altivec,+fsqrt < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr6 \ +; RUN: -mattr=+altivec,+fsqrt < %s | FileCheck %s ; Check for vector sqrt expansion using floating-point types, since altivec ; does not provide an fsqrt instruction for vector. Index: test/CodeGen/PowerPC/vec_veqv_vnand_vorc.ll =================================================================== --- test/CodeGen/PowerPC/vec_veqv_vnand_vorc.ll +++ test/CodeGen/PowerPC/vec_veqv_vnand_vorc.ll @@ -1,6 +1,8 @@ ; Check the miscellaneous logical vector operations added in P8 ; -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -mattr=-vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 \ +; RUN: -mattr=-vsx < %s | FileCheck %s ; Test x eqv y define <4 x i32> @test_veqv(<4 x i32> %x, <4 x i32> %y) nounwind { %tmp = xor <4 x i32> %x, %y Index: test/CodeGen/PowerPC/vec_xxpermdi.ll =================================================================== --- test/CodeGen/PowerPC/vec_xxpermdi.ll +++ test/CodeGen/PowerPC/vec_xxpermdi.ll @@ -1,6 +1,8 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | \ ; RUN: FileCheck %s -check-prefix=CHECK-LE -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | \ ; RUN: FileCheck %s -check-prefix=CHECK-BE ; Possible LE ShuffleVector masks (Case 1): Index: test/CodeGen/PowerPC/vperm-lowering.ll =================================================================== --- test/CodeGen/PowerPC/vperm-lowering.ll +++ test/CodeGen/PowerPC/vperm-lowering.ll @@ -1,4 +1,5 @@ -; RUN: llc -verify-machineinstrs -O0 -fast-isel=false -mcpu=ppc64 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -O0 \ +; RUN: -fast-isel=false -mcpu=ppc64 < %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 = "powerpc64le-unknown-linux-gnu" Index: test/CodeGen/PowerPC/vrspill.ll =================================================================== --- test/CodeGen/PowerPC/vrspill.ll +++ test/CodeGen/PowerPC/vrspill.ll @@ -1,6 +1,13 @@ -; RUN: llc -O0 -mtriple=powerpc-unknown-linux-gnu -mattr=+altivec -mattr=-vsx -verify-machineinstrs < %s | FileCheck %s -; RUN: llc -O0 -mtriple=powerpc64-unknown-linux-gnu -mattr=+altivec -mattr=-vsx -verify-machineinstrs -fast-isel=false -mcpu=pwr7 < %s | FileCheck %s -; RUN: llc -O0 -mtriple=powerpc64-unknown-linux-gnu -mattr=+altivec -mattr=+vsx -verify-machineinstrs -fast-isel=false -mcpu=pwr7 < %s | FileCheck -check-prefix=CHECK-VSX %s +; RUN: llc -O0 -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc-unknown-linux-gnu -mattr=+altivec -mattr=-vsx \ +; RUN: -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -O0 -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mattr=+altivec -mattr=-vsx \ +; RUN: -verify-machineinstrs -fast-isel=false -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -O0 -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mattr=+altivec -mattr=+vsx \ +; RUN: -verify-machineinstrs -fast-isel=false -mcpu=pwr7 < %s \ +; RUN: | FileCheck -check-prefix=CHECK-VSX %s ; This verifies that we generate correct spill/reload code for vector regs. Index: test/CodeGen/PowerPC/vsx-args.ll =================================================================== --- test/CodeGen/PowerPC/vsx-args.ll +++ test/CodeGen/PowerPC/vsx-args.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs < %s -mcpu=pwr7 -mattr=+vsx | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mcpu=pwr7 -mattr=+vsx -fast-isel -O0 | \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s -mcpu=pwr7 \ +; RUN: -mattr=+vsx | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s -mcpu=pwr7 \ +; RUN: -mattr=+vsx -fast-isel -O0 | \ ; RUN: FileCheck -check-prefix=CHECK-FISL %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/vsx-elementary-arith.ll =================================================================== --- test/CodeGen/PowerPC/vsx-elementary-arith.ll +++ test/CodeGen/PowerPC/vsx-elementary-arith.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 | FileCheck %s @a = global float 3.000000e+00, align 4 @b = global float 4.000000e+00, align 4 @c = global double 3.000000e+00, align 8 Index: test/CodeGen/PowerPC/vsx-p8.ll =================================================================== --- test/CodeGen/PowerPC/vsx-p8.ll +++ test/CodeGen/PowerPC/vsx-p8.ll @@ -1,7 +1,12 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mattr=+power8-vector < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mattr=+power8-vector < %s | FileCheck -check-prefix=CHECK-REG %s -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mattr=+power8-vector -fast-isel -O0 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mattr=+power8-vector -fast-isel -O0 < %s | FileCheck -check-prefix=CHECK-FISL %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr8 \ +; RUN: -mattr=+power8-vector < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr8 \ +; RUN: -mattr=+power8-vector < %s | FileCheck -check-prefix=CHECK-REG %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr8 \ +; RUN: -mattr=+power8-vector -fast-isel -O0 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr8 \ +; RUN: -mattr=+power8-vector -fast-isel -O0 < %s \ +; RUN: | FileCheck -check-prefix=CHECK-FISL %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/vsx-recip-est.ll =================================================================== --- test/CodeGen/PowerPC/vsx-recip-est.ll +++ test/CodeGen/PowerPC/vsx-recip-est.ll @@ -1,5 +1,9 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -enable-unsafe-fp-math | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -enable-unsafe-fp-math | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mcpu=pwr8 -enable-unsafe-fp-math | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 \ +; RUN: -enable-unsafe-fp-math | FileCheck %s @a = global float 3.000000e+00, align 4 @b = global float 4.000000e+00, align 4 @c = global double 3.000000e+00, align 8 Index: test/CodeGen/PowerPC/vsx-spill.ll =================================================================== --- test/CodeGen/PowerPC/vsx-spill.ll +++ test/CodeGen/PowerPC/vsx-spill.ll @@ -1,13 +1,19 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=+vsx < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=+vsx < %s | FileCheck \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -mattr=+vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -mattr=+vsx < %s | FileCheck \ ; RUN: -check-prefix=CHECK-REG %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=+vsx -fast-isel -O0 < %s | \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -mattr=+vsx -fast-isel -O0 < %s | \ ; RUN: FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=+vsx -fast-isel -O0 < %s | \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -mattr=+vsx -fast-isel -O0 < %s | \ ; RUN: FileCheck -check-prefix=CHECK-FISL %s -; RUN: llc -verify-machineinstrs -mcpu=pwr9 < %s | FileCheck \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr9 < %s \ +; RUN: | FileCheck \ ; RUN: -check-prefix=CHECK-P9-REG %s -; RUN: llc -verify-machineinstrs -mcpu=pwr9 -fast-isel -O0 < %s | FileCheck \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr9 \ +; RUN: -fast-isel -O0 < %s | FileCheck \ ; RUN: -check-prefix=CHECK-P9-FISL %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" Index: test/CodeGen/PowerPC/vsx-word-splats.ll =================================================================== --- test/CodeGen/PowerPC/vsx-word-splats.ll +++ test/CodeGen/PowerPC/vsx-word-splats.ll @@ -1,5 +1,7 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s \ ; RUN: --check-prefix=CHECK-BE define <4 x float> @test0f(<4 x float> %a) { Index: test/CodeGen/PowerPC/vsx.ll =================================================================== --- test/CodeGen/PowerPC/vsx.ll +++ test/CodeGen/PowerPC/vsx.ll @@ -1,8 +1,19 @@ -; RUN: llc -relocation-model=static -verify-machineinstrs -mcpu=pwr7 -mtriple=powerpc64-unknown-linux-gnu -mattr=+vsx < %s | FileCheck %s -; RUN: llc -relocation-model=static -verify-machineinstrs -mcpu=pwr7 -mtriple=powerpc64-unknown-linux-gnu -mattr=+vsx < %s | FileCheck -check-prefix=CHECK-REG %s -; RUN: llc -relocation-model=static -verify-machineinstrs -mcpu=pwr7 -mtriple=powerpc64-unknown-linux-gnu -mattr=+vsx -fast-isel -O0 < %s | FileCheck %s -; RUN: llc -relocation-model=static -verify-machineinstrs -mcpu=pwr7 -mtriple=powerpc64-unknown-linux-gnu -mattr=+vsx -fast-isel -O0 < %s | FileCheck -check-prefix=CHECK-FISL %s -; RUN: llc -relocation-model=static -verify-machineinstrs -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu -mattr=+vsx < %s | FileCheck -check-prefix=CHECK-LE %s +; RUN: llc -ppc-ignore-percent-prefix -relocation-model=static \ +; RUN: -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mattr=+vsx < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -relocation-model=static \ +; RUN: -verify-machineinstrs -mcpu=pwr7 \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mattr=+vsx < %s | FileCheck -check-prefix=CHECK-REG %s +; RUN: llc -ppc-ignore-percent-prefix -relocation-model=static \ +; RUN: -verify-machineinstrs -mcpu=pwr7 -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mattr=+vsx -fast-isel -O0 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -relocation-model=static \ +; RUN: -verify-machineinstrs -mcpu=pwr7 -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: -mattr=+vsx -fast-isel -O0 < %s | FileCheck -check-prefix=CHECK-FISL %s +; RUN: llc -ppc-ignore-percent-prefix -relocation-model=static \ +; RUN: -verify-machineinstrs -mcpu=pwr8 \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mattr=+vsx < %s \ +; RUN: | FileCheck -check-prefix=CHECK-LE %s define double @test1(double %a, double %b) { entry: Index: test/CodeGen/PowerPC/vsxD-Form-spills.ll =================================================================== --- test/CodeGen/PowerPC/vsxD-Form-spills.ll +++ test/CodeGen/PowerPC/vsxD-Form-spills.ll @@ -1,5 +1,8 @@ -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 < %s | FileCheck -check-prefix=CHECK-PWR9 %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -verify-machineinstrs -ppc-ignore-percent-prefix \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 < %s \ +; RUN: | FileCheck -check-prefix=CHECK-PWR9 %s define <4 x i32> @testSpill(<4 x i32> %a, <4 x i32> %b) { Index: test/CodeGen/PowerPC/vsx_insert_extract_le.ll =================================================================== --- test/CodeGen/PowerPC/vsx_insert_extract_le.ll +++ test/CodeGen/PowerPC/vsx_insert_extract_le.ll @@ -1,10 +1,12 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mattr=+vsx \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr8 \ +; RUN: -mattr=+vsx \ ; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mattr=-power9-vector \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr9 \ +; RUN: -mattr=-power9-vector \ ; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr9 \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr9 \ ; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s \ ; RUN: --check-prefix=CHECK-P9 --implicit-check-not xxswapd Index: test/CodeGen/PowerPC/vsx_scalar_ld_st.ll =================================================================== --- test/CodeGen/PowerPC/vsx_scalar_ld_st.ll +++ test/CodeGen/PowerPC/vsx_scalar_ld_st.ll @@ -1,8 +1,11 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu \ ; RUN: -mcpu=pwr8 -mattr=-direct-move | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu \ ; RUN: -mcpu=pwr8 -mattr=-direct-move | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu \ ; RUN: -mcpu=pwr9 -mattr=-direct-move | FileCheck %s -check-prefix=CHECK-P9 @d = common global double 0.000000e+00, align 8 Index: test/CodeGen/PowerPC/vsx_shuffle_le.ll =================================================================== --- test/CodeGen/PowerPC/vsx_shuffle_le.ll +++ test/CodeGen/PowerPC/vsx_shuffle_le.ll @@ -1,10 +1,13 @@ -; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mattr=+vsx \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr8 \ +; RUN: -mattr=+vsx \ ; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mattr=-power9-vector \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr9 \ +; RUN: -mattr=-power9-vector \ ; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mattr=+vsx \ +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs -mcpu=pwr9 \ +; RUN: -mattr=+vsx \ ; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s \ ; RUN: --check-prefix=CHECK-P9 --implicit-check-not xxswapd Index: test/CodeGen/PowerPC/xray-attribute-instrumentation.ll =================================================================== --- test/CodeGen/PowerPC/xray-attribute-instrumentation.ll +++ test/CodeGen/PowerPC/xray-attribute-instrumentation.ll @@ -1,5 +1,7 @@ -; RUN: llc -filetype=asm -o - -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s -; RUN: llc -filetype=asm -o - -mtriple=powerpc64le-unknown-linux-gnu \ +; RUN: llc -ppc-ignore-percent-prefix -filetype=asm -o - \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -filetype=asm -o - \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu \ ; RUN: -relocation-model=pic < %s | FileCheck %s define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" { Index: test/CodeGen/PowerPC/xray-conditional-return.ll =================================================================== --- test/CodeGen/PowerPC/xray-conditional-return.ll +++ test/CodeGen/PowerPC/xray-conditional-return.ll @@ -1,4 +1,5 @@ -; RUN: llc -filetype=asm -o - -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -filetype=asm -o - \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s define void @Foo(i32 signext %a, i32 signext %b) #0 { ; CHECK-LABEL: @Foo Index: test/CodeGen/PowerPC/xray-ret-is-terminator.ll =================================================================== --- test/CodeGen/PowerPC/xray-ret-is-terminator.ll +++ test/CodeGen/PowerPC/xray-ret-is-terminator.ll @@ -1,4 +1,5 @@ -; RUN: llc -o - -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -o - \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s define void @ILLBeBack() #0 { ; CHECK-LABEL @ILLBeBack Index: test/CodeGen/PowerPC/xray-tail-call-hidden.ll =================================================================== --- test/CodeGen/PowerPC/xray-tail-call-hidden.ll +++ test/CodeGen/PowerPC/xray-tail-call-hidden.ll @@ -1,4 +1,5 @@ -; RUN: llc -filetype=asm -o - -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -filetype=asm -o - \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s declare hidden i32 @callee() nounwind noinline uwtable "function-instrument"="xray-always" Index: test/CodeGen/PowerPC/xray-tail-call-sled.ll =================================================================== --- test/CodeGen/PowerPC/xray-tail-call-sled.ll +++ test/CodeGen/PowerPC/xray-tail-call-sled.ll @@ -1,4 +1,5 @@ -; RUN: llc -filetype=asm -o - -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -filetype=asm -o - \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s define i32 @callee() nounwind noinline uwtable "function-instrument"="xray-always" { ; CHECK-LABEL: .Ltmp0: Index: test/CodeGen/PowerPC/xxleqv_xxlnand_xxlorc.ll =================================================================== --- test/CodeGen/PowerPC/xxleqv_xxlnand_xxlorc.ll +++ test/CodeGen/PowerPC/xxleqv_xxlnand_xxlorc.ll @@ -1,7 +1,9 @@ ; Check the miscellaneous logical vector operations added in P8 ; -; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s -; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s ; Test x eqv y define <4 x i32> @test_xxleqv(<4 x i32> %x, <4 x i32> %y) nounwind { %tmp = xor <4 x i32> %x, %y Index: test/CodeGen/PowerPC/zext-bitperm.ll =================================================================== --- test/CodeGen/PowerPC/zext-bitperm.ll +++ test/CodeGen/PowerPC/zext-bitperm.ll @@ -1,6 +1,9 @@ -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc-unknown-linux-gnu | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s +; RUN: llc -ppc-ignore-percent-prefix -verify-machineinstrs < %s \ +; RUN: -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s ; Test case for PPCTargetLowering::extendSubTreeForBitPermutation. ; We expect mask and rotate are folded into a rlwinm instruction. Index: test/MC/Disassembler/PowerPC/qpx.txt =================================================================== --- test/MC/Disassembler/PowerPC/qpx.txt +++ test/MC/Disassembler/PowerPC/qpx.txt @@ -1,4 +1,5 @@ -# RUN: llvm-mc --disassemble %s -triple powerpc64-bgq-linux -mcpu=a2q | FileCheck %s +# RUN: llvm-mc -ppc-ignore-percent-prefix --disassemble %s \ +; RUN: -triple powerpc64-bgq-linux -mcpu=a2q | FileCheck %s # CHECK: qvfabs 3, 5 0x10 0x60 0x2a 0x10 Index: test/MC/Disassembler/PowerPC/vsx.txt =================================================================== --- test/MC/Disassembler/PowerPC/vsx.txt +++ test/MC/Disassembler/PowerPC/vsx.txt @@ -1,4 +1,5 @@ -# RUN: llvm-mc --disassemble %s -triple powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s +# RUN: llvm-mc -ppc-ignore-percent-prefix --disassemble %s \ +; RUN: -triple powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s # CHECK: lxsdx 7, 5, 31 0x7c 0xe5 0xfc 0x98 Index: test/MC/PowerPC/deprecated-p7.s =================================================================== --- test/MC/PowerPC/deprecated-p7.s +++ test/MC/PowerPC/deprecated-p7.s @@ -1,6 +1,11 @@ -# RUN: llvm-mc -triple powerpc64-unknown-linux-gnu -mcpu=pwr7 -show-encoding < %s 2>&1 | FileCheck %s -# RUN: llvm-mc -triple powerpc64le-unknown-linux-gnu -mcpu=pwr7 -show-encoding < %s 2>&1 | FileCheck %s -# RUN: llvm-mc -triple powerpc-unknown-linux-gnu -mcpu=601 -show-encoding < %s 2>&1 | FileCheck -check-prefix=CHECK-OLD %s +# RUN: llvm-mc -ppc-ignore-percent-prefix -triple powerpc64-unknown-linux-gnu \ +# RUN: -mcpu=pwr7 -show-encoding < %s 2>&1 | FileCheck %s +# RUN: llvm-mc -ppc-ignore-percent-prefix \ +# RUN: -triple powerpc64le-unknown-linux-gnu -mcpu=pwr7 \ +# RUN: -show-encoding < %s 2>&1 | FileCheck %s +# RUN: llvm-mc -ppc-ignore-percent-prefix \ +# RUN: -triple powerpc-unknown-linux-gnu -mcpu=601 -show-encoding < %s 2>&1 \ +# RUN: | FileCheck -check-prefix=CHECK-OLD %s mftb 3 # CHECK-NOT: warning: deprecated Index: test/MC/PowerPC/htm.s =================================================================== --- test/MC/PowerPC/htm.s +++ test/MC/PowerPC/htm.s @@ -1,5 +1,8 @@ -# RUN: llvm-mc -triple powerpc64-unknown-linux-gnu --show-encoding %s | FileCheck -check-prefix=CHECK-BE %s -# RUN: llvm-mc -triple powerpc64le-unknown-linux-gnu --show-encoding %s | FileCheck -check-prefix=CHECK-LE %s +# RUN: llvm-mc -ppc-ignore-percent-prefix -triple powerpc64-unknown-linux-gnu \ +# RUN: --show-encoding %s | FileCheck -check-prefix=CHECK-BE %s +# RUN: llvm-mc -ppc-ignore-percent-prefix \ +# RUN: -triple powerpc64le-unknown-linux-gnu \ +# RUN: --show-encoding %s | FileCheck -check-prefix=CHECK-LE %s # CHECK-BE: tbegin. 0 # encoding: [0x7c,0x00,0x05,0x1d] # CHECK-LE: tbegin. 0 # encoding: [0x1d,0x05,0x00,0x7c] Index: test/MC/PowerPC/qpx.s =================================================================== --- test/MC/PowerPC/qpx.s +++ test/MC/PowerPC/qpx.s @@ -1,4 +1,5 @@ -# RUN: llvm-mc -triple powerpc64-bgq-linux --show-encoding %s | FileCheck %s +# RUN: llvm-mc -ppc-ignore-percent-prefix -triple powerpc64-bgq-linux \ +# RUN: --show-encoding %s | FileCheck %s # CHECK: qvfabs 3, 5 # encoding: [0x10,0x60,0x2a,0x10] qvfabs %q3, %q5 Index: test/MC/PowerPC/vsx.s =================================================================== --- test/MC/PowerPC/vsx.s +++ test/MC/PowerPC/vsx.s @@ -1,5 +1,8 @@ -# RUN: llvm-mc -triple powerpc64-unknown-linux-gnu --show-encoding %s | FileCheck -check-prefix=CHECK-BE %s -# RUN: llvm-mc -triple powerpc64le-unknown-linux-gnu --show-encoding %s | FileCheck -check-prefix=CHECK-LE %s +# RUN: llvm-mc -ppc-ignore-percent-prefix -triple powerpc64-unknown-linux-gnu \ +# RUN: --show-encoding %s | FileCheck -check-prefix=CHECK-BE %s +# RUN: llvm-mc -ppc-ignore-percent-prefix \ +# RUN: -triple powerpc64le-unknown-linux-gnu --show-encoding %s \ +# RUN: | FileCheck -check-prefix=CHECK-LE %s # CHECK-BE: xxswapd 7, 63 # encoding: [0xf0,0xff,0xfa,0x56] # CHECK-LE: xxswapd 7, 63 # encoding: [0x56,0xfa,0xff,0xf0]