xref: /aosp_15_r20/external/llvm/test/CodeGen/SystemZ/fp-const-03.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; Test loads of 32-bit floating-point constants.
2*9880d681SAndroid Build Coastguard Worker;
3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
4*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CONST
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine float @f1() {
7*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: f1:
8*9880d681SAndroid Build Coastguard Worker; CHECK: larl [[REGISTER:%r[1-5]]], {{.*}}
9*9880d681SAndroid Build Coastguard Worker; CHECK: le %f0, 0([[REGISTER]])
10*9880d681SAndroid Build Coastguard Worker; CHECK: br %r14
11*9880d681SAndroid Build Coastguard Worker;
12*9880d681SAndroid Build Coastguard Worker; CONST: .long 1065353217
13*9880d681SAndroid Build Coastguard Worker  ret float 0x3ff0000020000000
14*9880d681SAndroid Build Coastguard Worker}
15