gcc/testsuite/gcc.target/bpf/float-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-mlittle-endian -masm=normal" } */ |
| 3 | |
| 4 | float f; |
| 5 | float a() { f = 1.0; return 1.0; } |
| 6 | float b() { f = 2.0; return 2.0; } |
| 7 | float c() { f = 2.0; return 3.0; } |
| 8 | float d() { f = 3.0; return 3.0; } |
| 9 | |
| 10 | /* { dg-final { scan-assembler-times "lddw\t%r.,0x3f800000" 2 } } */ |
| 11 | /* { dg-final { scan-assembler-times "lddw\t%r.,0x40000000" 3 } } */ |
| 12 | /* { dg-final { scan-assembler-times "lddw\t%r.,0x40400000" 3 } } */ |