|
132 | 132 | // RUN: -target wasm64-unknown-unknown -mcpu=mvp \ |
133 | 133 | // RUN: | FileCheck %s -check-prefix=MVP |
134 | 134 | // |
135 | | -// MVP-NOT:#define __wasm_simd128__ |
136 | | -// MVP-NOT:#define __wasm_nontrapping_fptoint__ |
137 | | -// MVP-NOT:#define __wasm_sign_ext__ |
138 | | -// MVP-NOT:#define __wasm_exception_handling__ |
139 | | -// MVP-NOT:#define __wasm_bulk_memory__ |
140 | | -// MVP-NOT:#define __wasm_atomics__ |
141 | | -// MVP-NOT:#define __wasm_mutable_globals__ |
142 | | -// MVP-NOT:#define __wasm_multivalue__ |
143 | | -// MVP-NOT:#define __wasm_tail_call__ |
144 | | -// MVP-NOT:#define __wasm_reference_types__ |
145 | | -// MVP-NOT:#define __wasm_extended_const__ |
146 | | -// MVP-NOT:#define __wasm_multimemory__ |
147 | | -// MVP-NOT:#define __wasm_relaxed_simd__ |
| 135 | +// MVP-NOT: #define __wasm_atomics__ 1{{$}} |
| 136 | +// MVP-NOT: #define __wasm_bulk_memory__ 1{{$}} |
| 137 | +// MVP-NOT: #define __wasm_exception_handling__ 1{{$}} |
| 138 | +// MVP-NOT: #define __wasm_extended_const__ 1{{$}} |
| 139 | +// MVP-NOT: #define __wasm_multimemory__ 1{{$}} |
| 140 | +// MVP-NOT: #define __wasm_multivalue__ 1{{$}} |
| 141 | +// MVP-NOT: #define __wasm_mutable_globals__ 1{{$}} |
| 142 | +// MVP-NOT: #define __wasm_nontrapping_fptoint__ 1{{$}} |
| 143 | +// MVP-NOT: #define __wasm_reference_types__ 1{{$}} |
| 144 | +// MVP-NOT: #define __wasm_relaxed_simd__ 1{{$}} |
| 145 | +// MVP-NOT: #define __wasm_sign_ext__ 1{{$}} |
| 146 | +// MVP-NOT: #define __wasm_simd128__ 1{{$}} |
| 147 | +// MVP-NOT: #define __wasm_tail_call__ 1{{$}} |
148 | 148 |
|
| 149 | +// RUN: %clang -E -dM %s -o - 2>&1 \ |
| 150 | +// RUN: -target wasm32-unknown-unknown -mcpu=generic \ |
| 151 | +// RUN: | FileCheck %s -check-prefix=GENERIC-INCLUDE |
| 152 | +// RUN: %clang -E -dM %s -o - 2>&1 \ |
| 153 | +// RUN: -target wasm64-unknown-unknown -mcpu=generic \ |
| 154 | +// RUN: | FileCheck %s -check-prefix=GENERIC-INCLUDE |
| 155 | +// |
| 156 | +// GENERIC-INCLUDE-DAG: #define __wasm_mutable_globals__ 1{{$}} |
| 157 | +// GENERIC-INCLUDE-DAG: #define __wasm_sign_ext__ 1{{$}} |
| 158 | +// |
149 | 159 | // RUN: %clang -E -dM %s -o - 2>&1 \ |
150 | 160 | // RUN: -target wasm32-unknown-unknown -mcpu=generic \ |
151 | 161 | // RUN: | FileCheck %s -check-prefix=GENERIC |
152 | 162 | // RUN: %clang -E -dM %s -o - 2>&1 \ |
153 | 163 | // RUN: -target wasm64-unknown-unknown -mcpu=generic \ |
154 | 164 | // RUN: | FileCheck %s -check-prefix=GENERIC |
155 | 165 | // |
156 | | -// GENERIC-DAG:#define __wasm_sign_ext__ 1{{$}} |
157 | | -// GENERIC-DAG:#define __wasm_mutable_globals__ 1{{$}} |
158 | | -// GENERIC-NOT:#define __wasm_nontrapping_fptoint__ 1{{$}} |
159 | | -// GENERIC-NOT:#define __wasm_bulk_memory__ 1{{$}} |
160 | | -// GENERIC-NOT:#define __wasm_simd128__ 1{{$}} |
161 | | -// GENERIC-NOT:#define __wasm_atomics__ 1{{$}} |
162 | | -// GENERIC-NOT:#define __wasm_tail_call__ 1{{$}} |
163 | | -// GENERIC-NOT:#define __wasm_multimemory__ 1{{$}} |
164 | | -// GENERIC-NOT:#define __wasm_exception_handling__ 1{{$}} |
165 | | -// GENERIC-NOT:#define __wasm_multivalue__ 1{{$}} |
166 | | -// GENERIC-NOT:#define __wasm_reference_types__ 1{{$}} |
167 | | -// GENERIC-NOT:#define __wasm_extended_const__ 1{{$}} |
| 166 | +// GENERIC-NOT: #define __wasm_atomics__ 1{{$}} |
| 167 | +// GENERIC-NOT: #define __wasm_bulk_memory__ 1{{$}} |
| 168 | +// GENERIC-NOT: #define __wasm_exception_handling__ 1{{$}} |
| 169 | +// GENERIC-NOT: #define __wasm_extended_const__ 1{{$}} |
| 170 | +// GENERIC-NOT: #define __wasm_multimemory__ 1{{$}} |
| 171 | +// GENERIC-NOT: #define __wasm_multivalue__ 1{{$}} |
| 172 | +// GENERIC-NOT: #define __wasm_nontrapping_fptoint__ 1{{$}} |
| 173 | +// GENERIC-NOT: #define __wasm_reference_types__ 1{{$}} |
| 174 | +// GENERIC-NOT: #define __wasm_relaxed_simd__ 1{{$}} |
| 175 | +// GENERIC-NOT: #define __wasm_simd128__ 1{{$}} |
| 176 | +// GENERIC-NOT: #define __wasm_tail_call__ 1{{$}} |
168 | 177 |
|
| 178 | +// RUN: %clang -E -dM %s -o - 2>&1 \ |
| 179 | +// RUN: -target wasm32-unknown-unknown -mcpu=bleeding-edge \ |
| 180 | +// RUN: | FileCheck %s -check-prefix=BLEEDING-EDGE-INCLUDE |
| 181 | +// RUN: %clang -E -dM %s -o - 2>&1 \ |
| 182 | +// RUN: -target wasm64-unknown-unknown -mcpu=bleeding-edge \ |
| 183 | +// RUN: | FileCheck %s -check-prefix=BLEEDING-EDGE-INCLUDE |
| 184 | +// |
| 185 | +// BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_atomics__ 1{{$}} |
| 186 | +// BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_bulk_memory__ 1{{$}} |
| 187 | +// BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_multimemory__ 1{{$}} |
| 188 | +// BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_mutable_globals__ 1{{$}} |
| 189 | +// BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_nontrapping_fptoint__ 1{{$}} |
| 190 | +// BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_reference_types__ 1{{$}} |
| 191 | +// BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_sign_ext__ 1{{$}} |
| 192 | +// BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_simd128__ 1{{$}} |
| 193 | +// BLEEDING-EDGE-INCLUDE-DAG: #define __wasm_tail_call__ 1{{$}} |
| 194 | +// |
169 | 195 | // RUN: %clang -E -dM %s -o - 2>&1 \ |
170 | 196 | // RUN: -target wasm32-unknown-unknown -mcpu=bleeding-edge \ |
171 | 197 | // RUN: | FileCheck %s -check-prefix=BLEEDING-EDGE |
172 | 198 | // RUN: %clang -E -dM %s -o - 2>&1 \ |
173 | 199 | // RUN: -target wasm64-unknown-unknown -mcpu=bleeding-edge \ |
174 | 200 | // RUN: | FileCheck %s -check-prefix=BLEEDING-EDGE |
175 | 201 | // |
176 | | -// BLEEDING-EDGE-DAG:#define __wasm_nontrapping_fptoint__ 1{{$}} |
177 | | -// BLEEDING-EDGE-DAG:#define __wasm_sign_ext__ 1{{$}} |
178 | | -// BLEEDING-EDGE-DAG:#define __wasm_bulk_memory__ 1{{$}} |
179 | | -// BLEEDING-EDGE-DAG:#define __wasm_simd128__ 1{{$}} |
180 | | -// BLEEDING-EDGE-DAG:#define __wasm_atomics__ 1{{$}} |
181 | | -// BLEEDING-EDGE-DAG:#define __wasm_mutable_globals__ 1{{$}} |
182 | | -// BLEEDING-EDGE-DAG:#define __wasm_tail_call__ 1{{$}} |
183 | | -// BLEEDING-EDGE-DAG:#define __wasm_multimemory__ 1{{$}} |
184 | | -// BLEEDING-EDGE-NOT:#define __wasm_exception_handling__ 1{{$}} |
185 | | -// BLEEDING-EDGE-NOT:#define __wasm_multivalue__ 1{{$}} |
186 | | -// BLEEDING-EDGE-NOT:#define __wasm_reference_types__ 1{{$}} |
187 | | -// BLEEDING-EDGE-NOT:#define __wasm_extended_const__ 1{{$}} |
188 | | -// BLEEDING-EDGE-NOT:#define __wasm_relaxed_simd__ 1{{$}} |
| 202 | +// BLEEDING-EDGE-NOT: #define __wasm_exception_handling__ 1{{$}} |
| 203 | +// BLEEDING-EDGE-NOT: #define __wasm_extended_const__ 1{{$}} |
| 204 | +// BLEEDING-EDGE-NOT: #define __wasm_multivalue__ 1{{$}} |
| 205 | +// BLEEDING-EDGE-NOT: #define __wasm_relaxed_simd__ 1{{$}} |
189 | 206 |
|
190 | 207 | // RUN: %clang -E -dM %s -o - 2>&1 \ |
191 | 208 | // RUN: -target wasm32-unknown-unknown -mcpu=bleeding-edge -mno-simd128 \ |
|
0 commit comments