Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / ELF / relax-all-flag.s
blobc0dd87acd63c8ae3c5b205f58d66c554a0839dfa
1 // By default, the jmp here does not need relaxation (so the 0xeb opdoce can be
2 // used).
3 // However, with -mc-relax-all passed to MC, all jumps are relaxed and we
4 // expect to see a different instruction.
6 // RUN: llvm-mc -filetype=obj -mc-relax-all -triple x86_64-pc-linux-gnu %s -o - \
7 // RUN: | llvm-objdump -d - | FileCheck --check-prefix=RELAXALL %s
9 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \
10 // RUN: | llvm-objdump -d - | FileCheck %s
12 .text
13 foo:
14 mov %rax, %rax
15 jmp foo
17 // RELAXALL: 3: e9
18 // CHECK: 3: eb