1; RUN: llc -O2 -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s
2
3target datalayout = "E-m:e-p:32:32-i64:64-n32"
4target triple = "powerpc-buildroot-linux-gnu"
5
6@.str = private unnamed_addr constant [5 x i8] c"%Lf\0A\00", align 1
7
8define i32 @main() #0 {
9entry:
10  %call = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), ppc_fp128 0xM3FF00000000000000000000000000000)
11  ret i32 0
12}
13
14; First available register for long double argument is r4, so put
15; Hi part in r4/r5, Lo part in r6/r7 (do not switch Hi/Lo parts)
16; CHECK: lis 4, 16368
17; CHECK-NOT: lis 6, 16368
18; CHECK: li 5, 0
19; CHECK: li 7, 0
20
21declare i32 @printf(i8* nocapture readonly, ...)
22
23attributes #0 = { "use-soft-float"="true" }
24
25