|
2 | 2 |
|
3 | 3 | // CHECK: "-fvisibility=hidden"
|
4 | 4 |
|
5 |
| -// RUN: %clang --target=wasm32-unknown-unknown -### %s 2>&1 | FileCheck %s -check-prefix=DEFAULT |
6 | 5 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mcpu=mvp 2>&1 | FileCheck %s -check-prefix=MVP
|
| 6 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s 2>&1 | FileCheck %s -check-prefix=GENERIC |
| 7 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mcpu=generic 2>&1 | FileCheck %s -check-prefix=GENERIC |
7 | 8 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mcpu=bleeding-edge 2>&1 | FileCheck %s -check-prefix=BLEEDING-EDGE
|
8 | 9 |
|
| 10 | +// MVP: "-target-cpu" "mvp" |
| 11 | +// GENERIC: "-target-cpu" "generic" |
| 12 | +// BLEEDING-EDGE: "-target-cpu" "bleeding-edge" |
| 13 | + |
9 | 14 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mbulk-memory 2>&1 | FileCheck %s -check-prefix=BULK-MEMORY
|
10 | 15 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-bulk-memory 2>&1 | FileCheck %s -check-prefix=NO-BULK-MEMORY
|
11 | 16 |
|
12 | 17 | // BULK-MEMORY: "-target-feature" "+bulk-memory"
|
13 | 18 | // NO-BULK-MEMORY: "-target-feature" "-bulk-memory"
|
14 |
| -// DEFAULT-NOT: "-target-feature" "-bulk-memory" |
15 |
| -// MVP-NOT: "-target-feature" "+bulk-memory" |
16 |
| -// BLEEDING-EDGE-NOT: "-target-feature" "-bulk-memory" |
17 | 19 |
|
18 | 20 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mmutable-globals 2>&1 | FileCheck %s -check-prefix=MUTABLE-GLOBALS
|
19 | 21 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-mutable-globals 2>&1 | FileCheck %s -check-prefix=NO-MUTABLE-GLOBALS
|
20 | 22 |
|
21 | 23 | // MUTABLE-GLOBALS: "-target-feature" "+mutable-globals"
|
22 | 24 | // NO-MUTABLE-GLOBALS: "-target-feature" "-mutable-globals"
|
23 |
| -// DEFAULT-NOT: "-target-feature" "-mutable-globals" |
24 |
| -// MVP-NOT: "-target-feature" "+mutable-globals" |
25 |
| -// BLEEDING-EDGE-NOT: "-target-feature" "-mutable-globals" |
26 | 25 |
|
27 | 26 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -msign-ext 2>&1 | FileCheck %s -check-prefix=SIGN-EXT
|
28 | 27 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-sign-ext 2>&1 | FileCheck %s -check-prefix=NO-SIGN-EXT
|
29 | 28 |
|
30 | 29 | // SIGN-EXT: "-target-feature" "+sign-ext"
|
31 | 30 | // NO-SIGN-EXT: "-target-feature" "-sign-ext"
|
32 |
| -// DEFAULT-NOT: "-target-feature" "-sign-ext" |
33 |
| -// MVP-NOT: "-target-feature" "+sign-ext" |
34 |
| -// BLEEDING-EDGE-NOT: "-target-feature" "-sign-ext" |
35 | 31 |
|
36 | 32 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mnontrapping-fptoint 2>&1 | FileCheck %s -check-prefix=NONTRAPPING-FPTOINT
|
37 | 33 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-nontrapping-fptoint 2>&1 | FileCheck %s -check-prefix=NO-NONTRAPPING-FPTOINT
|
38 | 34 |
|
39 | 35 | // NONTRAPPING-FPTOINT: "-target-feature" "+nontrapping-fptoint"
|
40 | 36 | // NO-NONTRAPPING-FPTOINT: "-target-feature" "-nontrapping-fptoint"
|
41 |
| -// DEFAULT-NOT: "-target-feature" "-nontrapping-fptoint" |
42 |
| -// MVP-NOT: "-target-feature" "+nontrapping-fptoint" |
43 |
| -// BLEEDING-EDGE-NOT: "-target-feature" "-nontrapping-fptoint" |
44 | 37 |
|
45 | 38 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mmultivalue 2>&1 | FileCheck %s -check-prefix=MULTIVALUE
|
46 | 39 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-multivalue 2>&1 | FileCheck %s -check-prefix=NO-MULTIVALUE
|
47 | 40 |
|
48 | 41 | // MULTIVALUE: "-target-feature" "+multivalue"
|
49 | 42 | // NO-MULTIVALUE: "-target-feature" "-multivalue"
|
50 |
| -// DEFAULT-NOT: "-target-feature" "-multivalue" |
51 |
| -// MVP-NOT: "-target-feature" "+multivalue" |
52 |
| -// GENERIC-NOT: "-target-feature" "+multivalue" |
53 |
| -// BLEEDING-EDGE-NOT: "-target-feature" "-multivalue" |
54 | 43 |
|
55 | 44 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mmultimemory 2>&1 | FileCheck %s -check-prefix=MULTIMEMORY
|
56 | 45 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-multimemory 2>&1 | FileCheck %s -check-prefix=NO-MULTIMEMORY
|
57 | 46 |
|
58 | 47 | // MULTIMEMORY: "-target-feature" "+multimemory"
|
59 | 48 | // NO-MULTIMEMORY: "-target-feature" "-multimemory"
|
60 |
| -// DEFAULT-NOT: "-target-feature" "-multimemory" |
61 |
| -// MVP-NOT: "-target-feature" "+multimemory" |
62 |
| -// BLEEDING-EDGE-NOT: "-target-feature" "-multimemory" |
63 | 49 |
|
64 | 50 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -matomics 2>&1 | FileCheck %s -check-prefix=ATOMICS
|
65 | 51 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-atomics 2>&1 | FileCheck %s -check-prefix=NO-ATOMICS
|
66 | 52 |
|
67 | 53 | // ATOMICS: "-target-feature" "+atomics"
|
68 | 54 | // NO-ATOMICS: "-target-feature" "-atomics"
|
69 |
| -// DEFAULT-NOT: "-target-feature" "-atomics" |
70 |
| -// MVP-NOT: "-target-feature" "+atomics" |
71 |
| -// GENERIC-NOT: "-target-feature" "+atomics" |
72 |
| -// BLEEDING-EDGE-NOT: "-target-feature" "-atomics" |
73 | 55 |
|
74 | 56 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mtail-call 2>&1 | FileCheck %s -check-prefix=TAIL-CALL
|
75 | 57 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-tail-call 2>&1 | FileCheck %s -check-prefix=NO-TAIL-CALL
|
76 | 58 |
|
77 | 59 | // TAIL-CALL: "-target-feature" "+tail-call"
|
78 | 60 | // NO-TAIL-CALL: "-target-feature" "-tail-call"
|
79 |
| -// DEFAULT-NOT: "-target-feature" "-tail-call" |
80 |
| -// MVP-NOT: "-target-feature" "+tail-call" |
81 |
| -// GENERIC-NOT: "-target-feature" "+tail-call" |
82 |
| -// BLEEDING-EDGE-NOT: "-target-feature" "-tail-call" |
83 | 61 |
|
84 | 62 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mreference-types 2>&1 | FileCheck %s -check-prefix=REFERENCE-TYPES
|
85 | 63 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-reference-types 2>&1 | FileCheck %s -check-prefix=NO-REFERENCE-TYPES
|
86 | 64 |
|
87 | 65 | // REFERENCE-TYPES: "-target-feature" "+reference-types"
|
88 | 66 | // NO-REFERENCE-TYPES: "-target-feature" "-reference-types"
|
89 |
| -// DEFAULT-NOT: "-target-feature" "-reference-types" |
90 |
| -// MVP-NOT: "-target-feature" "+reference-types" |
91 |
| -// GENERIC-NOT: "-target-feature" "+reference-types" |
92 |
| -// BLEEDING-EDGE-NOT: "-target-feature" "-reference-types" |
93 | 67 |
|
94 | 68 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -msimd128 2>&1 | FileCheck %s -check-prefix=SIMD128
|
95 | 69 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-simd128 2>&1 | FileCheck %s -check-prefix=NO-SIMD128
|
96 | 70 |
|
97 | 71 | // SIMD128: "-target-feature" "+simd128"
|
98 | 72 | // NO-SIMD128: "-target-feature" "-simd128"
|
99 |
| -// DEFAULT-NOT: "-target-feature" "-simd128" |
100 |
| -// MVP-NOT: "-target-feature" "+simd128" |
101 |
| -// GENERIC-NOT: "-target-feature" "+simd128" |
102 |
| -// BLEEDING-EDGE-NOT: "-target-feature" "+simd128" |
103 | 73 |
|
104 | 74 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mrelaxed-simd 2>&1 | FileCheck %s -check-prefix=RELAXED-SIMD
|
105 | 75 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-relaxed-simd 2>&1 | FileCheck %s -check-prefix=NO-RELAXED-SIMD
|
106 | 76 |
|
107 | 77 | // RELAXED-SIMD: "-target-feature" "+relaxed-simd"
|
108 | 78 | // NO-RELAXED-SIMD: "-target-feature" "-relaxed-simd"
|
109 |
| -// DEFAULT-NOT: "-target-feature" "-relaxed-simd" |
110 |
| -// MVP-NOT: "-target-feature" "+relaxed-simd" |
111 |
| -// GENERIC-NOT: "-target-feature" "+relaxed-simd" |
112 |
| -// BLEEDING-EDGE-NOT: "-target-feature" "+relaxed-simd" |
113 | 79 |
|
114 | 80 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mexception-handling 2>&1 | FileCheck %s -check-prefix=EXCEPTION-HANDLING
|
115 | 81 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-exception-handling 2>&1 | FileCheck %s -check-prefix=NO-EXCEPTION-HANDLING
|
116 | 82 |
|
117 | 83 | // EXCEPTION-HANDLING: "-target-feature" "+exception-handling"
|
118 | 84 | // NO-EXCEPTION-HANDLING: "-target-feature" "-exception-handling"
|
119 |
| -// DEFAULT-NOT: "-target-feature" "-exception-handling" |
120 |
| -// MVP-NOT: "-target-feature" "+exception-handling" |
121 |
| -// GENERIC-NOT: "-target-feature" "+exception-handling" |
122 |
| -// BLEEDING-EDGE-NOT: "-target-feature" "+exception-handling" |
123 | 85 |
|
124 | 86 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mextended-const 2>&1 | FileCheck %s -check-prefix=EXTENDED-CONST
|
125 | 87 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-extended-const 2>&1 | FileCheck %s -check-prefix=NO-EXTENDED-CONST
|
126 | 88 |
|
127 | 89 | // EXTENDED-CONST: "-target-feature" "+extended-const"
|
128 | 90 | // NO-EXTENDED-CONST: "-target-feature" "-extended-const"
|
129 |
| -// DEFAULT-NOT: "-target-feature" "-extended-const" |
130 |
| -// MVP-NOT: "-target-feature" "+extended-const" |
131 |
| -// GENERIC-NOT: "-target-feature" "+extended-const" |
132 |
| -// BLEEDING-EDGE-NOT: "-target-feature" "+extended-const" |
0 commit comments