1 // RUN: %clang --target=wasm32-unknown-unknown -### %s -fsyntax-only 2>&1 | FileCheck %s
3 // CHECK: "-fvisibility=hidden"
5 // RUN: %clang --target=wasm32-unknown-unknown -### %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
6 // RUN: %clang --target=wasm32-unknown-unknown -### %s -mcpu=mvp 2>&1 | FileCheck %s -check-prefix=MVP
7 // RUN: %clang --target=wasm32-unknown-unknown -### %s -mcpu=bleeding-edge 2>&1 | FileCheck %s -check-prefix=BLEEDING-EDGE
9 // RUN: %clang --target=wasm32-unknown-unknown -### %s -mbulk-memory 2>&1 | FileCheck %s -check-prefix=BULK-MEMORY
10 // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-bulk-memory 2>&1 | FileCheck %s -check-prefix=NO-BULK-MEMORY
12 // BULK-MEMORY: "-target-feature" "+bulk-memory"
13 // 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"
18 // RUN: %clang --target=wasm32-unknown-unknown -### %s -mmutable-globals 2>&1 | FileCheck %s -check-prefix=MUTABLE-GLOBALS
19 // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-mutable-globals 2>&1 | FileCheck %s -check-prefix=NO-MUTABLE-GLOBALS
21 // MUTABLE-GLOBALS: "-target-feature" "+mutable-globals"
22 // 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"
27 // RUN: %clang --target=wasm32-unknown-unknown -### %s -msign-ext 2>&1 | FileCheck %s -check-prefix=SIGN-EXT
28 // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-sign-ext 2>&1 | FileCheck %s -check-prefix=NO-SIGN-EXT
30 // SIGN-EXT: "-target-feature" "+sign-ext"
31 // 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"
36 // RUN: %clang --target=wasm32-unknown-unknown -### %s -mnontrapping-fptoint 2>&1 | FileCheck %s -check-prefix=NONTRAPPING-FPTOINT
37 // RUN: %clang --target=wasm32-unknown-unknown -### %s -mno-nontrapping-fptoint 2>&1 | FileCheck %s -check-prefix=NO-NONTRAPPING-FPTOINT
39 // NONTRAPPING-FPTOINT: "-target-feature" "+nontrapping-fptoint"
40 // 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"