Skip to content

Commit f427266

Browse files
authored
joining --no-relax test with riscv64
1 parent e376442 commit f427266

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

clang/test/Driver/openbsd.c

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,6 @@
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-
4532
// Check that the new linker flags are passed to OpenBSD
4633
// RUN: %clang --target=i686-pc-openbsd -r -### %s 2>&1 \
4734
// RUN: | FileCheck --check-prefix=CHECK-LD-R %s
@@ -140,9 +127,12 @@
140127
// UNWIND-TABLES: "-funwind-tables=2"
141128
// NO-UNWIND-TABLES-NOT: "-funwind-tables=2"
142129

143-
// Check that the -X and --no-relax flags are passed to the linker on riscv64
130+
// Check that the -X and --no-relax flags are passed to the linker
131+
// RUN: %clang --target=loongarch64-unknown-openbsd -mno-relax -### %s 2>&1 \
132+
// RUN: | FileCheck --check-prefix=LA64-FLAGS %s
144133
// RUN: %clang --target=riscv64-unknown-openbsd -mno-relax -### %s 2>&1 \
145134
// RUN: | FileCheck -check-prefix=RISCV64-FLAGS %s
135+
// LA64-FLAGS: "-X" "--no-relax"
146136
// RISCV64-FLAGS: "-X" "--no-relax"
147137

148138
// Check passing LTO flags to the linker

0 commit comments

Comments
 (0)