2007-04-16 17:36:08 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep rodata
|
2006-12-12 03:59:46 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep literal
|
2005-01-08 05:44:07 +00:00
|
|
|
;
|
|
|
|
; 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() {
|
2007-09-05 17:50:36 +00:00
|
|
|
call void %extfloat(float 0x40934999A0000000)
|
|
|
|
call void %extdouble(double 0x409349A631F8A090)
|
|
|
|
store float 0x402A064C20000000, float* %G
|
2005-01-08 05:44:07 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|