[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / ELF / relax-all-flag.s
blob4c1c78c3925daf3ea3902b2370e175293a993bee
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 -disassemble - | FileCheck -check-prefix=RELAXALL %s
9 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \
10 // RUN: | llvm-objdump -disassemble - | FileCheck %s
12 .text
13 foo:
14 mov %rax, %rax
15 jmp foo
17 // RELAXALL: 3: e9
18 // CHECK: 3: eb