File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 2929// CHECK-MIPS64-CPU: "-target-cpu" "mips3"
3030// CHECK-MIPS64EL-CPU: "-target-cpu" "mips3"
3131
32+ // Check that LoongArch passes the correct linker emulation.
33+ //
34+ // RUN: %clang --target=loongarch64-unknown-openbsd -### %s %s 2>&1 \
35+ // RUN: | FileCheck --check-prefix=CHECK-LA64-LD %s
36+ // CHECK-LA64-LD: ld{{.*}}" {{.*}} "-m" "elf64loongarch"
37+ //
38+ // Check options passed to the linker on LoongArch
39+ //
40+ // RUN: %clang --target=loongarch64-unknown-openbsd -mno-relax -### %s %s 2>&1 \
41+ // RUN: | FileCheck --check-prefix=CHECK-LA64-LD-OPTS %s
42+ // CHECK-LA64-LD-OPTS: ld{{.*}}" {{.*}} "-X" "--no-relax"
43+ //
44+
3245// Check that the new linker flags are passed to OpenBSD
3346// RUN: %clang --target=i686-pc-openbsd -r -### %s 2>&1 \
3447// RUN: | FileCheck --check-prefix=CHECK-LD-R %s
You can’t perform that action at this time.
0 commit comments