Kai Nacke 427fb35192 [PPC] Opaque pointer migration, part 1.
The LIT test cases were migrated with the script provided by
Nikita Popov. Due to the size of the change it is split into
several parts.

Reviewed By: nemanja, amyk, nikic, PowerPC

Differential Revision: https://reviews.llvm.org/D135470
2022-10-11 17:24:06 +00:00

22 lines
623 B
LLVM

; RUN: llc -filetype=obj -mtriple=powerpc-ibm-aix-xcoff %s -o - | \
; RUN: llvm-readobj --auxiliary-header - | FileCheck %s
; CHECK: AuxiliaryHeader {
; CHECK-NEXT: Magic: 0x0
; CHECK-NEXT: Version: 0x2
; CHECK-NEXT: Size of .text section: 0x24
; CHECK-NEXT: Size of .data section: 0x14
; CHECK-NEXT: Size of .bss section: 0x0
; CHECK-NEXT: Entry point address: 0x0
; CHECK-NEXT: .text section start address: 0x0
; CHECK-NEXT: .data section start address: 0x24
; CHECK-NEXT: }
@var = hidden global i32 0, align 4
define hidden i32 @fun() {
entry:
%0 = load i32, ptr @var, align 4
ret i32 %0
}