blob: 0c7d726e9d09b1d779066b21ee1e1cd2b14033bc [file] [log] [blame]
Ulrich Weigand9e3577f2013-05-06 16:17:29 +00001; Test loads of 128-bit floating-point constants in which the low bit of
2; the significand is set.
3;
4; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
5; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CONST
6
7define void @f1(fp128 *%x) {
Stephen Lind24ab202013-07-14 06:24:09 +00008; CHECK-LABEL: f1:
Ulrich Weigand9e3577f2013-05-06 16:17:29 +00009; CHECK: larl [[REGISTER:%r[1-5]+]], {{.*}}
10; CHECK: ld %f0, 0([[REGISTER]])
11; CHECK: ld %f2, 8([[REGISTER]])
12; CHECK: std %f0, 0(%r2)
13; CHECK: std %f2, 8(%r2)
14; CHECK: br %r14
15;
16; CONST: .quad 4611404543450677248
17; CONST: .quad 1
18 store fp128 0xL00000000000000013fff000000000000, fp128 *%x
19 ret void
20}