30 lines · plain
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 %s2 3 4 # The first test check the correctness cornercase - can't add prefixes on a5 # instruction following by a prefix.6 .globl labeled_prefix_test7labeled_prefix_test:8# CHECK: 0: 2e 2e 2e 2e 2e e9 06 00 00 00 jmp9# CHECK: a: 3e e9 00 00 00 00 jmp10 jmp bar11 DS12 jmp bar13 .p2align 414bar:15 ret16 17 # The second test is similar to the second test - can't add prefixes on a18 # instruction following by hardcode.19 .p2align 520 .globl labeled_hardcode_test21labeled_hardcode_test:22# CHECK: 20: 2e 2e 2e 2e 2e e9 06 00 00 00 jmp23# CHECK: 2a: 3e e9 00 00 00 00 jmp24 jmp baz25 .byte 0x3e26 jmp baz27 .p2align 428baz:29 ret30