Home | History | Annotate | Download | only in ELF
      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.
      5 
      6 // RUN: llvm-mc -filetype=obj -mc-relax-all -triple x86_64-pc-linux-gnu %s -o - \
      7 // RUN:  | llvm-objdump -disassemble - | FileCheck -check-prefix=RELAXALL %s
      8 
      9 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \
     10 // RUN:  | llvm-objdump -disassemble - | FileCheck %s
     11 
     12 .text
     13 foo:
     14   mov %rax, %rax
     15   jmp foo
     16 
     17 // RELAXALL:    3:  e9
     18 // CHECK:       3:  eb
     19 
     20