blob: e58f54f618aeab5b1f794996bf43c8f492b644f5 [file] [log] [blame]
Miao Wang0391e512020-02-10 14:52:24 -08001// Copyright (C) 2020 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15cc_library_headers {
16 name: "fp16_headers",
17 export_include_dirs: ["include"],
18 vendor_available: true,
19 sdk_version: "current",
20}
21
22cc_defaults {
23 name: "fp16_tests_default",
24 sdk_version: "current",
25 srcs: [
26 "test/tables.cc",
27 ],
28 header_libs: [
29 "fp16_headers",
30 ],
31 stl: "libc++_static",
32 static_libs: [
33 "libgmock_ndk",
34 ]
35}
36
37cc_test {
38 name: "Fp16AltFromFp32ValueTests",
39 defaults: ["fp16_tests_default"],
40 srcs: [
41 "test/alt-from-fp32-value.cc",
42 ],
43 test_suites: [
44 "general-tests",
45 ],
46}
47
48cc_test {
49 name: "Fp16AltToFp32BitsTests",
50 defaults: ["fp16_tests_default"],
51 srcs: [
52 "test/alt-to-fp32-bits.cc",
53 ],
54 test_suites: [
55 "general-tests",
56 ],
57}
58
59cc_test {
60 name: "Fp16AltToFp32ValueTests",
61 defaults: ["fp16_tests_default"],
62 srcs: [
63 "test/alt-to-fp32-value.cc",
64 ],
65 test_suites: [
66 "general-tests",
67 ],
68}
69
70cc_test {
71 name: "Fp16BitcastsTests",
72 defaults: ["fp16_tests_default"],
73 srcs: [
74 "test/bitcasts.cc",
75 ],
76 test_suites: [
77 "general-tests",
78 ],
79}
80
81cc_test {
82 name: "Fp16IEEEFromFp32ValueTests",
83 defaults: ["fp16_tests_default"],
84 srcs: [
85 "test/ieee-from-fp32-value.cc",
86 ],
87 test_suites: [
88 "general-tests",
89 ],
90}
91
92cc_test {
93 name: "Fp16IEEEToFp32BitsTests",
94 defaults: ["fp16_tests_default"],
95 srcs: [
96 "test/ieee-to-fp32-bits.cc",
97 ],
98 test_suites: [
99 "general-tests",
100 ],
101}
102
103cc_test {
104 name: "Fp16IEEEToFp32ValueTests",
105 defaults: ["fp16_tests_default"],
106 srcs: [
107 "test/ieee-to-fp32-value.cc",
108 ],
109 test_suites: [
110 "general-tests",
111 ],
112}
113