File tree Expand file tree Collapse file tree 3 files changed +41
-10
lines changed Expand file tree Collapse file tree 3 files changed +41
-10
lines changed Original file line number Diff line number Diff line change 10
10
#define LLVM_LIBC_TEST_SMALL_H
11
11
12
12
#include "__llvm-libc-common.h"
13
+ #include "llvm-libc-macros/float16-macros.h"
13
14
#include "llvm-libc-macros/test_small-macros.h"
15
+ #include "llvm-libc-types/float128.h"
14
16
15
17
#define MACRO_A 1
16
18
@@ -26,13 +28,21 @@ enum {
26
28
27
29
__BEGIN_C_DECLS
28
30
29
- #ifdef FUNC_A_16
30
31
CONST_FUNC_A void func_a () __NOEXCEPT ;
31
- #endif // FUNC_A_16
32
32
33
- #ifdef FUNC_B_16
34
- CONST_FUNC_B int func_b (int , float ) __NOEXCEPT ;
35
- #endif // FUNC_B_16
33
+ #ifdef LIBC_TYPES_HAS_FLOAT128
34
+ float128 func_b () __NOEXCEPT ;
35
+ #endif // LIBC_TYPES_HAS_FLOAT128
36
+
37
+ #ifdef LIBC_TYPES_HAS_FLOAT16
38
+ _Float16 func_c (int , float ) __NOEXCEPT ;
39
+
40
+ _Float16 func_d (int , float ) __NOEXCEPT ;
41
+ #endif // LIBC_TYPES_HAS_FLOAT16
42
+
43
+ #ifdef LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128
44
+ _Float16 func_e (float128 ) __NOEXCEPT ;
45
+ #endif // LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128
36
46
37
47
extern obj object_1 ;
38
48
extern obj object_2 ;
Original file line number Diff line number Diff line change 10
10
#define LLVM_LIBC_TEST_SMALL_H
11
11
12
12
#include "__llvm-libc-common.h"
13
+ #include "llvm-libc-macros/float16-macros.h"
13
14
#include "llvm-libc-macros/test_small-macros.h"
15
+ #include "llvm-libc-types/float128.h"
14
16
15
17
%%public_api()
16
18
Original file line number Diff line number Diff line change @@ -23,16 +23,35 @@ functions:
23
23
arguments : []
24
24
standards :
25
25
- stdc
26
- guard : FUNC_A_16
27
26
attributes :
28
27
- CONST_FUNC_A
29
28
- name : func_b
30
- return_type : int
29
+ return_type : float128
30
+ arguments : []
31
+ standards :
32
+ - stdc
33
+ guard : LIBC_TYPES_HAS_FLOAT128
34
+ - name : func_c
35
+ return_type : _Float16
31
36
arguments :
32
37
- type : int
33
38
- type : float
34
39
standards :
35
40
- stdc
36
- guard : FUNC_B_16
37
- attributes :
38
- - CONST_FUNC_B
41
+ guard : LIBC_TYPES_HAS_FLOAT16
42
+ - name : func_d
43
+ return_type : _Float16
44
+ arguments :
45
+ - type : int
46
+ - type : float
47
+ standards :
48
+ - stdc
49
+ guard : LIBC_TYPES_HAS_FLOAT16
50
+ - name : func_e
51
+ return_type : _Float16
52
+ arguments :
53
+ - type : float128
54
+ standards :
55
+ - stdc
56
+ guard : LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128
57
+
You can’t perform that action at this time.
0 commit comments