1 // RUN: %clang -E -dM %s -o - 2>&1 \
2 // RUN:     -target wasm32-unknown-unknown -msimd128 \
3 // RUN:   | FileCheck %s -check-prefix=SIMD128
4 // RUN: %clang -E -dM %s -o - 2>&1 \
5 // RUN:     -target wasm64-unknown-unknown -msimd128 \
6 // RUN:   | FileCheck %s -check-prefix=SIMD128
7 //
8 // SIMD128:#define __wasm_simd128__ 1{{$}}
9 //
10 // RUN: %clang -E -dM %s -o - 2>&1 \
11 // RUN:     -target wasm32-unknown-unknown -mcpu=mvp \
12 // RUN:   | FileCheck %s -check-prefix=MVP
13 // RUN: %clang -E -dM %s -o - 2>&1 \
14 // RUN:     -target wasm64-unknown-unknown -mcpu=mvp \
15 // RUN:   | FileCheck %s -check-prefix=MVP
16 //
17 // MVP-NOT:#define __wasm_simd128__
18 //
19 // RUN: %clang -E -dM %s -o - 2>&1 \
20 // RUN:     -target wasm32-unknown-unknown -mcpu=bleeding-edge \
21 // RUN:   | FileCheck %s -check-prefix=BLEEDING_EDGE
22 // RUN: %clang -E -dM %s -o - 2>&1 \
23 // RUN:     -target wasm64-unknown-unknown -mcpu=bleeding-edge \
24 // RUN:   | FileCheck %s -check-prefix=BLEEDING_EDGE
25 //
26 // BLEEDING_EDGE:#define __wasm_simd128__ 1{{$}}
27 //
28 // RUN: %clang -E -dM %s -o - 2>&1 \
29 // RUN:     -target wasm32-unknown-unknown -mcpu=bleeding-edge -mno-simd128 \
30 // RUN:   | FileCheck %s -check-prefix=BLEEDING_EDGE_NO_SIMD128
31 // RUN: %clang -E -dM %s -o - 2>&1 \
32 // RUN:     -target wasm64-unknown-unknown -mcpu=bleeding-edge -mno-simd128 \
33 // RUN:   | FileCheck %s -check-prefix=BLEEDING_EDGE_NO_SIMD128
34 //
35 // BLEEDING_EDGE_NO_SIMD128-NOT:#define __wasm_simd128__
36