xref: /aosp_15_r20/external/llvm/test/MC/ARM/2010-11-30-reloc-movt.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc  %s -triple=armv7-linux-gnueabi -filetype=obj -o - | \
2*9880d681SAndroid Build Coastguard Worker// RUN:    llvm-readobj -s -sr -sd | FileCheck  %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker	.syntax unified
5*9880d681SAndroid Build Coastguard Worker	.eabi_attribute	6, 10
6*9880d681SAndroid Build Coastguard Worker	.eabi_attribute	8, 1
7*9880d681SAndroid Build Coastguard Worker	.eabi_attribute	9, 2
8*9880d681SAndroid Build Coastguard Worker	.fpu	neon
9*9880d681SAndroid Build Coastguard Worker	.eabi_attribute	20, 1
10*9880d681SAndroid Build Coastguard Worker	.eabi_attribute	21, 1
11*9880d681SAndroid Build Coastguard Worker	.eabi_attribute	23, 3
12*9880d681SAndroid Build Coastguard Worker	.eabi_attribute	24, 1
13*9880d681SAndroid Build Coastguard Worker	.eabi_attribute	25, 1
14*9880d681SAndroid Build Coastguard Worker	.file	"/home/espindola/llvm/llvm/test/CodeGen/ARM/2010-11-30-reloc-movt.ll"
15*9880d681SAndroid Build Coastguard Worker	.text
16*9880d681SAndroid Build Coastguard Worker	.globl	barf
17*9880d681SAndroid Build Coastguard Worker	.align	2
18*9880d681SAndroid Build Coastguard Worker	.type	barf,%function
19*9880d681SAndroid Build Coastguard Workerbarf:                                   @ @barf
20*9880d681SAndroid Build Coastguard Worker@ BB#0:                                 @ %entry
21*9880d681SAndroid Build Coastguard Worker	push	{r11, lr}
22*9880d681SAndroid Build Coastguard Worker	movw	r0, :lower16:a
23*9880d681SAndroid Build Coastguard Worker	movt	r0, :upper16:a
24*9880d681SAndroid Build Coastguard Worker	bl	foo
25*9880d681SAndroid Build Coastguard Worker	pop	{r11, pc}
26*9880d681SAndroid Build Coastguard Worker.Ltmp0:
27*9880d681SAndroid Build Coastguard Worker	.size	barf, .Ltmp0-barf
28*9880d681SAndroid Build Coastguard Worker
29*9880d681SAndroid Build Coastguard Worker
30*9880d681SAndroid Build Coastguard Worker
31*9880d681SAndroid Build Coastguard Worker// CHECK:        Section {
32*9880d681SAndroid Build Coastguard Worker// CHECK:          Name: .text
33*9880d681SAndroid Build Coastguard Worker// CHECK:          SectionData (
34*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT:       0000: 00482DE9 000000E3 000040E3 FEFFFFEB
35*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT:       0010: 0088BDE8
36*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT:     )
37*9880d681SAndroid Build Coastguard Worker// CHECK:          Name: .rel.text
38*9880d681SAndroid Build Coastguard Worker// CHECK:          Relocations [
39*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT:       0x4 R_ARM_MOVW_ABS_NC a
40*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT:       0x8 R_ARM_MOVT_ABS
41*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT:       0xC R_ARM_CALL foo
42*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT:     ]
43