r347720 - [RISCV] Mark unit tests as "requires: riscv-registered-target"
Mandeep Singh Grang via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 27 14:53:57 PST 2018
Author: mgrang
Date: Tue Nov 27 14:53:57 2018
New Revision: 347720
URL: http://llvm.org/viewvc/llvm-project?rev=347720&view=rev
Log:
[RISCV] Mark unit tests as "requires: riscv-registered-target"
Some of these tests break if the RISCV backend has not been built.
Reland D54816.
Modified:
cfe/trunk/test/Driver/riscv-abi.c
cfe/trunk/test/Driver/riscv-arch.c
cfe/trunk/test/Driver/riscv-features.c
cfe/trunk/test/Driver/riscv-gnutools.c
cfe/trunk/test/Driver/riscv32-toolchain.c
cfe/trunk/test/Driver/riscv64-toolchain.c
Modified: cfe/trunk/test/Driver/riscv-abi.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/riscv-abi.c?rev=347720&r1=347719&r2=347720&view=diff
==============================================================================
--- cfe/trunk/test/Driver/riscv-abi.c (original)
+++ cfe/trunk/test/Driver/riscv-abi.c Tue Nov 27 14:53:57 2018
@@ -1,3 +1,5 @@
+// REQUIRES: riscv-registered-target
+
// RUN: %clang -target riscv32-unknown-elf %s -### -o %t.o 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-ILP32 %s
// RUN: %clang -target riscv32-unknown-elf %s -### -o %t.o -mabi=ilp32 2>&1 \
Modified: cfe/trunk/test/Driver/riscv-arch.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/riscv-arch.c?rev=347720&r1=347719&r2=347720&view=diff
==============================================================================
--- cfe/trunk/test/Driver/riscv-arch.c (original)
+++ cfe/trunk/test/Driver/riscv-arch.c Tue Nov 27 14:53:57 2018
@@ -1,3 +1,5 @@
+// REQUIRES: riscv-registered-target
+
// RUN: %clang -target riscv32-unknown-elf -march=rv32i -### %s \
// RUN: -fsyntax-only 2>&1 | FileCheck %s
// RUN: %clang -target riscv32-unknown-elf -march=rv32im -### %s \
Modified: cfe/trunk/test/Driver/riscv-features.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/riscv-features.c?rev=347720&r1=347719&r2=347720&view=diff
==============================================================================
--- cfe/trunk/test/Driver/riscv-features.c (original)
+++ cfe/trunk/test/Driver/riscv-features.c Tue Nov 27 14:53:57 2018
@@ -1,3 +1,5 @@
+// REQUIRES: riscv-registered-target
+
// RUN: %clang -target riscv32-unknown-elf -### %s -fsyntax-only 2>&1 | FileCheck %s
// RUN: %clang -target riscv64-unknown-elf -### %s -fsyntax-only 2>&1 | FileCheck %s
Modified: cfe/trunk/test/Driver/riscv-gnutools.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/riscv-gnutools.c?rev=347720&r1=347719&r2=347720&view=diff
==============================================================================
--- cfe/trunk/test/Driver/riscv-gnutools.c (original)
+++ cfe/trunk/test/Driver/riscv-gnutools.c Tue Nov 27 14:53:57 2018
@@ -1,3 +1,5 @@
+// REQUIRES: riscv-registered-target
+
// Check gnutools are invoked with propagated values for -mabi and -march.
// RUN: %clang -target riscv32 -fno-integrated-as %s -### -c \
Modified: cfe/trunk/test/Driver/riscv32-toolchain.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/riscv32-toolchain.c?rev=347720&r1=347719&r2=347720&view=diff
==============================================================================
--- cfe/trunk/test/Driver/riscv32-toolchain.c (original)
+++ cfe/trunk/test/Driver/riscv32-toolchain.c Tue Nov 27 14:53:57 2018
@@ -1,3 +1,5 @@
+// REQUIRES: riscv-registered-target
+
// A basic clang -cc1 command-line, and simple environment check.
// RUN: %clang %s -### -no-canonical-prefixes -target riscv32 2>&1 | FileCheck -check-prefix=CC1 %s
Modified: cfe/trunk/test/Driver/riscv64-toolchain.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/riscv64-toolchain.c?rev=347720&r1=347719&r2=347720&view=diff
==============================================================================
--- cfe/trunk/test/Driver/riscv64-toolchain.c (original)
+++ cfe/trunk/test/Driver/riscv64-toolchain.c Tue Nov 27 14:53:57 2018
@@ -1,3 +1,5 @@
+// REQUIRES: riscv-registered-target
+
// A basic clang -cc1 command-line, and simple environment check.
// RUN: %clang %s -### -no-canonical-prefixes -target riscv64 2>&1 | FileCheck -check-prefix=CC1 %s
More information about the cfe-commits
mailing list