[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / big-endian-thumb-fixup.s
blob4e81469fe489b0d624ccb3bd31d95d9ef8f38d88
1 // RUN: llvm-mc -triple=armeb-eabi -mattr v7,vfp2 -filetype=obj < %s | llvm-objdump -s - | FileCheck %s
3 .syntax unified
4 .text
5 .align 2
6 .code 16
7 .thumb_func
9 @ARM::fixup_arm_thumb_bl
10 .section s_thumb_bl,"ax",%progbits
11 // CHECK-LABEL: Contents of section s_thumb_bl
12 // CHECK: 0000 f000f801
13 bl thumb_bl_label
14 nop
15 thumb_bl_label:
17 @ARM::fixup_arm_thumb_blx
18 // CHECK-LABEL: Contents of section s_thumb_bl
19 // CHECK: 0000 f000e802
20 .section s_thumb_blx,"ax",%progbits
21 blx thumb_blx_label+8
22 thumb_blx_label:
24 @ARM::fixup_arm_thumb_br
25 .section s_thumb_br,"ax",%progbits
26 // CHECK-LABEL: Contents of section s_thumb_br
27 // CHECK: 0000 e000bf00
28 b thumb_br_label
29 nop
30 thumb_br_label:
32 @ARM::fixup_arm_thumb_bcc
33 .section s_thumb_bcc,"ax",%progbits
34 // CHECK-LABEL: Contents of section s_thumb_bcc
35 // CHECK: 0000 d000bf00
36 beq thumb_bcc_label
37 nop
38 thumb_bcc_label:
40 @ARM::fixup_arm_thumb_cb
41 .section s_thumb_cb,"ax",%progbits
42 // CHECK-LABEL: Contents of section s_thumb_cb
43 // CHECK: 0000 b100bf00
44 cbz r0, thumb_cb_label
45 nop
46 thumb_cb_label:
48 @ARM::fixup_arm_thumb_cp
49 .section s_thumb_cp,"ax",%progbits
50 // CHECK-LABEL: Contents of section s_thumb_cp
51 // CHECK: 0000 4801bf00
52 ldr r0, =thumb_cp_label
53 nop
54 nop
55 thumb_cp_label:
57 @ARM::fixup_arm_thumb_adr_pcrel_10
58 .section s_thumb_adr_pcrel_10,"ax",%progbits
59 // CHECK-LABEL: Contents of section s_thumb_adr_pcrel_10
60 // CHECK: 0000 a000bf00
61 adr r0, thumb_adr_pcrel_10_label
62 nop
63 thumb_adr_pcrel_10_label: