Skip to content

Commit 9912f84

Browse files
committed
feat: adding test:riscv-tests task
1 parent 70d88e2 commit 9912f84

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

backends/cpp_hart_gen/tasks.rake

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,4 +394,20 @@ namespace :test do
394394
sh "ctest -T coverage -T test"
395395
end
396396
end
397+
398+
task riscv_tests: ["build_riscv_tests", "build:cpp_hart"] do
399+
configs_name, build_name = configs_build_name
400+
tests = ["simple", "add", "addi", "and",
401+
"andi", "auipc", "beq", "bge", "bgeu", "blt",
402+
"bltu", "bne", "fence_i", "jal", "jalr",
403+
"lb", "lbu", "lh", "lhu", "lw", "ld_st",
404+
"lui", "ma_data", "or", "ori", "sb", "sh",
405+
"sw", "st_ld", "sll", "slli", "slt", "slti",
406+
"sltiu", "sltu", "sra", "srai", "srl",
407+
"srli", "sub", "xor", "xori"]
408+
409+
tests.each do |t|
410+
sh "#{CPP_HART_GEN_DST}/#{build_name}/build/iss -m rv32 -c #{$root}/cfgs/mc100-32-riscv-tests.yaml ext/riscv-tests/isa/rv32ui-p-#{t}"
411+
end
412+
end
397413
end

0 commit comments

Comments
 (0)