Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / X86 / align-via-padding-corner.s
blob6b8e02d198a52e8ccaf227a651ee3d4185fc18e4
1 # RUN: llvm-mc -mcpu=skylake -filetype=obj -triple x86_64-pc-linux-gnu %s -x86-pad-max-prefix-size=5 -x86-pad-for-align=1 | llvm-objdump -d - | FileCheck %s
4 # The first test check the correctness cornercase - can't add prefixes on a
5 # instruction following by a prefix.
6 .globl labeled_prefix_test
7 labeled_prefix_test:
8 # CHECK: 0: 2e 2e 2e 2e 2e e9 06 00 00 00 jmp
9 # CHECK: a: 3e e9 00 00 00 00 jmp
10 jmp bar
12 jmp bar
13 .p2align 4
14 bar:
15 ret
17 # The second test is similar to the second test - can't add prefixes on a
18 # instruction following by hardcode.
19 .p2align 5
20 .globl labeled_hardcode_test
21 labeled_hardcode_test:
22 # CHECK: 20: 2e 2e 2e 2e 2e e9 06 00 00 00 jmp
23 # CHECK: 2a: 3e e9 00 00 00 00 jmp
24 jmp baz
25 .byte 0x3e
26 jmp baz
27 .p2align 4
28 baz:
29 ret