aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/float-1.c
blob: ccfb9c44f6265175c6b2dc1deb3662c00cd47b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-mlittle-endian -masm=normal" } */

float f;
float a() { f = 1.0; return 1.0; }
float b() { f = 2.0; return 2.0; }
float c() { f = 2.0; return 3.0; }
float d() { f = 3.0; return 3.0; }

/* { dg-final { scan-assembler-times "lddw\t%r.,0x3f800000" 2 } } */
/* { dg-final { scan-assembler-times "lddw\t%r.,0x40000000" 3 } } */
/* { dg-final { scan-assembler-times "lddw\t%r.,0x40400000" 3 } } */