[llvm] r225928 - [PowerPC] Fix the noop-insert test

Hal Finkel hfinkel at anl.gov
Tue Jan 13 17:37:22 PST 2015


Author: hfinkel
Date: Tue Jan 13 19:37:21 2015
New Revision: 225928

URL: http://llvm.org/viewvc/llvm-project?rev=225928&view=rev
Log:
[PowerPC] Fix the noop-insert test

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.

Modified:
    llvm/trunk/test/CodeGen/PowerPC/noop-insert.ll

Modified: llvm/trunk/test/CodeGen/PowerPC/noop-insert.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/noop-insert.ll?rev=225928&r1=225927&r2=225928&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/noop-insert.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/noop-insert.ll Tue Jan 13 19:37:21 2015
@@ -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.
 





More information about the llvm-commits mailing list