llvm-project/llvm/test/CodeGen/PowerPC/aix-cc-altivec.ll
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

30 lines
746 B
LLVM

; RUN: llc < %s -mtriple powerpc64-ibm-aix-xcoff -vec-extabi -mcpu=pwr8 2>&1
; | FileCheck %s --check-prefix=ASM64
; RUN: llc < %s -mtriple powerpc-ibm-aix-xcoff -vec-extabi -mcpu=pwr8 2>&1
; | FileCheck %s --check-prefix=ASM32
@f1 = global float 0.000000e+00, align 4
define void @call_test_vararg() {
entry:
%0 = load float, ptr @f1, align 4
%conv = fpext float %0 to double
call void (i32, ...) @test_vararg(i32 42, double %conv, float %0)
ret void
}
declare void @test_vararg(i32, ...)
; ASM64: xscvdpspn
; ASM64: mffprd
; ASM64: xxsldwi
; ASM64: mffprwz
; ASM32: lfsx
; ASM32: fmr
; ASM32: stfs
; ASM32: lwz
; ASM32: stfd