1; Test loads of floating-point zero.
2;
3; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
4
5; Test f32.
6define float @f1() {
7; CHECK-LABEL: f1:
8; CHECK: lzer %f0
9; CHECK: br %r14
10  ret float 0.0
11}
12
13; Test f64.
14define double @f2() {
15; CHECK-LABEL: f2:
16; CHECK: lzdr %f0
17; CHECK: br %r14
18  ret double 0.0
19}
20
21; Test f128.
22define void @f3(fp128 *%x) {
23; CHECK-LABEL: f3:
24; CHECK: lzxr %f0
25; CHECK: std %f0, 0(%r2)
26; CHECK: std %f2, 8(%r2)
27; CHECK: br %r14
28  store fp128 0xL00000000000000000000000000000000, fp128 *%x
29  ret void
30}
31