blob: 42191b1360e53342e240b11c39a1618adcd9fe21 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
/* Functional tests for the "target" attribute and pragma. */
/* { dg-do compile } */
/* { dg-require-effective-target target_attribute } */
/* { dg-options "-msoft-float" } */
#pragma GCC target("hard-float")
float p1(float f)
{
return 2 * f;
}
#pragma GCC reset_options
#pragma GCC target("soft-float")
float p0(float f)
{
return 2 * f;
}
float p0b(float f)
{
return 2 * f;
}
#pragma GCC reset_options
__attribute__ ((target("hard-float")))
float a1(float f)
{
return 2 * f;
}
__attribute__ ((target("hard-float")))
float a1b(float f)
{
return 2 * f;
}
__attribute__ ((target("hard-float")))
float a1c(float f)
{
return 2 * f;
}
__attribute__ ((target("hard-float")))
float a1d(float f)
{
return 2 * f;
}
__attribute__ ((target("soft-float")))
float a0(float f)
{
return 2 * f;
}
__attribute__ ((target("soft-float")))
float a0b(float f)
{
return 2 * f;
}
__attribute__ ((target("soft-float")))
float a0c(float f)
{
return 2 * f;
}
__attribute__ ((target("soft-float")))
float a0d(float f)
{
return 2 * f;
}
__attribute__ ((target("soft-float")))
float a0e(float f)
{
return 2 * f;
}
__attribute__ ((target("soft-float")))
float a0f(float f)
{
return 2 * f;
}
__attribute__ ((target("soft-float")))
float a0g(float f)
{
return 2 * f;
}
__attribute__ ((target("soft-float")))
float a0h(float f)
{
return 2 * f;
}
/* { dg-final { scan-assembler-times "\tste\t%f" 5 } } */
|