blob: d81e3db91f487ecfd879b6741f65e1944fbdf9e9 [file] [log] [blame]
Ulrich Weigand9e3577f2013-05-06 16:17:29 +00001; Test loads of 128-bit floating-point constants that can be represented
2; as 32-bit constants.
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: lxeb %f0, 0([[REGISTER]])
11; CHECK: std %f0, 0(%r2)
12; CHECK: std %f2, 8(%r2)
13; CHECK: br %r14
14;
15; CONST: .long 1065353217
16 store fp128 0xL00000000000000003fff000002000000, fp128 *%x
17 ret void
18}