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}}
4 
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}}
8 
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}}
12 
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}}
16 
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}}
20 
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}}
24 
25 
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}}
29 
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}}
33 
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}}
37 
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}}
41