mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 12:55:45 +00:00
Add a test for explicitly exercising the mc-relax-all flag.
llvm-svn: 169764
This commit is contained in:
parent
074c9e1b36
commit
139a219553
19
test/MC/ELF/relax-all-flag.s
Normal file
19
test/MC/ELF/relax-all-flag.s
Normal file
@ -0,0 +1,19 @@
|
||||
// By default, the jmp here does not need relaxation (so the 0xeb opdoce can be
|
||||
// used).
|
||||
// However, with -mc-relax-all passed to MC, all jumps are relaxed and we
|
||||
// expect to see a different instruction.
|
||||
|
||||
// RUN: llvm-mc -filetype=obj -mc-relax-all -triple x86_64-pc-linux-gnu %s -o - \
|
||||
// RUN: | llvm-objdump -disassemble - | FileCheck -check-prefix=RELAXALL %s
|
||||
|
||||
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \
|
||||
// RUN: | llvm-objdump -disassemble - | FileCheck %s
|
||||
|
||||
.text
|
||||
foo:
|
||||
mov %rax, %rax
|
||||
jmp foo
|
||||
|
||||
// RELAXALL: 3: e9
|
||||
// CHECK: 3: eb
|
||||
|
Loading…
x
Reference in New Issue
Block a user