1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Add a test that .align directives on capable processors use long NOPs.

llvm-svn: 176490
This commit is contained in:
David Sehr 2013-03-05 16:46:54 +00:00
parent a008982a6c
commit 5f7e2bf434

View 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