56 lines · plain
1; RUN: llc -verify-machineinstrs -mcpu=ppc64 -O0 < %s | FileCheck %s2 3target 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"4target triple = "powerpc64-unknown-linux-gnu"5 6define { ppc_fp128, ppc_fp128 } @foo() nounwind {7entry:8 %retval = alloca { ppc_fp128, ppc_fp128 }, align 169 %x = alloca { ppc_fp128, ppc_fp128 }, align 1610 %real = getelementptr inbounds { ppc_fp128, ppc_fp128 }, ptr %x, i32 0, i32 011 %imag = getelementptr inbounds { ppc_fp128, ppc_fp128 }, ptr %x, i32 0, i32 112 store ppc_fp128 0xM400C0000000000300000000010000000, ptr %real13 store ppc_fp128 0xMC00547AE147AE1483CA47AE147AE147A, ptr %imag14 %x.realp = getelementptr inbounds { ppc_fp128, ppc_fp128 }, ptr %x, i32 0, i32 015 %x.real = load ppc_fp128, ptr %x.realp16 %x.imagp = getelementptr inbounds { ppc_fp128, ppc_fp128 }, ptr %x, i32 0, i32 117 %x.imag = load ppc_fp128, ptr %x.imagp18 %real1 = getelementptr inbounds { ppc_fp128, ppc_fp128 }, ptr %retval, i32 0, i32 019 %imag2 = getelementptr inbounds { ppc_fp128, ppc_fp128 }, ptr %retval, i32 0, i32 120 store ppc_fp128 %x.real, ptr %real121 store ppc_fp128 %x.imag, ptr %imag222 %0 = load { ppc_fp128, ppc_fp128 }, ptr %retval23 ret { ppc_fp128, ppc_fp128 } %024}25 26; CHECK-LABEL: foo:27; CHECK-DAG: lfd 128; CHECK-DAG: lfd 229; CHECK-DAG: lfd 330; CHECK-DAG: lfd 431 32define { float, float } @oof() nounwind {33entry:34 %retval = alloca { float, float }, align 435 %x = alloca { float, float }, align 436 %real = getelementptr inbounds { float, float }, ptr %x, i32 0, i32 037 %imag = getelementptr inbounds { float, float }, ptr %x, i32 0, i32 138 store float 3.500000e+00, ptr %real39 store float 0xC00547AE20000000, ptr %imag40 %x.realp = getelementptr inbounds { float, float }, ptr %x, i32 0, i32 041 %x.real = load float, ptr %x.realp42 %x.imagp = getelementptr inbounds { float, float }, ptr %x, i32 0, i32 143 %x.imag = load float, ptr %x.imagp44 %real1 = getelementptr inbounds { float, float }, ptr %retval, i32 0, i32 045 %imag2 = getelementptr inbounds { float, float }, ptr %retval, i32 0, i32 146 store float %x.real, ptr %real147 store float %x.imag, ptr %imag248 %0 = load { float, float }, ptr %retval49 ret { float, float } %050}51 52; CHECK-LABEL: oof:53; CHECK-DAG: lfs 254; CHECK-DAG: lfs 155 56