• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Make sure Sparc does not use the integrated assembler by default.
2 
3 // RUN: %clang -target sparc-linux -### -c %s 2>&1 \
4 // RUN: | FileCheck -check-prefix=NO-IAS %s
5 
6 // RUN: %clang -target sparc-linux -fintegrated-as -### -c %s 2>&1 \
7 // RUN: | FileCheck -check-prefix=IAS %s
8 
9 // RUN: %clang -target sparc-linux -fno-integrated-as -### -c %s 2>&1 \
10 // RUN: | FileCheck -check-prefix=NO-IAS %s
11 
12 // IAS-NOT: "-no-integrated-as"
13 // NO-IAS: "-no-integrated-as"
14 
15 // RUN: %clang -no-canonical-prefixes -target sparc--netbsd \
16 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
17 // RUN: | FileCheck -check-prefix=SPARC %s
18 
19 // RUN: %clang -mcpu=v8 -no-canonical-prefixes -target sparc--netbsd \
20 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
21 // RUN: | FileCheck -check-prefix=SPARC-V8 %s
22 
23 // RUN: %clang -mcpu=supersparc -no-canonical-prefixes -target sparc--netbsd \
24 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
25 // RUN: | FileCheck -check-prefix=SPARC-V8 %s
26 
27 // RUN: %clang -mcpu=sparclite -no-canonical-prefixes -target sparc--netbsd \
28 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
29 // RUN: | FileCheck -check-prefix=SPARC-SPARCLITE %s
30 
31 // RUN: %clang -mcpu=f934 -no-canonical-prefixes -target sparc--netbsd \
32 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
33 // RUN: | FileCheck -check-prefix=SPARC-SPARCLITE %s
34 
35 // RUN: %clang -mcpu=hypersparc -no-canonical-prefixes -target sparc--netbsd \
36 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
37 // RUN: | FileCheck -check-prefix=SPARC-V8 %s
38 
39 // RUN: %clang -mcpu=sparclite86x -no-canonical-prefixes -target sparc--netbsd \
40 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
41 // RUN: | FileCheck -check-prefix=SPARC-SPARCLITE %s
42 
43 // RUN: %clang -mcpu=sparclet -no-canonical-prefixes -target sparc--netbsd \
44 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
45 // RUN: | FileCheck -check-prefix=SPARC-SPARCLET %s
46 
47 // RUN: %clang -mcpu=tsc701 -no-canonical-prefixes -target sparc--netbsd \
48 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
49 // RUN: | FileCheck -check-prefix=SPARC-SPARCLET %s
50 
51 // RUN: %clang -mcpu=v9 -no-canonical-prefixes -target sparc--netbsd \
52 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
53 // RUN: | FileCheck -check-prefix=SPARC-V8PLUS %s
54 
55 // RUN: %clang -mcpu=ultrasparc -no-canonical-prefixes -target sparc--netbsd \
56 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
57 // RUN: | FileCheck -check-prefix=SPARC-V8PLUS %s
58 
59 // RUN: %clang -mcpu=ultrasparc3 -no-canonical-prefixes -target sparc--netbsd \
60 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
61 // RUN: | FileCheck -check-prefix=SPARC-V8PLUS %s
62 
63 // RUN: %clang -mcpu=niagara -no-canonical-prefixes -target sparc--netbsd \
64 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
65 // RUN: | FileCheck -check-prefix=SPARC-V8PLUSB %s
66 
67 // RUN: %clang -mcpu=niagara2 -no-canonical-prefixes -target sparc--netbsd \
68 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
69 // RUN: | FileCheck -check-prefix=SPARC-V8PLUSB %s
70 
71 // RUN: %clang -mcpu=niagara3 -no-canonical-prefixes -target sparc--netbsd \
72 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
73 // RUN: | FileCheck -check-prefix=SPARC-V8PLUSD %s
74 
75 // RUN: %clang -mcpu=niagara4 -no-canonical-prefixes -target sparc--netbsd \
76 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
77 // RUN: | FileCheck -check-prefix=SPARC-V8PLUSD %s
78 
79 // RUN: %clang -mcpu=ma2100 -no-canonical-prefixes -target sparc \
80 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
81 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
82 
83 // RUN: %clang -mcpu=ma2150 -no-canonical-prefixes -target sparc \
84 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
85 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
86 
87 // RUN: %clang -mcpu=ma2155 -no-canonical-prefixes -target sparc \
88 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
89 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
90 
91 // RUN: %clang -mcpu=ma2450 -no-canonical-prefixes -target sparc \
92 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
93 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
94 
95 // RUN: %clang -mcpu=ma2455 -no-canonical-prefixes -target sparc \
96 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
97 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
98 
99 // RUN: %clang -mcpu=ma2x5x -no-canonical-prefixes -target sparc \
100 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
101 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
102 
103 // RUN: %clang -mcpu=ma2080 -no-canonical-prefixes -target sparc \
104 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
105 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
106 
107 // RUN: %clang -mcpu=ma2085 -no-canonical-prefixes -target sparc \
108 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
109 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
110 
111 // RUN: %clang -mcpu=ma2480 -no-canonical-prefixes -target sparc \
112 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
113 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
114 
115 // RUN: %clang -mcpu=ma2485 -no-canonical-prefixes -target sparc \
116 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
117 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
118 
119 // RUN: %clang -mcpu=ma2x8x -no-canonical-prefixes -target sparc \
120 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
121 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
122 
123 // RUN: %clang -mcpu=myriad2 -no-canonical-prefixes -target sparc \
124 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
125 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
126 
127 // RUN: %clang -mcpu=myriad2.1 -no-canonical-prefixes -target sparc \
128 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
129 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
130 
131 // RUN: %clang -mcpu=myriad2.2 -no-canonical-prefixes -target sparc \
132 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
133 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
134 
135 // RUN: %clang -mcpu=myriad2.3 -no-canonical-prefixes -target sparc \
136 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
137 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
138 
139 // RUN: %clang -mcpu=leon2 -no-canonical-prefixes -target sparc \
140 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
141 // RUN: | FileCheck -check-prefix=SPARC-V8 %s
142 
143 // RUN: %clang -mcpu=at697e -no-canonical-prefixes -target sparc \
144 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
145 // RUN: | FileCheck -check-prefix=SPARC-V8 %s
146 
147 // RUN: %clang -mcpu=at697f -no-canonical-prefixes -target sparc \
148 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
149 // RUN: | FileCheck -check-prefix=SPARC-V8 %s
150 
151 // RUN: %clang -mcpu=leon3 -no-canonical-prefixes -target sparc \
152 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
153 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
154 
155 // RUN: %clang -mcpu=ut699 -no-canonical-prefixes -target sparc \
156 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
157 // RUN: | FileCheck -check-prefix=SPARC-V8 %s
158 
159 // RUN: %clang -mcpu=gr712rc -no-canonical-prefixes -target sparc \
160 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
161 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
162 
163 // RUN: %clang -mcpu=leon4 -no-canonical-prefixes -target sparc \
164 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
165 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
166 
167 // RUN: %clang -mcpu=gr740 -no-canonical-prefixes -target sparc \
168 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
169 // RUN: | FileCheck -check-prefix=SPARC-LEON %s
170 
171 // SPARC: as{{.*}}" "-32" "-Av8" "-o"
172 // SPARC-V8: as{{.*}}" "-32" "-Av8" "-o"
173 // SPARC-LEON: as{{.*}}" "-32" "-Aleon" "-o"
174 // SPARC-SPARCLITE: as{{.*}}" "-32" "-Asparclite" "-o"
175 // SPARC-SPARCLET: as{{.*}}" "-32" "-Asparclet" "-o"
176 // SPARC-V8PLUS: as{{.*}}" "-32" "-Av8plus" "-o"
177 // SPARC-V8PLUSB: as{{.*}}" "-32" "-Av8plusb" "-o"
178 // SPARC-V8PLUSD: as{{.*}}" "-32" "-Av8plusd" "-o"
179