Home | History | Annotate | Download | only in X86
      1 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=x86_64-pc-linux-gnu %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s
      2 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-pc-linux-gnu %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s
      3 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=x86_64-apple-darwin10.0 %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s
      4 # RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-apple-darwin8 %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s
      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=SLM %s
      6 
      7 # Ensure alignment directives also emit sequences of 15-byte NOPs on processors
      8 # capable of using long NOPs.
      9 inc %eax
     10 .p2align 5
     11 inc %eax
     12 # CHECK: 0:  inc
     13 # CHECK-NEXT: 1:  nop
     14 # CHECK-NEXT: 10:  nop
     15 # CHECK-NEXT: 1f:  nop
     16 # CHECK-NEXT: 20:  inc
     17 
     18 # On Silvermont we emit only 7 byte NOPs since longer NOPs are not profitable
     19 # SLM: 0:  inc
     20 # SLM-NEXT: 1:  nop
     21 # SLM-NEXT: 8:  nop
     22 # SLM-NEXT: f:  nop
     23 # SLM-NEXT: 16:  nop
     24 # SLM-NEXT: 1d:  nop
     25 # SLM-NEXT: 20:  inc
     26