[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / X86 / x86-branch-relaxation.s
blob870374e685fd535673ecb27c2b1b8a21ce050dff
1 # RUN: llvm-mc -filetype=obj -triple=i386-unknown-unknown %s -o %t
2 # RUN: llvm-objdump -r -D -section .text.bar -triple i386-unknown-unknown-code16 %t | FileCheck --check-prefix=CHECK16 %s
3 # RUN: llvm-objdump -r -D -section .text.baz -triple i386-unknown-unknown %t | FileCheck --check-prefix=CHECK32 %s
4 .text
5 .section .text.foo,"",@progbits
7 .code16
8 .globl foo
9 foo:
10 nop
12 .section .text.bar,"",@progbits
13 .globl bar16
14 bar16:
15 jmp foo
17 .section .text.baz,"",@progbits
18 .code32
19 .globl baz32
20 baz32:
21 jmp foo
26 // CHECK16-LABEL: bar16
27 // CHECK16-NEXT: e9 fe ff jmp -2 <bar16+0x1>
28 // CHECK32-LABEL: baz32
29 // CHECK32-NEXT: e9 fc ff ff ff jmp -4 <baz32+0x1>