mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Add a test that .align directives on capable processors use long NOPs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176490 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d4c3e56692
commit
81ee0f7368
12
test/MC/X86/x86_long_nop.s
Normal file
12
test/MC/X86/x86_long_nop.s
Normal file
@ -0,0 +1,12 @@
|
||||
# RUN: llvm-mc -filetype=obj -arch=x86 -mcpu=i686 %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s
|
||||
|
||||
# Ensure alignment directives also emit sequences of 15-byte NOPs on processors
|
||||
# capable of using long NOPs.
|
||||
inc %eax
|
||||
.align 32
|
||||
inc %eax
|
||||
# CHECK: 0: inc
|
||||
# CHECK-NEXT: 1: nop
|
||||
# CHECK-NEXT: 10: nop
|
||||
# CHECK-NEXT: 1f: nop
|
||||
# CHECK-NEXT: 20: inc
|
Loading…
Reference in New Issue
Block a user