xref: /llvm-project/llvm/test/CodeGen/SystemZ/fp-const-04.ll (revision 9ca9fee6e8440d31b121773c9aa9513296a3ca26)
1; Test loads of 64-bit floating-point constants that could be represented
2; as 32-bit constants, but should not be.
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 double @f1() {
8; CHECK-LABEL: f1:
9; CHECK: larl [[REGISTER:%r[1-5]]], {{.*}}
10; CHECK: ld %f0, 0([[REGISTER]])
11; CHECK: br %r14
12;
13; CONST: .quad	0x3ff0000020000000              # double 1.0000001192092896
14  ret double 0x3ff0000020000000
15}
16