|
42 | 42 | // MVP-NOT: "-target-feature" "+nontrapping-fptoint"
|
43 | 43 | // BLEEDING-EDGE-NOT: "-target-feature" "-nontrapping-fptoint"
|
44 | 44 |
|
| 45 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mmultivalue 2>&1 | FileCheck %s -check-prefix=MULTIVALUE |
| 46 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-multivalue 2>&1 | FileCheck %s -check-prefix=NO-MULTIVALUE |
| 47 | + |
| 48 | +// MULTIVALUE: "-target-feature" "+multivalue" |
| 49 | +// 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 | + |
45 | 55 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mmultimemory 2>&1 | FileCheck %s -check-prefix=MULTIMEMORY
|
46 | 56 | // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-multimemory 2>&1 | FileCheck %s -check-prefix=NO-MULTIMEMORY
|
47 | 57 |
|
|
50 | 60 | // DEFAULT-NOT: "-target-feature" "-multimemory"
|
51 | 61 | // MVP-NOT: "-target-feature" "+multimemory"
|
52 | 62 | // BLEEDING-EDGE-NOT: "-target-feature" "-multimemory"
|
| 63 | + |
| 64 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -matomics 2>&1 | FileCheck %s -check-prefix=ATOMICS |
| 65 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-atomics 2>&1 | FileCheck %s -check-prefix=NO-ATOMICS |
| 66 | + |
| 67 | +// ATOMICS: "-target-feature" "+atomics" |
| 68 | +// 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 | + |
| 74 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mtail-call 2>&1 | FileCheck %s -check-prefix=TAIL-CALL |
| 75 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-tail-call 2>&1 | FileCheck %s -check-prefix=NO-TAIL-CALL |
| 76 | + |
| 77 | +// TAIL-CALL: "-target-feature" "+tail-call" |
| 78 | +// 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 | + |
| 84 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mreference-types 2>&1 | FileCheck %s -check-prefix=REFERENCE-TYPES |
| 85 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-reference-types 2>&1 | FileCheck %s -check-prefix=NO-REFERENCE-TYPES |
| 86 | + |
| 87 | +// REFERENCE-TYPES: "-target-feature" "+reference-types" |
| 88 | +// 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 | + |
| 94 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -msimd128 2>&1 | FileCheck %s -check-prefix=SIMD128 |
| 95 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-simd128 2>&1 | FileCheck %s -check-prefix=NO-SIMD128 |
| 96 | + |
| 97 | +// SIMD128: "-target-feature" "+simd128" |
| 98 | +// 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 | + |
| 104 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mrelaxed-simd 2>&1 | FileCheck %s -check-prefix=RELAXED-SIMD |
| 105 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-relaxed-simd 2>&1 | FileCheck %s -check-prefix=NO-RELAXED-SIMD |
| 106 | + |
| 107 | +// RELAXED-SIMD: "-target-feature" "+relaxed-simd" |
| 108 | +// 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 | + |
| 114 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mexception-handling 2>&1 | FileCheck %s -check-prefix=EXCEPTION-HANDLING |
| 115 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-exception-handling 2>&1 | FileCheck %s -check-prefix=NO-EXCEPTION-HANDLING |
| 116 | + |
| 117 | +// EXCEPTION-HANDLING: "-target-feature" "+exception-handling" |
| 118 | +// 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 | + |
| 124 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mextended-const 2>&1 | FileCheck %s -check-prefix=EXTENDED-CONST |
| 125 | +// RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-extended-const 2>&1 | FileCheck %s -check-prefix=NO-EXTENDED-CONST |
| 126 | + |
| 127 | +// EXTENDED-CONST: "-target-feature" "+extended-const" |
| 128 | +// 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