annotate clang/test/Driver/aix-as.c @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 79ff65ed7e25
children 5f17cb93ff66
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // General tests that as(1) invocations on AIX targets are sane. Note that we
anatofuz
parents:
diff changeset
2 // only test assembler functionalities in this suite.
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 // Check powerpc-ibm-aix7.1.0.0, 32-bit.
anatofuz
parents:
diff changeset
5 // RUN: %clang -no-canonical-prefixes %s -### -c -o %t.o 2>&1 \
anatofuz
parents:
diff changeset
6 // RUN: -target powerpc-ibm-aix7.1.0.0 \
anatofuz
parents:
diff changeset
7 // RUN: | FileCheck --check-prefix=CHECK-AS32 %s
anatofuz
parents:
diff changeset
8 // CHECK-AS32-NOT: warning:
anatofuz
parents:
diff changeset
9 // CHECK-AS32: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
anatofuz
parents:
diff changeset
10 // CHECK-AS32: "{{.*}}as{{(.exe)?}}"
anatofuz
parents:
diff changeset
11 // CHECK-AS32: "-a32"
anatofuz
parents:
diff changeset
12 // CHECK-AS32: "-many"
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 // Check powerpc64-ibm-aix7.1.0.0, 64-bit.
anatofuz
parents:
diff changeset
15 // RUN: %clang -no-canonical-prefixes %s -### -c -o %t.o 2>&1 \
anatofuz
parents:
diff changeset
16 // RUN: -target powerpc64-ibm-aix7.1.0.0 \
anatofuz
parents:
diff changeset
17 // RUN: | FileCheck --check-prefix=CHECK-AS64 %s
anatofuz
parents:
diff changeset
18 // CHECK-AS64-NOT: warning:
anatofuz
parents:
diff changeset
19 // CHECK-AS64: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc64-ibm-aix7.1.0.0"
anatofuz
parents:
diff changeset
20 // CHECK-AS64: "{{.*}}as{{(.exe)?}}"
anatofuz
parents:
diff changeset
21 // CHECK-AS64: "-a64"
anatofuz
parents:
diff changeset
22 // CHECK-AS64: "-many"
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 // Check powerpc-ibm-aix7.1.0.0, 32-bit. -Xassembler <arg> option.
anatofuz
parents:
diff changeset
25 // RUN: %clang -no-canonical-prefixes %s -### -c -o %t.o 2>&1 \
anatofuz
parents:
diff changeset
26 // RUN: -Xassembler -w \
anatofuz
parents:
diff changeset
27 // RUN: -target powerpc-ibm-aix7.1.0.0 \
anatofuz
parents:
diff changeset
28 // RUN: | FileCheck --check-prefix=CHECK-AS32-Xassembler %s
anatofuz
parents:
diff changeset
29 // CHECK-AS32-Xassembler-NOT: warning:
anatofuz
parents:
diff changeset
30 // CHECK-AS32-Xassembler: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
anatofuz
parents:
diff changeset
31 // CHECK-AS32-Xassembler: "{{.*}}as{{(.exe)?}}"
anatofuz
parents:
diff changeset
32 // CHECK-AS32-Xassembler: "-a32"
anatofuz
parents:
diff changeset
33 // CHECK-AS32-Xassembler: "-many"
anatofuz
parents:
diff changeset
34 // CHECK-AS32-Xassembler: "-w"
anatofuz
parents:
diff changeset
35
anatofuz
parents:
diff changeset
36 // Check powerpc64-ibm-aix7.1.0.0, 64-bit. -Wa,<arg>,<arg> option.
anatofuz
parents:
diff changeset
37 // RUN: %clang -no-canonical-prefixes %s -### -c -o %t.o 2>&1 \
anatofuz
parents:
diff changeset
38 // RUN: -Wa,-v,-w \
anatofuz
parents:
diff changeset
39 // RUN: -target powerpc64-ibm-aix7.1.0.0 \
anatofuz
parents:
diff changeset
40 // RUN: | FileCheck --check-prefix=CHECK-AS64-Wa %s
anatofuz
parents:
diff changeset
41 // CHECK-AS64-Wa-NOT: warning:
anatofuz
parents:
diff changeset
42 // CHECK-AS64-Wa: {{.*}}clang{{(.exe)?}}" "-cc1" "-triple" "powerpc64-ibm-aix7.1.0.0"
anatofuz
parents:
diff changeset
43 // CHECK-AS64-Wa: "{{.*}}as{{(.exe)?}}"
anatofuz
parents:
diff changeset
44 // CHECK-AS64-Wa: "-a64"
anatofuz
parents:
diff changeset
45 // CHECK-AS64-Wa: "-many"
anatofuz
parents:
diff changeset
46 // CHECK-AS64-Wa: "-v"
anatofuz
parents:
diff changeset
47 // CHECK-AS64-Wa: "-w"
anatofuz
parents:
diff changeset
48
anatofuz
parents:
diff changeset
49 // Check powerpc-ibm-aix7.1.0.0, 32-bit. Multiple input files.
anatofuz
parents:
diff changeset
50 // RUN: %clang -no-canonical-prefixes -### -c \
anatofuz
parents:
diff changeset
51 // RUN: %S/Inputs/aix_ppc_tree/dummy0.s \
anatofuz
parents:
diff changeset
52 // RUN: %S/Inputs/aix_ppc_tree/dummy1.s \
anatofuz
parents:
diff changeset
53 // RUN: %S/Inputs/aix_ppc_tree/dummy2.s 2>&1 \
anatofuz
parents:
diff changeset
54 // RUN: -target powerpc-ibm-aix7.1.0.0 \
anatofuz
parents:
diff changeset
55 // RUN: | FileCheck --check-prefix=CHECK-AS32-MultiInput %s
anatofuz
parents:
diff changeset
56 // CHECK-AS32-MultiInput-NOT: warning:
anatofuz
parents:
diff changeset
57 // CHECK-AS32-MultiInput: "{{.*}}as{{(.exe)?}}"
anatofuz
parents:
diff changeset
58 // CHECK-AS32-MultiInput: "-a32"
anatofuz
parents:
diff changeset
59 // CHECK-AS32-MultiInput: "-many"
anatofuz
parents:
diff changeset
60 // CHECK-AS32-MultiInput: "{{.*}}as{{(.exe)?}}"
anatofuz
parents:
diff changeset
61 // CHECK-AS32-MultiInput: "-a32"
anatofuz
parents:
diff changeset
62 // CHECK-AS32-MultiInput: "-many"
anatofuz
parents:
diff changeset
63 // CHECK-AS32-MultiInput: "{{.*}}as{{(.exe)?}}"
anatofuz
parents:
diff changeset
64 // CHECK-AS32-MultiInput: "-a32"
anatofuz
parents:
diff changeset
65 // CHECK-AS32-MultiInput: "-many"