diff options
author | David Sehr <sehr@google.com> | 2013-03-05 16:46:54 +0000 |
---|---|---|
committer | David Sehr <sehr@google.com> | 2013-03-05 16:46:54 +0000 |
commit | 81ee0f73685f966ea279b01cbb9587c70ad91bed (patch) | |
tree | 18dda974b46bf3d9f4b2449f64092005e0e42559 /test/MC | |
parent | d4c3e566922e04296c29cc4a1695e06a2b53bcb7 (diff) | |
download | external_llvm-81ee0f73685f966ea279b01cbb9587c70ad91bed.zip external_llvm-81ee0f73685f966ea279b01cbb9587c70ad91bed.tar.gz external_llvm-81ee0f73685f966ea279b01cbb9587c70ad91bed.tar.bz2 |
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
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/X86/x86_long_nop.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/MC/X86/x86_long_nop.s b/test/MC/X86/x86_long_nop.s new file mode 100644 index 0000000..f8e7642 --- /dev/null +++ b/test/MC/X86/x86_long_nop.s @@ -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 |