1 ; RUN: llc < %s -march=ppc32 -noop-insertion | FileCheck %s
2 ; RUN: llc < %s -march=ppc32 -noop-insertion -rng-seed=1 | FileCheck %s --check-prefix=SEED1
3 ; RUN: llc < %s -march=ppc32 -noop-insertion -noop-insertion-percentage=100 | FileCheck %s --check-prefix=100PERCENT
5 ; This test case checks that NOOPs are inserted correctly for PowerPC.
7 ; It just happens that with a default percentage of 25% and seed=0,
8 ; no NOOPs are inserted.
20 ; 100PERCENT-NEXT: mullw
21 ; 100PERCENT-NEXT: nop
22 ; 100PERCENT-NEXT: add
23 ; 100PERCENT-NEXT: nop
24 ; 100PERCENT-NEXT: blr
26 define i32 @test1(i32 %x, i32 %y, i32 %z) {
29 %tmp2 = add i32 %tmp, %z