|
43 | 43 | //
|
44 | 44 | // EXTENDED-CONST: #define __wasm_extended_const__ 1{{$}}
|
45 | 45 |
|
| 46 | +// RUN: %clang -E -dM %s -o - 2>&1 \ |
| 47 | +// RUN: -target wasm32-unknown-unknown -mhalf-precision \ |
| 48 | +// RUN: | FileCheck %s -check-prefix=HALF-PRECISION |
| 49 | +// RUN: %clang -E -dM %s -o - 2>&1 \ |
| 50 | +// RUN: -target wasm64-unknown-unknown -mhalf-precision \ |
| 51 | +// RUN: | FileCheck %s -check-prefix=HALF-PRECISION |
| 52 | +// |
| 53 | +// HALF-PRECISION: #define __wasm_half_precision__ 1{{$}} |
| 54 | + |
46 | 55 | // RUN: %clang -E -dM %s -o - 2>&1 \
|
47 | 56 | // RUN: -target wasm32-unknown-unknown -mmultimemory \
|
48 | 57 | // RUN: | FileCheck %s -check-prefix=MULTIMEMORY
|
|
135 | 144 | // MVP-NOT: #define __wasm_bulk_memory__ 1{{$}}
|
136 | 145 | // MVP-NOT: #define __wasm_exception_handling__ 1{{$}}
|
137 | 146 | // MVP-NOT: #define __wasm_extended_const__ 1{{$}}
|
| 147 | +// MVP-NOT: #define __wasm_half_precision__ 1{{$}} |
138 | 148 | // MVP-NOT: #define __wasm_multimemory__ 1{{$}}
|
139 | 149 | // MVP-NOT: #define __wasm_multivalue__ 1{{$}}
|
140 | 150 | // MVP-NOT: #define __wasm_mutable_globals__ 1{{$}}
|
|
168 | 178 | // GENERIC-NOT: #define __wasm_bulk_memory__ 1{{$}}
|
169 | 179 | // GENERIC-NOT: #define __wasm_exception_handling__ 1{{$}}
|
170 | 180 | // GENERIC-NOT: #define __wasm_extended_const__ 1{{$}}
|
| 181 | +// GENERIC-NOT: #define __wasm_half_precision__ 1{{$}} |
171 | 182 | // GENERIC-NOT: #define __wasm_multimemory__ 1{{$}}
|
172 | 183 | // GENERIC-NOT: #define __wasm_nontrapping_fptoint__ 1{{$}}
|
173 | 184 | // GENERIC-NOT: #define __wasm_relaxed_simd__ 1{{$}}
|
|
183 | 194 | //
|
184 | 195 | // BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_atomics__ 1{{$}}
|
185 | 196 | // BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_bulk_memory__ 1{{$}}
|
| 197 | +// BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_half_precision__ 1{{$}} |
186 | 198 | // BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_multimemory__ 1{{$}}
|
187 | 199 | // BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_multivalue__ 1{{$}}
|
188 | 200 | // BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_mutable_globals__ 1{{$}}
|
|
0 commit comments