]> granicus.if.org Git - clang/commitdiff
[RISCV] Mark unit tests as "requires: riscv-registered-target"
authorMandeep Singh Grang <mgrang@codeaurora.org>
Tue, 27 Nov 2018 22:53:57 +0000 (22:53 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Tue, 27 Nov 2018 22:53:57 +0000 (22:53 +0000)
Some of these tests break if the RISCV backend has not been built.

Reland D54816.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347720 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/riscv-abi.c
test/Driver/riscv-arch.c
test/Driver/riscv-features.c
test/Driver/riscv-gnutools.c
test/Driver/riscv32-toolchain.c
test/Driver/riscv64-toolchain.c

index 8b79c8462bae135276237f1daca688c8477f53f6..de8c991b805b5f0439487ea71b444d8d5a2f1902 100644 (file)
@@ -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 \
index 5329fe87aac732e3c0e0b0b0ad9c548485a9c75e..205a1c8453b1f264f5e3977a858b7e75e8f92de9 100644 (file)
@@ -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 \
index 95f84f31c611582f69ff2e74a148128af921c69e..35f36448373458abc195d53a779190bb1ccc5c67 100644 (file)
@@ -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
 
index afcb5052aa3f436a662fab7c54f9504a209fce80..123cde94ec0cc93aa0a731c854d376b4ed62b36c 100644 (file)
@@ -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 \
index 9e8af3a8ff45c587f20eb39d47b7e3ef4e42b4e7..e22b145040c11f7e42f4fa425e5a58521c66a506 100644 (file)
@@ -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
index 44dcc937df2d87bc73872b86388557bff4182d24..f08ac8a5720b98c8b8e8456e711cfa25c71fabf1 100644 (file)
@@ -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