xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/store-fp-constant.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: rodata
4*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: literal
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker;
7*9880d681SAndroid Build Coastguard Worker; Check that no FP constants in this testcase ends up in the
8*9880d681SAndroid Build Coastguard Worker; constant pool.
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker@G = external global float              ; <float*> [#uses=1]
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Workerdeclare void @extfloat(float)
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Workerdeclare void @extdouble(double)
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Workerdefine void @testfloatstore() {
17*9880d681SAndroid Build Coastguard Worker        call void @extfloat( float 0x40934999A0000000 )
18*9880d681SAndroid Build Coastguard Worker        call void @extdouble( double 0x409349A631F8A090 )
19*9880d681SAndroid Build Coastguard Worker        store float 0x402A064C20000000, float* @G
20*9880d681SAndroid Build Coastguard Worker        ret void
21*9880d681SAndroid Build Coastguard Worker}
22*9880d681SAndroid Build Coastguard Worker
23