27 lines · plain
1; RUN: llc -O2 -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s2 3target datalayout = "E-m:e-p:32:32-i64:64-n32"4target triple = "powerpc-buildroot-linux-gnu"5 6@x = global ppc_fp128 0xM3FF00000000000000000000000000000, align 167@.str = private unnamed_addr constant [9 x i8] c"%Lf %Lf\0A\00", align 18 9define void @foo() #0 {10entry:11 %0 = load ppc_fp128, ptr @x, align 1612 %call = tail call i32 (ptr, ...) @printf(ptr @.str, ppc_fp128 %0, ppc_fp128 %0)13 ret void14}15; Do not put second argument of function in r8 register, because there is no enough registers16; left for long double type (4 registers in soft float mode). Instead in r8 register this17; argument put on stack.18; CHECK-NOT: mr 8, 419; CHECK: stw 6, 16(1)20; CHECK: stw 7, 20(1)21; CHECK: stw 5, 12(1)22; CHECK: stw 4, 8(1)23 24declare i32 @printf(ptr nocapture readonly, ...)25 26attributes #0 = { "use-soft-float"="true" }27