[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / MSP430 / reloc.s
blob61a25f494735e30085bbc04947da645020232384
1 ; RUN: llvm-mc -triple msp430 -show-encoding < %s | FileCheck %s
3 mov disp+2(r8), r15
4 ; CHECK: mov disp+2(r8), r15 ; encoding: [0x1f,0x48,A,A]
5 ; CHECK: ; fixup A - offset: 2, value: disp+2, kind: fixup_16_byte
7 mov disp+2, r15
8 ; CHECK: mov disp+2, r15 ; encoding: [0x1f,0x40,A,A]
9 ; CHECK: ; fixup A - offset: 2, value: disp+2, kind: fixup_16_pcrel_byte
11 mov &disp+2, r15
12 ; CHECK: mov &disp+2, r15 ; encoding: [0x1f,0x42,A,A]
13 ; CHECK: ; fixup A - offset: 2, value: disp+2, kind: fixup_16
15 mov disp, disp+2
16 ; CHECK: mov disp, disp+2 ; encoding: [0x90,0x40,A,A,B,B]
17 ; CHECK: ; fixup A - offset: 2, value: disp, kind: fixup_16_pcrel_byte
18 ; CHECK: ; fixup B - offset: 4, value: disp+2, kind: fixup_16_pcrel_byte
20 jmp foo
21 ; CHECK: jmp foo ; encoding: [A,0b001111AA]
22 ; CHECK: ; fixup A - offset: 0, value: foo, kind: fixup_10_pcrel
24 ; RUN: llvm-mc -filetype=obj -triple msp430 < %s | llvm-readobj -r \
25 ; RUN: | FileCheck -check-prefix=RELOC %s
26 .short _ctype+3
27 ; RELOC: R_MSP430_16_BYTE _ctype 0x3