Disable a couple of tests, CodeGen/X86/noop-insert.ll and CodeGen/X86/noop-insert...
[oota-llvm.git] / test / CodeGen / X86 / noop-insert-percentage.ll
1 ; REQUIRES: disabled
2
3 ; RUN: llc < %s -mtriple=x86_64-linux -rng-seed=5 -noop-insertion -noop-insertion-percentage=10 \
4 ; RUN:     | FileCheck %s --check-prefix=PERCENT10
5 ; RUN: llc < %s -mtriple=x86_64-linux -rng-seed=5 -noop-insertion -noop-insertion-percentage=50 \
6 ; RUN:     | FileCheck %s --check-prefix=PERCENT50
7 ; RUN: llc < %s -mtriple=x86_64-linux -rng-seed=5 -noop-insertion -noop-insertion-percentage=100 \
8 ; RUN:     | FileCheck %s --check-prefix=PERCENT100
9
10 ; RUN: llc < %s -march=x86 -rng-seed=5 -noop-insertion -noop-insertion-percentage=100 \
11 ; RUN:     | FileCheck %s --check-prefix=X86-PERCENT100
12
13 ; This test case tests NOOP insertion at varying percentage levels.
14
15 define i32 @test(i32 %x, i32 %y, i32 %z) {
16 entry:
17     %t1 = add i32 %x, %y
18     %t2 = mul i32 %t1, %z
19     %t3 = add i32 %t2, %x
20     %t4 = mul i32 %t3, %z
21     %t5 = add i32 %t4, %x
22     %t6 = mul i32 %t5, %z
23     %t7 = add i32 %t6, %x
24     %t8 = mul i32 %t7, %z
25     %t9 = add i32 %t8, %x
26     %t10 = mul i32 %t9, %z
27     %t11 = add i32 %t10, %x
28     ret i32 %t11
29 }
30
31 ; PERCENT10: movq   %rbp, %rbp
32 ; PERCENT10: retq
33
34 ; PERCENT50: leaq   (%rdi), %rdi
35 ; PERCENT50: nop
36 ; PERCENT50: movq   %rbp, %rbp
37 ; PERCENT50: movq   %rsp, %rsp
38 ; PERCENT50: leaq   (%rsi), %rsi
39 ; PERCENT50: nop
40 ; PERCENT50: retq
41
42 ; PERCENT100: leaq  (%rdi), %rdi
43 ; PERCENT100: leaq  (%rdi), %rdi
44 ; PERCENT100: nop
45 ; PERCENT100: movq  %rbp, %rbp
46 ; PERCENT100: movq  %rsp, %rsp
47 ; PERCENT100: nop
48 ; PERCENT100: nop
49 ; PERCENT100: leaq  (%rsi), %rsi
50 ; PERCENT100: nop
51 ; PERCENT100: leaq  (%rdi), %rdi
52 ; PERCENT100: leaq  (%rdi), %rdi
53 ; PERCENT100: leaq  (%rsi), %rsi
54 ; PERCENT100: retq
55
56
57 ; X86-PERCENT100: leal  (%edi), %edi
58 ; X86-PERCENT100: leal  (%edi), %edi
59 ; X86-PERCENT100: nop
60 ; X86-PERCENT100: movl  %ebp, %ebp
61 ; X86-PERCENT100: movl  %esp, %esp
62 ; X86-PERCENT100: nop
63 ; X86-PERCENT100: nop
64 ; X86-PERCENT100: leal  (%esi), %esi
65 ; X86-PERCENT100: nop
66 ; X86-PERCENT100: leal  (%edi), %edi
67 ; X86-PERCENT100: leal  (%edi), %edi
68 ; X86-PERCENT100: leal  (%esi), %esi