|
1656 | 1656 | // RUN: %clang_cc1 -E -dM -ffreestanding -fgnuc-version=4.2.1 -triple=wasm64-emscripten \ |
1657 | 1657 | // RUN: < /dev/null \ |
1658 | 1658 | // RUN: | FileCheck -match-full-lines -check-prefixes=WEBASSEMBLY,WEBASSEMBLY64,EMSCRIPTEN %s |
1659 | | -// RUN: %clang_cc1 -E -dM -ffreestanding -fgnuc-version=4.2.1 -triple=wasm32-wasi \ |
| 1659 | +// RUN: %clang_cc1 -E -dM -ffreestanding -fgnuc-version=4.2.1 -triple=wasm32-wasip1 \ |
1660 | 1660 | // RUN: < /dev/null \ |
1661 | | -// RUN: | FileCheck -match-full-lines -check-prefixes=WEBASSEMBLY,WEBASSEMBLY32,WEBASSEMBLY-WASI %s |
1662 | | -// RUN: %clang_cc1 -E -dM -ffreestanding -fgnuc-version=4.2.1 -triple=wasm64-wasi \ |
| 1661 | +// RUN: | FileCheck -match-full-lines -check-prefixes=WEBASSEMBLY,WEBASSEMBLY32,WASI,WASIP1 %s |
| 1662 | +// RUN: %clang_cc1 -E -dM -ffreestanding -fgnuc-version=4.2.1 -triple=wasm64-wasip1 \ |
1663 | 1663 | // RUN: < /dev/null \ |
1664 | | -// RUN: | FileCheck -match-full-lines -check-prefixes=WEBASSEMBLY,WEBASSEMBLY64,WEBASSEMBLY-WASI %s |
| 1664 | +// RUN: | FileCheck -match-full-lines -check-prefixes=WEBASSEMBLY,WEBASSEMBLY64,WASI,WASIP1 %s |
| 1665 | +// RUN: %clang_cc1 -E -dM -ffreestanding -fgnuc-version=4.2.1 -triple=wasm32-wasip2 \ |
| 1666 | +// RUN: < /dev/null \ |
| 1667 | +// RUN: | FileCheck -match-full-lines -check-prefixes=WEBASSEMBLY,WEBASSEMBLY32,WASI,WASIP2 %s |
| 1668 | +// RUN: %clang_cc1 -E -dM -ffreestanding -fgnuc-version=4.2.1 -triple=wasm64-wasip2 \ |
| 1669 | +// RUN: < /dev/null \ |
| 1670 | +// RUN: | FileCheck -match-full-lines -check-prefixes=WEBASSEMBLY,WEBASSEMBLY64,WASI,WASIP2 %s |
| 1671 | +// RUN: %clang_cc1 -E -dM -ffreestanding -fgnuc-version=4.2.1 -triple=wasm32-wasip3 \ |
| 1672 | +// RUN: < /dev/null \ |
| 1673 | +// RUN: | FileCheck -match-full-lines -check-prefixes=WEBASSEMBLY,WEBASSEMBLY32,WASI,WASIP3 %s |
| 1674 | +// RUN: %clang_cc1 -E -dM -ffreestanding -fgnuc-version=4.2.1 -triple=wasm64-wasip3 \ |
| 1675 | +// RUN: < /dev/null \ |
| 1676 | +// RUN: | FileCheck -match-full-lines -check-prefixes=WEBASSEMBLY,WEBASSEMBLY64,WASI,WASIP3 %s |
1665 | 1677 | // RUN: %clang_cc1 -E -dM -ffreestanding -fgnuc-version=4.2.1 -triple=wasm32-unknown-unknown -x c++ \ |
1666 | 1678 | // RUN: < /dev/null \ |
1667 | 1679 | // RUN: | FileCheck -match-full-lines -check-prefixes=WEBASSEMBLY-CXX %s |
|
2079 | 2091 | // WEBASSEMBLY-NEXT:#define __clang_version__ "{{.*}}" |
2080 | 2092 | // WEBASSEMBLY-NEXT:#define __clang_wide_literal_encoding__ {{.*}} |
2081 | 2093 | // WEBASSEMBLY-NEXT:#define __llvm__ 1 |
2082 | | -// WEBASSEMBLY-WASI-NOT:#define __unix |
2083 | | -// WEBASSEMBLY-WASI-NOT:#define __unix__ |
| 2094 | +// WASI-NOT:#define __unix |
| 2095 | +// WASI-NOT:#define __unix__ |
2084 | 2096 | // EMSCRIPTEN-NEXT:#define __unix 1 |
2085 | 2097 | // EMSCRIPTEN-NEXT:#define __unix__ 1 |
2086 | | -// WEBASSEMBLY-WASI-NEXT:#define __wasi__ 1 |
| 2098 | +// WASI-NEXT:#define __wasi__ 1 |
| 2099 | +// WASIP1-NEXT:#define __wasip1__ 1 |
| 2100 | +// WASIP2-NEXT:#define __wasip2__ 1 |
| 2101 | +// WASIP3-NEXT:#define __wasip3__ 1 |
2087 | 2102 | // WEBASSEMBLY-NOT:#define __wasm_simd128__ |
2088 | 2103 | // WEBASSEMBLY-NOT:#define __wasm_simd256__ |
2089 | 2104 | // WEBASSEMBLY-NOT:#define __wasm_simd512__ |
|
2098 | 2113 | // WEBASSEMBLY64-NEXT:#define __wasm64__ 1 |
2099 | 2114 | // WEBASSEMBLY-NEXT:#define __wasm__ 1 |
2100 | 2115 | // EMSCRIPTEN:#define unix 1 |
2101 | | -// WEBASSEMBLY-WASI-NOT:#define unix 1 |
| 2116 | +// WASI-NOT:#define unix 1 |
2102 | 2117 | // WEBASSEMBLY-CXX-NOT:_REENTRANT |
2103 | 2118 | // WEBASSEMBLY-CXX-NOT:__STDCPP_THREADS__ |
2104 | 2119 | // WEBASSEMBLY-CXX-ATOMICS:#define _REENTRANT 1 |
|
0 commit comments