1 // General tests that as(1) invocations on AIX targets are sane. Note that we 2 // only test assembler functionalities in this suite. 3 4 // Check powerpc-ibm-aix7.1.0.0, 32-bit. 5 // RUN: %clang -no-canonical-prefixes %s -### -c -o %t.o 2>&1 \ 6 // RUN: -target powerpc-ibm-aix7.1.0.0 \ 7 // RUN: | FileCheck --check-prefix=CHECK-AS32 %s 8 // CHECK-AS32-NOT: warning: 9 // CHECK-AS32: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0" 10 // CHECK-AS32: "{{.*}}as{{(.exe)?}}" 11 // CHECK-AS32: "-a32" 12 // CHECK-AS32: "-many" 13 14 // Check powerpc64-ibm-aix7.1.0.0, 64-bit. 15 // RUN: %clang -no-canonical-prefixes %s -### -c -o %t.o 2>&1 \ 16 // RUN: -target powerpc64-ibm-aix7.1.0.0 \ 17 // RUN: | FileCheck --check-prefix=CHECK-AS64 %s 18 // CHECK-AS64-NOT: warning: 19 // CHECK-AS64: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc64-ibm-aix7.1.0.0" 20 // CHECK-AS64: "{{.*}}as{{(.exe)?}}" 21 // CHECK-AS64: "-a64" 22 // CHECK-AS64: "-many" 23 24 // Check powerpc-ibm-aix7.1.0.0, 32-bit. -Xassembler <arg> option. 25 // RUN: %clang -no-canonical-prefixes %s -### -c -o %t.o 2>&1 \ 26 // RUN: -Xassembler -w \ 27 // RUN: -target powerpc-ibm-aix7.1.0.0 \ 28 // RUN: | FileCheck --check-prefix=CHECK-AS32-Xassembler %s 29 // CHECK-AS32-Xassembler-NOT: warning: 30 // CHECK-AS32-Xassembler: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0" 31 // CHECK-AS32-Xassembler: "{{.*}}as{{(.exe)?}}" 32 // CHECK-AS32-Xassembler: "-a32" 33 // CHECK-AS32-Xassembler: "-many" 34 // CHECK-AS32-Xassembler: "-w" 35 36 // Check powerpc64-ibm-aix7.1.0.0, 64-bit. -Wa,<arg>,<arg> option. 37 // RUN: %clang -no-canonical-prefixes %s -### -c -o %t.o 2>&1 \ 38 // RUN: -Wa,-v,-w \ 39 // RUN: -target powerpc64-ibm-aix7.1.0.0 \ 40 // RUN: | FileCheck --check-prefix=CHECK-AS64-Wa %s 41 // CHECK-AS64-Wa-NOT: warning: 42 // CHECK-AS64-Wa: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc64-ibm-aix7.1.0.0" 43 // CHECK-AS64-Wa: "{{.*}}as{{(.exe)?}}" 44 // CHECK-AS64-Wa: "-a64" 45 // CHECK-AS64-Wa: "-many" 46 // CHECK-AS64-Wa: "-v" 47 // CHECK-AS64-Wa: "-w" 48 49 // Check powerpc-ibm-aix7.1.0.0, 32-bit. Multiple input files. 50 // RUN: %clang -no-canonical-prefixes -### -c \ 51 // RUN: %S/Inputs/aix_ppc_tree/dummy0.s \ 52 // RUN: %S/Inputs/aix_ppc_tree/dummy1.s \ 53 // RUN: %S/Inputs/aix_ppc_tree/dummy2.s 2>&1 \ 54 // RUN: -target powerpc-ibm-aix7.1.0.0 \ 55 // RUN: | FileCheck --check-prefix=CHECK-AS32-MultiInput %s 56 // CHECK-AS32-MultiInput-NOT: warning: 57 // CHECK-AS32-MultiInput: "{{.*}}as{{(.exe)?}}" 58 // CHECK-AS32-MultiInput: "-a32" 59 // CHECK-AS32-MultiInput: "-many" 60 // CHECK-AS32-MultiInput: "{{.*}}as{{(.exe)?}}" 61 // CHECK-AS32-MultiInput: "-a32" 62 // CHECK-AS32-MultiInput: "-many" 63 // CHECK-AS32-MultiInput: "{{.*}}as{{(.exe)?}}" 64 // CHECK-AS32-MultiInput: "-a32" 65 // CHECK-AS32-MultiInput: "-many" 66