blob: 70cb046600bc32d6caac14f927793732bd100815 [file] [log] [blame]
Tanya Lattner632e88a2008-02-21 07:42:26 +00001; RUN: llvm-as < %s | llc -march=x86 | not grep rodata
2; RUN: llvm-as < %s | llc -march=x86 | not grep literal
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003;
4; Check that no FP constants in this testcase ends up in the
5; constant pool.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006
Tanya Lattner632e88a2008-02-21 07:42:26 +00007@G = external global float ; <float*> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008
Tanya Lattner632e88a2008-02-21 07:42:26 +00009declare void @extfloat(float)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010
Tanya Lattner632e88a2008-02-21 07:42:26 +000011declare void @extdouble(double)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012
Tanya Lattner632e88a2008-02-21 07:42:26 +000013define void @testfloatstore() {
14 call void @extfloat( float 0x40934999A0000000 )
15 call void @extdouble( double 0x409349A631F8A090 )
16 store float 0x402A064C20000000, float* @G
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017 ret void
18}
19