File: xscale-attributes.ll

package info (click to toggle)
llvm-3.0 3.0-10
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 75,412 kB
  • sloc: cpp: 468,043; asm: 109,345; ansic: 13,782; sh: 12,935; ml: 4,716; python: 4,351; perl: 2,096; makefile: 1,905; pascal: 1,578; exp: 389; xml: 283; lisp: 187; csh: 117
file content (31 lines) | stat: -rw-r--r-- 1,057 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
; RUN: llc %s -mtriple=thumbv5-linux-gnueabi -mcpu=xscale -o - | \
; RUN: FileCheck -check-prefix=ASM %s

; RUN: llc %s -mtriple=thumbv5-linux-gnueabi -filetype=obj \
; RUN: -mcpu=xscale -o - | elf-dump --dump-section-data | \
; RUN: FileCheck -check-prefix=OBJ %s

; FIXME: The OBJ test should be a .s to .o test and the ASM test should
; be moved to test/CodeGen/ARM.

define void @foo() nounwind {
entry:
  ret void
}

; ASM:           .eabi_attribute 6, 5
; ASM-NEXT:      .eabi_attribute 8, 1
; ASM-NEXT:      .eabi_attribute 9, 1

; OBJ:           Section 4
; OBJ-NEXT:      'sh_name', 0x0000000c
; OBJ-NEXT:      'sh_type', 0x70000003
; OBJ-NEXT:	   'sh_flags', 0x00000000
; OBJ-NEXT:	   'sh_addr', 0x00000000
; OBJ-NEXT:	   'sh_offset', 0x00000038
; OBJ-NEXT:	   'sh_size', 0x00000020
; OBJ-NEXT:	   'sh_link', 0x00000000
; OBJ-NEXT:	   'sh_info', 0x00000000
; OBJ-NEXT:	   'sh_addralign', 0x00000001
; OBJ-NEXT:	   'sh_entsize', 0x00000000
; OBJ-NEXT:      '_section_data', '411f0000 00616561 62690001 15000000 06050801 09011401 15011703 18011901'