xref: /aosp_15_r20/external/llvm/test/CodeGen/SystemZ/fp-const-05.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; Test loads of 128-bit floating-point constants that can be represented
2*9880d681SAndroid Build Coastguard Worker; as 32-bit constants.
3*9880d681SAndroid Build Coastguard Worker;
4*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
5*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CONST
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine void @f1(fp128 *%x) {
8*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: f1:
9*9880d681SAndroid Build Coastguard Worker; CHECK: larl [[REGISTER:%r[1-5]+]], {{.*}}
10*9880d681SAndroid Build Coastguard Worker; CHECK: lxeb %f0, 0([[REGISTER]])
11*9880d681SAndroid Build Coastguard Worker; CHECK: std %f0, 0(%r2)
12*9880d681SAndroid Build Coastguard Worker; CHECK: std %f2, 8(%r2)
13*9880d681SAndroid Build Coastguard Worker; CHECK: br %r14
14*9880d681SAndroid Build Coastguard Worker;
15*9880d681SAndroid Build Coastguard Worker; CONST: .long 1065353217
16*9880d681SAndroid Build Coastguard Worker  store fp128 0xL00000000000000003fff000002000000, fp128 *%x
17*9880d681SAndroid Build Coastguard Worker  ret void
18*9880d681SAndroid Build Coastguard Worker}
19