summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/store-fp-constant.ll
blob: 80f4e67d0569a8f663f9f6eb8d0846d243a762e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep rodata
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep literal
;
; Check that no FP constants in this testcase ends up in the 
; constant pool.
%G = external global float 


declare void %extfloat(float %F)
declare void %extdouble(double)

implementation

void %testfloatstore() {
        call void %extfloat(float 0x40934999A0000000)
        call void %extdouble(double 0x409349A631F8A090)
	store float 0x402A064C20000000, float* %G
        ret void
}