1 ; RUN: llc -verify-machineinstrs -mcpu=ppc64 -O0 < %s | FileCheck %s
3 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
4 target triple = "powerpc64-unknown-linux-gnu"
6 define { ppc_fp128, ppc_fp128 } @foo() nounwind {
8 %retval = alloca { ppc_fp128, ppc_fp128 }, align 16
9 %x = alloca { ppc_fp128, ppc_fp128 }, align 16
10 %real = getelementptr inbounds { ppc_fp128, ppc_fp128 }, { ppc_fp128, ppc_fp128 }* %x, i32 0, i32 0
11 %imag = getelementptr inbounds { ppc_fp128, ppc_fp128 }, { ppc_fp128, ppc_fp128 }* %x, i32 0, i32 1
12 store ppc_fp128 0xM400C0000000000300000000010000000, ppc_fp128* %real
13 store ppc_fp128 0xMC00547AE147AE1483CA47AE147AE147A, ppc_fp128* %imag
14 %x.realp = getelementptr inbounds { ppc_fp128, ppc_fp128 }, { ppc_fp128, ppc_fp128 }* %x, i32 0, i32 0
15 %x.real = load ppc_fp128, ppc_fp128* %x.realp
16 %x.imagp = getelementptr inbounds { ppc_fp128, ppc_fp128 }, { ppc_fp128, ppc_fp128 }* %x, i32 0, i32 1
17 %x.imag = load ppc_fp128, ppc_fp128* %x.imagp
18 %real1 = getelementptr inbounds { ppc_fp128, ppc_fp128 }, { ppc_fp128, ppc_fp128 }* %retval, i32 0, i32 0
19 %imag2 = getelementptr inbounds { ppc_fp128, ppc_fp128 }, { ppc_fp128, ppc_fp128 }* %retval, i32 0, i32 1
20 store ppc_fp128 %x.real, ppc_fp128* %real1
21 store ppc_fp128 %x.imag, ppc_fp128* %imag2
22 %0 = load { ppc_fp128, ppc_fp128 }, { ppc_fp128, ppc_fp128 }* %retval
23 ret { ppc_fp128, ppc_fp128 } %0
32 define { float, float } @oof() nounwind {
34 %retval = alloca { float, float }, align 4
35 %x = alloca { float, float }, align 4
36 %real = getelementptr inbounds { float, float }, { float, float }* %x, i32 0, i32 0
37 %imag = getelementptr inbounds { float, float }, { float, float }* %x, i32 0, i32 1
38 store float 3.500000e+00, float* %real
39 store float 0xC00547AE20000000, float* %imag
40 %x.realp = getelementptr inbounds { float, float }, { float, float }* %x, i32 0, i32 0
41 %x.real = load float, float* %x.realp
42 %x.imagp = getelementptr inbounds { float, float }, { float, float }* %x, i32 0, i32 1
43 %x.imag = load float, float* %x.imagp
44 %real1 = getelementptr inbounds { float, float }, { float, float }* %retval, i32 0, i32 0
45 %imag2 = getelementptr inbounds { float, float }, { float, float }* %retval, i32 0, i32 1
46 store float %x.real, float* %real1
47 store float %x.imag, float* %imag2
48 %0 = load { float, float }, { float, float }* %retval
49 ret { float, float } %0