Skip to content

Commit 7635b70

Browse files
committed
Remove precanned binaries from tests and invoke clang during tests
1 parent 2241583 commit 7635b70

File tree

9 files changed

+7
-62
lines changed

9 files changed

+7
-62
lines changed

cross-project-tests/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
config.test_format = lit.formats.ShTest(not llvm_config.use_lit_shell)
2020

2121
# suffixes: A list of file extensions to treat as test files.
22-
config.suffixes = [".c", ".cl", ".cpp", ".m"]
22+
config.suffixes = [".c", ".cl", ".cpp", ".m", ".s"]
2323

2424
# excludes: A list of directories to exclude from the testsuite. The 'Inputs'
2525
# subdirectories contain auxiliary inputs for various tests in their parent
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
if "clang" not in config.available_features or "RISCV" not in config.targets_to_build:
2+
config.unsupported = True

llvm/test/tools/llvm-objdump/RISCV/riscv32-ar-coverage.s renamed to cross-project-tests/tools/llvm-objdump/RISCV/riscv32-ar-coverage.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# RUN: llvm-objdump -d %p/Inputs/riscv32-ar-coverage | FileCheck %s
1+
# RUN: %clang --target=fuchsia-elf-riscv32 -march=rv32g_zclsd_zilsd %s -nostdlib -o %t
2+
# RUN: llvm-objdump -d %t | FileCheck %s
23

34
# CHECK: 00001000 <_start>:
45
# CHECK-NEXT: 1000: 00000517 auipc a0, 0x0

llvm/test/tools/llvm-objdump/RISCV/riscv64-ar-coverage.s renamed to cross-project-tests/tools/llvm-objdump/RISCV/riscv64-ar-coverage.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# RUN: llvm-objdump -d %p/Inputs/riscv64-ar-coverage | FileCheck %s
1+
# RUN: %clang --target=fuchsia-elf-riscv64 -march=rv64gc_zcb %s -nostdlib -o %t
2+
# RUN: llvm-objdump -d %t | FileCheck %s
23

34
# CHECK: 0000000000001000 <_start>:
45
# CHECK-NEXT: 1000: 00001517 auipc a0, 0x1
-1.01 MB
Binary file not shown.
-8.93 KB
Binary file not shown.
-1.01 MB
Binary file not shown.

llvm/test/tools/llvm-objdump/RISCV/lit.local.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

llvm/test/tools/llvm-objdump/RISCV/riscv-ar.s

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)