diff options
Diffstat (limited to 'test/MC/X86/x86_long_nop.s')
-rw-r--r-- | test/MC/X86/x86_long_nop.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/X86/x86_long_nop.s b/test/MC/X86/x86_long_nop.s index ac1bc08..eee840c 100644 --- a/test/MC/X86/x86_long_nop.s +++ b/test/MC/X86/x86_long_nop.s @@ -2,6 +2,7 @@ # RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-pc-linux-gnu %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s # RUN: llvm-mc -filetype=obj -arch=x86 -triple=x86_64-apple-darwin10.0 %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s # RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-apple-darwin8 %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s +# 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=SLM %s # Ensure alignment directives also emit sequences of 15-byte NOPs on processors # capable of using long NOPs. @@ -13,3 +14,12 @@ inc %eax # CHECK-NEXT: 10: nop # CHECK-NEXT: 1f: nop # CHECK-NEXT: 20: inc + +# On Silvermont we emit only 7 byte NOPs since longer NOPs are not profitable +# SLM: 0: inc +# SLM-NEXT: 1: nop +# SLM-NEXT: 8: nop +# SLM-NEXT: f: nop +# SLM-NEXT: 16: nop +# SLM-NEXT: 1d: nop +# SLM-NEXT: 20: inc |