File: aix-xcoff-basic.ll

package info (click to toggle)
llvm-toolchain-9 1%3A9.0.1-16
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 882,436 kB
  • sloc: cpp: 4,167,636; ansic: 714,256; asm: 457,610; python: 155,927; objc: 65,094; sh: 42,856; lisp: 26,908; perl: 7,786; pascal: 7,722; makefile: 6,881; ml: 5,581; awk: 3,648; cs: 2,027; xml: 888; javascript: 381; ruby: 156
file content (37 lines) | stat: -rw-r--r-- 1,312 bytes parent folder | download | duplicates (2)
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 -mtriple powerpc-ibm-aix-xcoff -filetype=obj -o %t.o < %s
; RUN: llvm-readobj --file-headers %t.o | FileCheck %s

; RUN: not llc -mtriple powerpc64-ibm-aix-xcoff -filetype=obj < %s 2>&1 | \
; RUN: FileCheck --check-prefix=64BIT %s

; RUN: llc -mtriple powerpc-ibm-aix-xcoff < %s | \
; RUN: FileCheck --check-prefix=ASM %s

; RUN: llc -mtriple powerpc64-ibm-aix-xcoff < %s | \
; RUN: FileCheck --check-prefix=ASM %s

target datalayout = "E-m:e-p:32:32-i64:64-n32"
target triple = "powerpc-unknown-aix"

; NOTE: The object file output and the assembly file output do not describe the
;       same abstract XCOFF content due to the limited amount of functionality
;       implemented.

; CHECK:      Format: aixcoff-rs6000
; CHECK-NEXT: Arch: powerpc
; CHECK-NEXT: AddressSize: 32bit
; CHECK-NEXT: FileHeader {
; CHECK-NEXT:   Magic: 0x1DF
; CHECK-NEXT:   NumberOfSections: 0
; CHECK-NEXT:   TimeStamp: None (0x0)
; CHECK-NEXT:   SymbolTableOffset: 0x0
; CHECK-NEXT:   SymbolTableEntries: 0
; CHECK-NEXT:   OptionalHeaderSize: 0x0
; CHECK-NEXT:   Flags: 0x0
; CHECK-NEXT: }

; 64BIT: LLVM ERROR: 64-bit XCOFF object files are not supported yet.

; The csect does not need to be present, but LLVM's default behavior when
; emitting asm is to start the file with the .text section.
; ASM: .csect .text[PR]