Mercurial > hg > CbC > CbC_llvm
diff test/MC/X86/x86_long_nop.s @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 1172e4bd9c6f |
children | 3a76565eade5 |
line wrap: on
line diff
--- a/test/MC/X86/x86_long_nop.s Fri Nov 25 19:14:25 2016 +0900 +++ b/test/MC/X86/x86_long_nop.s Fri Oct 27 17:07:41 2017 +0900 @@ -3,7 +3,7 @@ # RUN: llvm-mc -filetype=obj -arch=x86 -triple=x86_64-apple-darwin10.0 %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s # RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-apple-darwin8 %s | llvm-objdump -d -no-show-raw-insn - | FileCheck %s # 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=LNOP7 %s -# RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-pc-linux-gnu -mcpu=lakemont %s | llvm-objdump -d -no-show-raw-insn - | FileCheck --check-prefix=LNOP7 %s +# RUN: llvm-mc -filetype=obj -arch=x86 -triple=i686-pc-linux-gnu -mcpu=lakemont %s | llvm-objdump -d -no-show-raw-insn - | FileCheck --check-prefix=NOP1 %s # Ensure alignment directives also emit sequences of 15-byte NOPs on processors # capable of using long NOPs. @@ -16,8 +16,7 @@ # CHECK-NEXT: 1f: nop # CHECK-NEXT: 20: inc -# On Silvermont and Lakemont we emit only 7 byte NOPs since longer NOPs -# are not profitable. +# On Silvermont we emit only 7 byte NOPs since longer NOPs are not profitable. # LNOP7: 0: inc # LNOP7-NEXT: 1: nop # LNOP7-NEXT: 8: nop @@ -25,3 +24,23 @@ # LNOP7-NEXT: 16: nop # LNOP7-NEXT: 1d: nop # LNOP7-NEXT: 20: inc + +# On Lakemont we emit only 1 byte NOPs since longer NOPs are not supported/legal +# NOP1: 0: inc +# NOP1-NEXT: 1: nop +# NOP1-NEXT: 2: nop +# NOP1-NEXT: 3: nop +# NOP1-NEXT: 4: nop +# NOP1-NEXT: 5: nop +# NOP1-NEXT: 6: nop +# ....... +# NOP1: 17: nop +# NOP1-NEXT: 18: nop +# NOP1-NEXT: 19: nop +# NOP1-NEXT: 1a: nop +# NOP1-NEXT: 1b: nop +# NOP1-NEXT: 1c: nop +# NOP1-NEXT: 1d: nop +# NOP1-NEXT: 1e: nop +# NOP1-NEXT: 1f: nop +# NOP1-NEXT: 20: inc