[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / unknown-gcc-arch.c
blob2aba50d53202244c22ad94a4e88d26ce43003dcf
1 // RUN: %clang -target x86_64-unknown-unknown -no-integrated-as -c \
2 // RUN: -x assembler %s -### 2>&1 | FileCheck -check-prefix=X86_64 %s
3 // X86_64: {{.*as.*--64}}
5 // RUN: %clang -target x86_64-unknown-unknown -c -x assembler %s -### -m32 \
6 // RUN: -no-integrated-as 2>&1 | FileCheck -check-prefix=X86_64-M32 %s
7 // X86_64-M32: {{.*as.*--32}}
9 // RUN: %clang -target i386-unknown-unknown -c -x assembler %s -### \
10 // RUN: -no-integrated-as 2>&1| FileCheck -check-prefix=I386 %s
11 // I386: {{.*as.*--32}}
13 // RUN: %clang -target i386-unknown-unknown -c -x assembler %s -### -m64 \
14 // RUN: -no-integrated-as 2>&1 | FileCheck -check-prefix=I386-M64 %s
15 // I386-M64: {{.*as.*--64}}
17 // RUN: %clang -target powerpc64-unknown-unknown -c -x assembler %s -### \
18 // RUN: -no-integrated-as 2>&1 | FileCheck -check-prefix=PPC64 %s
19 // PPC64: {{.*as.*-a64}}
21 // RUN: %clang -target powerpc-unknown-unknown -c -x assembler %s -### -m64 \
22 // RUN: -no-integrated-as 2>&1 | FileCheck -check-prefix=PPC-M64 %s
23 // PPC-M64: {{.*as.*-a64}}
26 // RUN: %clang -target powerpc64-unknown-unknown -c -x assembler %s -### -m32 \
27 // RUN: -no-integrated-as 2>&1 | FileCheck -check-prefix=PPC64-M32 %s
28 // PPC64-M32: {{.*as.*-a32}}
30 // RUN: %clang -target powerpc-unknown-unknown -c -x assembler %s -### 2>&1 \
31 // RUN: -no-integrated-as | FileCheck -check-prefix=PPC %s
32 // PPC: {{.*as.*-a32}}
34 // RUN: %clang -target sparc64-unknown-unknown -no-integrated-as -c -x assembler %s -### -m32 2>&1 \
35 // RUN: | FileCheck -check-prefix=SPARCV8 %s
36 // SPARCV8: {{.*as.*-32}}
38 // RUN: %clang -target sparc-unknown-unknown -no-integrated-as -c -x assembler %s -### -m64 2>&1 \
39 // RUN: | FileCheck -check-prefix=SPARCV9 %s
40 // SPARCV9: {{.*as.*-64}}