diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-02-06 01:41:26 +0000 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2019-02-06 01:41:26 +0000 |
commit | bab8597916bb314b937444d7e950e6d509b57bd0 (patch) | |
tree | 155048085d00f2043e6279ae0ed6c1068b0ddd97 /clang/test/Preprocessor/wasm-target-features.c | |
parent | 7b3a0f17a518f3a593448d8f193e75e8cf05d097 (diff) | |
download | bcm5719-llvm-bab8597916bb314b937444d7e950e6d509b57bd0.tar.gz bcm5719-llvm-bab8597916bb314b937444d7e950e6d509b57bd0.zip |
[WebAssembly] Add atomics target option
Reviewers: tlively
Subscribers: dschuff, sbc100, jgravelle-google, sunfish, jfb, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D57798
llvm-svn: 353260
Diffstat (limited to 'clang/test/Preprocessor/wasm-target-features.c')
-rw-r--r-- | clang/test/Preprocessor/wasm-target-features.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/clang/test/Preprocessor/wasm-target-features.c b/clang/test/Preprocessor/wasm-target-features.c index 8c10cd7808a..30bc76abae5 100644 --- a/clang/test/Preprocessor/wasm-target-features.c +++ b/clang/test/Preprocessor/wasm-target-features.c @@ -53,6 +53,15 @@ // BULK-MEMORY:#define __wasm_bulk_memory__ 1{{$}} // // RUN: %clang -E -dM %s -o - 2>&1 \ +// RUN: -target wasm32-unknown-unknown -matomics \ +// RUN: | FileCheck %s -check-prefix=ATOMICS +// RUN: %clang -E -dM %s -o - 2>&1 \ +// RUN: -target wasm64-unknown-unknown -matomics \ +// RUN: | FileCheck %s -check-prefix=ATOMICS +// +// ATOMICS:#define __wasm_atomics__ 1{{$}} +// +// RUN: %clang -E -dM %s -o - 2>&1 \ // RUN: -target wasm32-unknown-unknown -mcpu=mvp \ // RUN: | FileCheck %s -check-prefix=MVP // RUN: %clang -E -dM %s -o - 2>&1 \ @@ -65,6 +74,7 @@ // MVP-NOT:#define __wasm_sign_ext__ // MVP-NOT:#define __wasm_exception_handling__ // MVP-NOT:#define __wasm_bulk_memory__ +// MVP-NOT:#define __wasm_atomics__ // // RUN: %clang -E -dM %s -o - 2>&1 \ // RUN: -target wasm32-unknown-unknown -mcpu=bleeding-edge \ @@ -73,9 +83,10 @@ // RUN: -target wasm64-unknown-unknown -mcpu=bleeding-edge \ // RUN: | FileCheck %s -check-prefix=BLEEDING-EDGE // -// BLEEDING-EDGE:#define __wasm_nontrapping_fptoint__ 1{{$}} -// BLEEDING-EDGE:#define __wasm_sign_ext__ 1{{$}} -// BLEEDING-EDGE:#define __wasm_simd128__ 1{{$}} +// BLEEDING-EDGE-DAG:#define __wasm_nontrapping_fptoint__ 1{{$}} +// BLEEDING-EDGE-DAG:#define __wasm_sign_ext__ 1{{$}} +// BLEEDING-EDGE-DAG:#define __wasm_simd128__ 1{{$}} +// BLEEDING-EDGE-DAG:#define __wasm_atomics__ 1{{$}} // BLEEDING-EDGE-NOT:#define __wasm_unimplemented_simd128__ 1{{$}} // // RUN: %clang -E -dM %s -o - 2>&1 \ |