|
8 | 8 | // RUN: mkdir -p %t/basic_riscv32_esp_tree/bin |
9 | 9 | // RUN: ln -s %clang %t/basic_riscv32_esp_tree/bin/clang |
10 | 10 | // RUN: ln -s %S/Inputs/basic_riscv32_esp_tree/bin/ld.lld %t/basic_riscv32_esp_tree/bin/ld.lld |
11 | | -// RUN: ln -s %S/Inputs/basic_riscv32_esp_tree/bin/riscv32-esp-elf-as %t/basic_riscv32_esp_tree/bin/riscv32-esp-elf-as |
12 | | -// RUN: ln -s %S/Inputs/basic_riscv32_esp_tree/bin/riscv32-esp-elf-ld %t/basic_riscv32_esp_tree/bin/riscv32-esp-elf-ld |
| 11 | +// RUN: ln -s %S/Inputs/basic_riscv32_esp_tree/bin/riscv32-esp-elf-clang-as %t/basic_riscv32_esp_tree/bin/riscv32-esp-elf-clang-as |
| 12 | +// RUN: ln -s %S/Inputs/basic_riscv32_esp_tree/bin/riscv32-esp-elf-clang-ld %t/basic_riscv32_esp_tree/bin/riscv32-esp-elf-clang-ld |
13 | 13 | // RUN: ln -s %S/Inputs/basic_riscv32_esp_tree/lib %t/basic_riscv32_esp_tree/lib |
14 | 14 |
|
15 | 15 | // RUN: %t/basic_riscv32_esp_tree/bin/clang %s -### 2>&1 --target=riscv32-esp-elf \ |
|
56 | 56 | // CHECK-ESP-RV32IMAC-FORCEAS-SAME: "-internal-isystem" "[[RESOURCE_DIR]]{{[/\\]+}}include" |
57 | 57 | // CHECK-ESP-RV32IMAC-FORCEAS-SAME: "-internal-isystem" "[[SYSROOT]]{{[/\\]+}}riscv32-esp-unknown-elf{{[/\\]+}}rv32imac-zicsr-zifencei_ilp32{{[/\\]+}}include" |
58 | 58 | // CHECK-ESP-RV32IMAC-FORCEAS-SAME: "-x" "c++" "{{.*}}baremetal-esp.cpp" |
59 | | -// CHECK-ESP-RV32IMAC-FORCEAS-NEXT: riscv32-esp-elf-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" "-march=rv32imac" "-mabi=ilp32" |
| 59 | +// CHECK-ESP-RV32IMAC-FORCEAS-NEXT: riscv32-esp-elf-clang-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" "-march=rv32imac" "-mabi=ilp32" |
60 | 60 | // CHECK-ESP-RV32IMAC-FORCEAS-NEXT: ld.lld{{(.exe)?}}" |
61 | 61 | // CHECK-ESP-RV32IMAC-FORCEAS-SAME: "--sysroot=[[SYSROOT]]" |
62 | 62 | // CHECK-ESP-RV32IMAC-FORCEAS-SAME: "-m" "elf32lriscv" |
|
67 | 67 | // CHECK-ESP-RV32IMAC-FORCEAS-SAME: "-lm" "--start-group" "-lc" "-lgloss" "-lnosys" "--end-group" |
68 | 68 | // CHECK-ESP-RV32IMAC-FORCEAS-SAME: "-lclang_rt.builtins" |
69 | 69 |
|
70 | | -// RUN: %t/basic_riscv32_esp_tree/bin/clang %s -### 2>&1 --target=riscv32-esp-elf --ld-path=riscv32-esp-elf-ld \ |
| 70 | +// RUN: %t/basic_riscv32_esp_tree/bin/clang %s -### 2>&1 --target=riscv32-esp-elf --ld-path=riscv32-esp-elf-clang-ld \ |
71 | 71 | // RUN: -L some/directory/user/asked/for \ |
72 | 72 | // RUN: --sysroot=%t/basic_riscv32_esp_tree/lib/clang-runtimes \ |
73 | 73 | // RUN: | FileCheck --check-prefix=CHECK-ESP-RV32IMAC-FORCELD %s |
74 | 74 | // CHECK-ESP-RV32IMAC-FORCELD: "-isysroot" "[[SYSROOT:[^"]*]]" |
75 | | -// CHECK-ESP-RV32IMAC-FORCELD: riscv32-esp-elf-ld{{(.exe)?}}" |
| 75 | +// CHECK-ESP-RV32IMAC-FORCELD: riscv32-esp-elf-clang-ld{{(.exe)?}}" |
76 | 76 | // CHECK-ESP-RV32IMAC-FORCELD-SAME: "--sysroot=[[SYSROOT]]" |
77 | 77 | // CHECK-ESP-RV32IMAC-FORCELD-SAME: "-m" "elf32lriscv" |
78 | 78 | // CHECK-ESP-RV32IMAC-FORCELD-SAME: "-o" "a.out" |
|
175 | 175 | // RUN: -march=rv32i -mabi=ilp32 \ |
176 | 176 | // RUN: --sysroot=%t/basic_riscv32_esp_tree/lib/clang-runtimes \ |
177 | 177 | // RUN: | FileCheck --check-prefix=CHECK-ESP-RV32I-FORCEAS %s |
178 | | -// CHECK-ESP-RV32I-FORCEAS: riscv32-esp-elf-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" "-march=rv32i" "-mabi=ilp32" |
| 178 | +// CHECK-ESP-RV32I-FORCEAS: riscv32-esp-elf-clang-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" "-march=rv32i" "-mabi=ilp32" |
179 | 179 |
|
180 | 180 | // RUN: %t/basic_riscv32_esp_tree/bin/clang %s -### 2>&1 --target=riscv32-esp-elf \ |
181 | 181 | // RUN: -march=rv32i -mabi=ilp32 \ |
|
229 | 229 | // RUN: -march=rv32im -mabi=ilp32 \ |
230 | 230 | // RUN: --sysroot=%t/basic_riscv32_esp_tree/lib/clang-runtimes \ |
231 | 231 | // RUN: | FileCheck --check-prefix=CHECK-ESP-RV32IM-FORCEAS %s |
232 | | -// CHECK-ESP-RV32IM-FORCEAS: riscv32-esp-elf-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" "-march=rv32im" "-mabi=ilp32" |
| 232 | +// CHECK-ESP-RV32IM-FORCEAS: riscv32-esp-elf-clang-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" "-march=rv32im" "-mabi=ilp32" |
233 | 233 |
|
234 | 234 | // RUN: %t/basic_riscv32_esp_tree/bin/clang %s -### 2>&1 --target=riscv32-esp-elf -fno-integrated-as \ |
235 | 235 | // RUN: -march=rv32imc -mabi=ilp32 \ |
236 | 236 | // RUN: --sysroot=%t/basic_riscv32_esp_tree/lib/clang-runtimes \ |
237 | 237 | // RUN: | FileCheck --check-prefix=CHECK-ESP-RV32IMC-FORCEAS %s |
238 | | -// CHECK-ESP-RV32IMC-FORCEAS: riscv32-esp-elf-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" "-march=rv32imc" "-mabi=ilp32" |
| 238 | +// CHECK-ESP-RV32IMC-FORCEAS: riscv32-esp-elf-clang-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" "-march=rv32imc" "-mabi=ilp32" |
239 | 239 |
|
240 | 240 | // RUN: %t/basic_riscv32_esp_tree/bin/clang %s -### 2>&1 --target=riscv32-esp-elf -fno-integrated-as \ |
241 | 241 | // RUN: -march=rv32imac -mabi=ilp32 \ |
242 | 242 | // RUN: --sysroot=%t/basic_riscv32_esp_tree/lib/clang-runtimes \ |
243 | 243 | // RUN: | FileCheck --check-prefix=CHECK-ESP-RV32IMAC-FORCEAS2 %s |
244 | | -// CHECK-ESP-RV32IMAC-FORCEAS2: riscv32-esp-elf-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" "-march=rv32imac" "-mabi=ilp32" |
| 244 | +// CHECK-ESP-RV32IMAC-FORCEAS2: riscv32-esp-elf-clang-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" "-march=rv32imac" "-mabi=ilp32" |
245 | 245 |
|
246 | 246 | // RUN: %t/basic_riscv32_esp_tree/bin/clang %s -### 2>&1 --target=riscv32-esp-elf -march=rv32imafc -mabi=ilp32f \ |
247 | 247 | // RUN: --sysroot=%t/basic_riscv32_esp_tree/lib/clang-runtimes \ |
|
280 | 280 | // RUN: -march=rv32imafc -mabi=ilp32f \ |
281 | 281 | // RUN: --sysroot=%t/basic_riscv32_esp_tree/lib/clang-runtimes \ |
282 | 282 | // RUN: | FileCheck --check-prefix=CHECK-ESP-RV32IMAFC-FORCEAS %s |
283 | | -// CHECK-ESP-RV32IMAFC-FORCEAS: riscv32-esp-elf-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" "-march=rv32imafc" "-mabi=ilp32f" |
| 283 | +// CHECK-ESP-RV32IMAFC-FORCEAS: riscv32-esp-elf-clang-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" "-march=rv32imafc" "-mabi=ilp32f" |
284 | 284 |
|
285 | 285 | // Check that compiler-rt library without the arch filename suffix will |
286 | 286 | // be used if present. |
|
308 | 308 | // RUN: mkdir -p %t/basic_xtensa_esp_tree/bin |
309 | 309 | // RUN: ln -s %clang %t/basic_xtensa_esp_tree/bin/clang |
310 | 310 | // RUN: ln -s %S/Inputs/basic_xtensa_esp_tree/bin/ld.lld %t/basic_xtensa_esp_tree/bin/ld.lld |
311 | | -// RUN: ln -s %S/Inputs/basic_xtensa_esp_tree/bin/xtensa-esp32-elf-as %t/basic_xtensa_esp_tree/bin/xtensa-esp32-elf-as |
312 | | -// RUN: ln -s %S/Inputs/basic_xtensa_esp_tree/bin/xtensa-esp32-elf-ld %t/basic_xtensa_esp_tree/bin/xtensa-esp32-elf-ld |
313 | | -// RUN: ln -s %S/Inputs/basic_xtensa_esp_tree/bin/xtensa-esp32s2-elf-as %t/basic_xtensa_esp_tree/bin/xtensa-esp32s2-elf-as |
314 | | -// RUN: ln -s %S/Inputs/basic_xtensa_esp_tree/bin/xtensa-esp32s2-elf-ld %t/basic_xtensa_esp_tree/bin/xtensa-esp32s2-elf-ld |
315 | | -// RUN: ln -s %S/Inputs/basic_xtensa_esp_tree/bin/xtensa-esp32s3-elf-as %t/basic_xtensa_esp_tree/bin/xtensa-esp32s3-elf-as |
316 | | -// RUN: ln -s %S/Inputs/basic_xtensa_esp_tree/bin/xtensa-esp32s3-elf-ld %t/basic_xtensa_esp_tree/bin/xtensa-esp32s3-elf-ld |
| 311 | +// RUN: ln -s %S/Inputs/basic_xtensa_esp_tree/bin/xtensa-esp32-elf-clang-as %t/basic_xtensa_esp_tree/bin/xtensa-esp32-elf-clang-as |
| 312 | +// RUN: ln -s %S/Inputs/basic_xtensa_esp_tree/bin/xtensa-esp32-elf-clang-ld %t/basic_xtensa_esp_tree/bin/xtensa-esp32-elf-clang-ld |
| 313 | +// RUN: ln -s %S/Inputs/basic_xtensa_esp_tree/bin/xtensa-esp32s2-elf-clang-as %t/basic_xtensa_esp_tree/bin/xtensa-esp32s2-elf-clang-as |
| 314 | +// RUN: ln -s %S/Inputs/basic_xtensa_esp_tree/bin/xtensa-esp32s2-elf-clang-ld %t/basic_xtensa_esp_tree/bin/xtensa-esp32s2-elf-clang-ld |
| 315 | +// RUN: ln -s %S/Inputs/basic_xtensa_esp_tree/bin/xtensa-esp32s3-elf-clang-as %t/basic_xtensa_esp_tree/bin/xtensa-esp32s3-elf-clang-as |
| 316 | +// RUN: ln -s %S/Inputs/basic_xtensa_esp_tree/bin/xtensa-esp32s3-elf-clang-ld %t/basic_xtensa_esp_tree/bin/xtensa-esp32s3-elf-clang-ld |
317 | 317 | // RUN: ln -s %S/Inputs/basic_xtensa_esp_tree/lib %t/basic_xtensa_esp_tree/lib |
318 | 318 |
|
319 | 319 | // ESP32 is default |
|
360 | 360 | // CHECK-ESP-ESP32-FORCEAS-SAME: "-internal-isystem" "[[RESOURCE_DIR]]{{[/\\]+}}include" |
361 | 361 | // CHECK-ESP-ESP32-FORCEAS-SAME: "-internal-isystem" "[[SYSROOT]]{{[/\\]+}}xtensa-esp-unknown-elf{{[/\\]+}}esp32{{[/\\]+}}include" |
362 | 362 | // CHECK-ESP-ESP32-FORCEAS-SAME: "-x" "c++" "{{.*}}baremetal-esp.cpp" |
363 | | -// CHECK-ESP-ESP32-FORCEAS-NEXT: xtensa-esp32-elf-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" |
| 363 | +// CHECK-ESP-ESP32-FORCEAS-NEXT: xtensa-esp32-elf-clang-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" |
364 | 364 | // CHECK-ESP-ESP32-FORCEAS-NEXT: ld.lld{{(.exe)?}}" |
365 | 365 | // CHECK-ESP-ESP32-FORCEAS-SAME: "--sysroot=[[SYSROOT]]" |
366 | 366 | // CHECK-ESP-ESP32-FORCEAS-SAME: "-o" "a.out" |
|
370 | 370 | // CHECK-ESP-ESP32-FORCEAS-SAME: "-lm" "--start-group" "-lc" "-lgloss" "-lnosys" "--end-group" |
371 | 371 | // CHECK-ESP-ESP32-FORCEAS-SAME: "-lclang_rt.builtins" |
372 | 372 |
|
373 | | -// RUN: %t/basic_xtensa_esp_tree/bin/clang %s -### 2>&1 --target=xtensa-esp-elf --ld-path=xtensa-esp32-elf-ld \ |
| 373 | +// RUN: %t/basic_xtensa_esp_tree/bin/clang %s -### 2>&1 --target=xtensa-esp-elf --ld-path=xtensa-esp32-elf-clang-ld \ |
374 | 374 | // RUN: -L some/directory/user/asked/for \ |
375 | 375 | // RUN: --sysroot=%t/basic_xtensa_esp_tree/lib/clang-runtimes \ |
376 | 376 | // RUN: | FileCheck --check-prefix=CHECK-ESP-ESP32-FORCELD %s |
377 | 377 | // CHECK-ESP-ESP32-FORCELD: "-isysroot" "[[SYSROOT:[^"]*]]" |
378 | | -// CHECK-ESP-ESP32-FORCELD-NEXT: xtensa-esp32-elf-ld{{(.exe)?}}" |
| 378 | +// CHECK-ESP-ESP32-FORCELD-NEXT: xtensa-esp32-elf-clang-ld{{(.exe)?}}" |
379 | 379 | // CHECK-ESP-ESP32-FORCELD-SAME: "--sysroot=[[SYSROOT]]" |
380 | 380 | // CHECK-ESP-ESP32-FORCELD-SAME: "-o" "a.out" |
381 | 381 | // CHECK-ESP-ESP32-FORCELD-SAME: "-X" "{{.*}}.o" |
|
527 | 527 | // CHECK-ESP-ESP32S2-FORCEAS-SAME: "-internal-isystem" "[[SYSROOT]]{{[/\\]+}}xtensa-esp-unknown-elf{{[/\\]+}}include{{[/\\]+}}c++{{[/\\]+}}11.2.0" |
528 | 528 | // CHECK-ESP-ESP32S2-FORCEAS-SAME: "-internal-isystem" "[[RESOURCE_DIR]]{{[/\\]+}}include" |
529 | 529 | // CHECK-ESP-ESP32S2-FORCEAS-SAME: "-internal-isystem" "[[SYSROOT]]{{[/\\]+}}xtensa-esp-unknown-elf{{[/\\]+}}esp32s2{{[/\\]+}}include" |
530 | | -// CHECK-ESP-ESP32S2-FORCEAS: xtensa-esp32s2-elf-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" |
| 530 | +// CHECK-ESP-ESP32S2-FORCEAS: xtensa-esp32s2-elf-clang-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" |
531 | 531 | // CHECK-ESP-ESP32S2-FORCEAS-NEXT: ld.lld{{(.exe)?}}" |
532 | 532 | // CHECK-ESP-ESP32S2-FORCEAS-SAME: "--sysroot=[[SYSROOT]]" |
533 | 533 | // CHECK-ESP-ESP32S2-FORCEAS-SAME: "-L[[SYSROOT]]{{[/\\]+}}xtensa-esp-unknown-elf{{[/\\]+}}esp32s2{{[/\\]+}}lib" |
|
573 | 573 | // CHECK-ESP-ESP32S3-FORCEAS-SAME: "-internal-isystem" "[[SYSROOT]]{{[/\\]+}}xtensa-esp-unknown-elf{{[/\\]+}}include{{[/\\]+}}c++{{[/\\]+}}11.2.0" |
574 | 574 | // CHECK-ESP-ESP32S3-FORCEAS-SAME: "-internal-isystem" "[[RESOURCE_DIR]]{{[/\\]+}}include" |
575 | 575 | // CHECK-ESP-ESP32S3-FORCEAS-SAME: "-internal-isystem" "[[SYSROOT]]{{[/\\]+}}xtensa-esp-unknown-elf{{[/\\]+}}esp32s3{{[/\\]+}}include" |
576 | | -// CHECK-ESP-ESP32S3-FORCEAS: xtensa-esp32s3-elf-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" |
| 576 | +// CHECK-ESP-ESP32S3-FORCEAS: xtensa-esp32s3-elf-clang-as{{(.exe)?}}" "-o" "{{.*}}.o" "-c" "{{.*}}.s" |
577 | 577 | // CHECK-ESP-ESP32S3-FORCEAS-NEXT: ld.lld{{(.exe)?}}" |
578 | 578 | // CHECK-ESP-ESP32S3-FORCEAS-SAME: "--sysroot=[[SYSROOT]]" |
579 | 579 | // CHECK-ESP-ESP32S3-FORCEAS-SAME: "-L[[SYSROOT]]{{[/\\]+}}xtensa-esp-unknown-elf{{[/\\]+}}esp32s3{{[/\\]+}}lib" |
|
0 commit comments