blob: bb9ccefda5e95454b7cc83d59978bd4abad97052 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* { dg-do link { target arm_soft_ok_link } } */
/* { dg-skip-if "Feature is -mfloat-abi=soft only" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=soft" } } */
/* { dg-options "-mfloat-abi=soft" } */
int
foo (void)
{
volatile float a;
volatile float b;
volatile float c = a * b + a / b;
return 0;
}
int
bar (void)
{
volatile double a;
volatile double b;
volatile double c = a * b + a / b;
return 0;
}
int
main (void)
{
foo ();
bar ();
return 0;
}
/* { dg-final { scan-symbol "__aeabi_fmul" } } */
/* { dg-final { scan-symbol "__aeabi_dmul" } } */
/* { dg-final { scan-symbol "__aeabi_fdiv" } } */
/* { dg-final { scan-symbol "__aeabi_ddiv" } } */
|