Skip to content

Commit d1a94a5

Browse files
authored
Openbsd loongarch on openbsd.c
1 parent 9d5b9c7 commit d1a94a5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

clang/test/Driver/openbsd.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@
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

0 commit comments

Comments
 (0)