[PowerPC] Fix the noop-insert test
authorHal Finkel <hfinkel@anl.gov>
Wed, 14 Jan 2015 01:37:21 +0000 (01:37 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 14 Jan 2015 01:37:21 +0000 (01:37 +0000)
The form of nops used is CPU-specific (some CPUs, such as the POWER7, have
special group-terminating nops). We probably want a different callback for this
kind of nop insertion (something more like MCAsmBackend::writeNopData), or for
PPC to use a different mechanism for scheduling nops, but this will stop the
test from failing for now.

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

test/CodeGen/PowerPC/noop-insert.ll

index f019189d372e48ef04d7b9d65dd1345c6c506a44..ac8f744919ab8b5579c4f10d491cad0c7b075b16 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc < %s -march=ppc32 -noop-insertion | FileCheck %s
-; RUN: llc < %s -march=ppc32 -noop-insertion -rng-seed=1 | FileCheck %s --check-prefix=SEED1
-; RUN: llc < %s -march=ppc32 -noop-insertion -noop-insertion-percentage=100 | FileCheck %s --check-prefix=100PERCENT
+; RUN: llc < %s -march=ppc32 -mcpu=g4 -noop-insertion | FileCheck %s
+; RUN: llc < %s -march=ppc32 -mcpu=g4 -noop-insertion -rng-seed=1 | FileCheck %s --check-prefix=SEED1
+; RUN: llc < %s -march=ppc32 -mcpu=g4 -noop-insertion -noop-insertion-percentage=100 | FileCheck %s --check-prefix=100PERCENT
 
 ; This test case checks that NOOPs are inserted correctly for PowerPC.