hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
// SPDX-License-Identifier: BSD-2-Clause
/*
 * Copyright (c) 2015, Linaro Limited
 * All rights reserved.
 */
 
#include "test_float_subj.h"
 
double test_float_dadd(double a, double b)
{
   return a + b;
}
 
double test_float_ddiv(double n, double d)
{
   return n / d;
}
 
double test_float_dmul(double a, double b)
{
   return a * b;
}
 
double test_float_drsub(double a, double b)
{
   return b - a;
}
 
double test_float_dsub(double a, double b)
{
   return a - b;
}
 
int test_float_dcmpeq(double a, double b)
{
   return a == b;
}
 
int test_float_dcmplt(double a, double b)
{
   return a < b;
}
 
int test_float_dcmple(double a, double b)
{
   return a <= b;
}
 
int test_float_dcmpge(double a, double b)
{
   return a >= b;
}
 
int test_float_dcmpgt(double a, double b)
{
   return a > b;
}
 
float test_float_fadd(float a, float b)
{
   return a + b;
}
 
float test_float_fdiv(float n, float d)
{
   return n / d;
}
 
float test_float_fmul(float a, float b)
{
   return a * b;
}
 
float test_float_frsub(float a, float b)
{
   return b - a;
}
 
float test_float_fsub(float a, float b)
{
   return a - b;
}
 
int test_float_fcmpeq(float a, float b)
{
   return a == b;
}
 
int test_float_fcmplt(float a, float b)
{
   return a < b;
}
 
int test_float_fcmple(float a, float b)
{
   return a <= b;
}
 
int test_float_fcmpge(float a, float b)
{
   return a >= b;
}
 
int test_float_fcmpgt(float a, float b)
{
   return a > b;
}
 
int test_float_d2iz(double a)
{
   return a;
}
 
unsigned test_float_d2uiz(double a)
{
   return a;
}
 
long long test_float_d2lz(double a)
{
   return a;
}
 
unsigned long long test_float_d2ulz(double a)
{
   return a;
}
 
int test_float_f2iz(float a)
{
   return a;
}
 
unsigned test_float_f2uiz(float a)
{
   return a;
}
 
long long test_float_f2lz(float a)
{
   return a;
}
 
unsigned long long test_float_f2ulz(float a)
{
   return a;
}
 
float test_float_d2f(double a)
{
   return a;
}
 
double test_float_f2d(float a)
{
   return a;
}
 
double test_float_i2d(int a)
{
   return a;
}
 
double test_float_ui2d(unsigned a)
{
   return a;
}
 
double test_float_l2d(long long a)
{
   return a;
}
 
double test_float_ul2d(unsigned long long a)
{
   return a;
}
 
float test_float_i2f(int a)
{
   return a;
}
 
float test_float_ui2f(unsigned a)
{
   return a;
}
 
float test_float_l2f(long long a)
{
   return a;
}
 
float test_float_ul2f(unsigned long long a)
{
   return a;
}