[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / fembed-bitcode.c
blob970500525a5039db2483d667d9ee5f229fb879b5
1 // RUN: %clang -target x86_64-apple-macosx -fembed-bitcode=all -c %s -o /dev/null -### 2>&1 \
2 // RUN: | FileCheck -check-prefix CHECK-X64 %s
4 // CHECK-X64: "-cc1"
6 // CHECK-X64: "-cc1"
7 // CHECK-X64-NOT: "-fdebug-compilation-dir
9 // RUN: %clang -target armv7-apple-ios -fembed-bitcode=all -c %s -o /dev/null -### 2>&1 \
10 // RUN: | FileCheck -check-prefix CHECK-ARM %s
12 // CHECK-ARM: "-cc1"
14 // CHECK-ARM: "-cc1"
15 // CHECK-ARM: "-target-abi"
16 // CHECK-ARM: "apcs-gnu"
17 // CHECK-ARM-NOT: "-fdebug-compilation-dir
19 // RUN: %clang -target arm64-apple-ios -fembed-bitcode=all -c %s -o /dev/null -### 2>&1 \
20 // RUN: | FileCheck -check-prefix CHECK-AARCH64 %s
22 // CHECK-AARCH64: "-cc1"
24 // CHECK-AARCH64: "-cc1"
25 // CHECK-AARCH64: "-target-abi"
26 // CHECK-AARCH64: "darwinpcs"
27 // CHECK-AARCH64-NOT: "-fdebug-compilation-dir
29 // RUN: %clang -target hexagon-unknown-elf -ffixed-r19 -fembed-bitcode=all -c %s -### 2>&1 \
30 // RUN: | FileCheck --check-prefix=CHECK-HEXAGON %s
31 // CHECK-HEXAGON: "-target-feature"
32 // CHECK-HEXAGON: "+reserved-r19"
34 // RUN: %clang -target wasm32-unknown-unknown -fembed-bitcode=all -pthread -c %s -o /dev/null -### 2>&1 \
35 // RUN: | FileCheck --check-prefix=CHECK-WASM %s
37 // CHECK-WASM: "-cc1"
38 // CHECK-WASM: "-target-feature" "+atomics"
40 // CHECK-WASM: "-cc1"
41 // CHECK-WASM: "-target-feature" "+atomics"