File: 2010-10-19-mc-elf-objheader.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 (37 lines) | stat: -rw-r--r-- 1,404 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
32
33
34
35
36
37
; RUN: llc  %s -mtriple=arm-linux-gnueabi -filetype=obj -o - | \
; RUN:    elf-dump --dump-section-data | FileCheck  -check-prefix=BASIC %s 
; RUN: llc  %s -mtriple=armv7-linux-gnueabi -march=arm -mcpu=cortex-a8 \
; RUN:    -mattr=-neon,-vfp3,+vfp2 \
; RUN:    -arm-reserve-r9 -filetype=obj -o - | \
; RUN:    elf-dump --dump-section-data | FileCheck  -check-prefix=CORTEXA8 %s


; This tests that the extpected ARM attributes are emitted.
;
; BASIC:        .ARM.attributes
; BASIC-NEXT:         0x70000003
; BASIC-NEXT:         0x00000000
; BASIC-NEXT:         0x00000000
; BASIC-NEXT:         0x0000003c
; BASIC-NEXT:         0x00000020
; BASIC-NEXT:         0x00000000
; BASIC-NEXT:         0x00000000
; BASIC-NEXT:         0x00000001
; BASIC-NEXT:         0x00000000
; BASIC-NEXT:         '411f0000 00616561 62690001 15000000 06020801 09011401 15011703 18011901'

; CORTEXA8:        .ARM.attributes
; CORTEXA8-NEXT:         0x70000003
; CORTEXA8-NEXT:         0x00000000
; CORTEXA8-NEXT:         0x00000000
; CORTEXA8-NEXT:         0x0000003c
; CORTEXA8-NEXT:         0x0000002f
; CORTEXA8-NEXT:         0x00000000
; CORTEXA8-NEXT:         0x00000000
; CORTEXA8-NEXT:         0x00000001
; CORTEXA8-NEXT:         0x00000000
; CORTEXA8-NEXT:         '412e0000 00616561 62690001 24000000 05434f52 5445582d 41380006 0a074108 0109020a 02140115 01170318 011901'

define i32 @f(i64 %z) {
       ret i32 0
}