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