[llvm] r176490 - Add a test that .align directives on capable processors use long NOPs.
David Sehr
sehr at google.com
Tue Mar 5 08:46:54 PST 2013
Author: sehr
Date: Tue Mar 5 10:46:54 2013
New Revision: 176490
URL: http://llvm.org/viewvc/llvm-project?rev=176490&view=rev
Log:
Add a test that .align directives on capable processors use long NOPs.
Added:
llvm/trunk/test/MC/X86/x86_long_nop.s
Added: llvm/trunk/test/MC/X86/x86_long_nop.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/X86/x86_long_nop.s?rev=176490&view=auto
==============================================================================
--- llvm/trunk/test/MC/X86/x86_long_nop.s (added)
+++ llvm/trunk/test/MC/X86/x86_long_nop.s Tue Mar 5 10:46:54 2013
@@ -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
More information about the llvm-commits
mailing list