20 lines · plain
1// By default, the jmp here does not need relaxation (so the 0xeb opdoce can be2// used).3// However, with -mc-relax-all passed to MC, all jumps are relaxed and we4// expect to see a different instruction.5 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 %s8 9// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \10// RUN: | llvm-objdump -d - | FileCheck %s11 12.text13foo:14 mov %rax, %rax15 jmp foo16 17// RELAXALL: 3: e918// CHECK: 3: eb19 20