Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep rodata |
| 2 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep literal |
| 3 | ; |
| 4 | ; Check that no FP constants in this testcase ends up in the |
| 5 | ; constant pool. |
| 6 | %G = external global float |
| 7 | |
| 8 | |
| 9 | declare void %extfloat(float %F) |
| 10 | declare void %extdouble(double) |
| 11 | |
| 12 | implementation |
| 13 | |
| 14 | void %testfloatstore() { |
Dale Johannesen | d727a2b | 2007-09-05 17:50:36 +0000 | [diff] [blame] | 15 | call void %extfloat(float 0x40934999A0000000) |
| 16 | call void %extdouble(double 0x409349A631F8A090) |
| 17 | store float 0x402A064C20000000, float* %G |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 18 | ret void |
| 19 | } |
| 20 | |