[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / X86 / x86_long_nop.s
blob46f96f37c88cf3b030dd83e9c8c91369a0ee62a6
1 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=x86_64-pc-linux-gnu -mcpu=pentiumpro %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s --check-prefix=LNOP10
2 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-pc-linux-gnu %s -mcpu=pentiumpro | llvm-objdump -d -no-show-raw-insn - | FileCheck %s --check-prefix=LNOP10
3 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=x86_64-apple-darwin10.0 -mcpu=pentiumpro %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s --check-prefix=LNOP10
4 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-apple-darwin8 -mcpu=pentiumpro %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s --check-prefix=LNOP10
5 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-pc-linux-gnu -mcpu=slm %s | llvm-objdump -d -no-show-raw-insn - | FileCheck --check-prefix=LNOP7 %s
6 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-pc-linux-gnu -mcpu=silvermont %s | llvm-objdump -d -no-show-raw-insn - | FileCheck --check-prefix=LNOP7 %s
7 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-pc-linux-gnu -mcpu=lakemont %s | llvm-objdump -d -no-show-raw-insn - | FileCheck --check-prefix=NOP1 %s
8 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=x86_64-pc-linux-gnu -mcpu=bdver1 %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s --check-prefix=LNOP11
9 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-pc-linux-gnu %s -mcpu=bdver1 | llvm-objdump -d -no-show-raw-insn - | FileCheck %s --check-prefix=LNOP11
10 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=x86_64-pc-linux-gnu -mcpu=btver1 %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s --check-prefix=LNOP15
11 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-pc-linux-gnu %s -mcpu=btver1 | llvm-objdump -d -no-show-raw-insn - | FileCheck %s --check-prefix=LNOP15
12 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=x86_64-pc-linux-gnu -mcpu=btver2 %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s --check-prefix=LNOP15
13 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-pc-linux-gnu %s -mcpu=btver2 | llvm-objdump -d -no-show-raw-insn - | FileCheck %s --check-prefix=LNOP15
14 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=x86_64-pc-linux-gnu -mcpu=znver1 %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s --check-prefix=LNOP15
15 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-pc-linux-gnu %s -mcpu=znver1 | llvm-objdump -d -no-show-raw-insn - | FileCheck %s --check-prefix=LNOP15
17 # Ensure alignment directives also emit sequences of 10, 11 and 15-byte NOPs on processors
18 # capable of using long NOPs.
19 inc %eax
20 .p2align 5
21 inc %eax
22 # LNOP15: 0: inc
23 # LNOP15-NEXT: 1: nop
24 # LNOP15-NEXT: 10: nop
25 # LNOP15-NEXT: 1f: nop
26 # LNOP15-NEXT: 20: inc
28 # LNOP11: 0: inc
29 # LNOP11-NEXT: 1: nop
30 # LNOP11-NEXT: c: nop
31 # LNOP11-NEXT: 17: nop
32 # LNOP11-NEXT: 20: inc
34 # LNOP10: 0: inc
35 # LNOP10-NEXT: 1: nop
36 # LNOP10-NEXT: b: nop
37 # LNOP10-NEXT: 15: nop
38 # LNOP10-NEXT: 1f: nop
39 # LNOP10-NEXT: 20: inc
41 # On Silvermont we emit only 7 byte NOPs since longer NOPs are not profitable.
42 # LNOP7: 0: inc
43 # LNOP7-NEXT: 1: nop
44 # LNOP7-NEXT: 8: nop
45 # LNOP7-NEXT: f: nop
46 # LNOP7-NEXT: 16: nop
47 # LNOP7-NEXT: 1d: nop
48 # LNOP7-NEXT: 20: inc
50 # On Lakemont we emit only 1 byte NOPs since longer NOPs are not supported/legal
51 # NOP1: 0: inc
52 # NOP1-NEXT: 1: nop
53 # NOP1-NEXT: 2: nop
54 # NOP1-NEXT: 3: nop
55 # NOP1-NEXT: 4: nop
56 # NOP1-NEXT: 5: nop
57 # NOP1-NEXT: 6: nop
58 # .......
59 # NOP1: 17: nop
60 # NOP1-NEXT: 18: nop
61 # NOP1-NEXT: 19: nop
62 # NOP1-NEXT: 1a: nop
63 # NOP1-NEXT: 1b: nop
64 # NOP1-NEXT: 1c: nop
65 # NOP1-NEXT: 1d: nop
66 # NOP1-NEXT: 1e: nop
67 # NOP1-NEXT: 1f: nop
68 # NOP1-NEXT: 20: inc