diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-04-09 13:25:29 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-04-09 13:25:29 +0200 |
commit | 649faca27ef0229f7844a4680290693674d775b3 (patch) | |
tree | 31a80ff1c6be9bcfac02f1dea9d54c6ec7a1aa33 /scripts/torture | |
parent | 55c4c3b1023498e850ce2c27bdc1d7a9b19786d5 (diff) | |
download | picorv32-649faca27ef0229f7844a4680290693674d775b3.tar.gz picorv32-649faca27ef0229f7844a4680290693674d775b3.zip |
Work-around for c.addi16sp zero-imm gas bug (for torture test)
Diffstat (limited to 'scripts/torture')
-rw-r--r-- | scripts/torture/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/torture/Makefile b/scripts/torture/Makefile index 6fb3bcd..90dbc24 100644 --- a/scripts/torture/Makefile +++ b/scripts/torture/Makefile @@ -31,14 +31,16 @@ tests/testbench.vvp: testbench.v ../../picorv32.v iverilog -o tests/testbench.vvp testbench.v ../../picorv32.v tests/generated.ok: riscv-torture/build.ok + mkdir -p tests rm -f riscv-torture/output/test_* cd riscv-torture && ./sbt 'generator/run -n 1000' + sed -i -e '/addi x2, x2, 0/ s/addi/xori/;' riscv-torture/output/test_*.S touch tests/generated.ok define test_template tests/test_$(1).S: tests/generated.ok - mkdir -p tests mv riscv-torture/output/test_$(1).S tests/ + touch tests/test_$(1).S tests/test_$(1).elf: tests/test_$(1).S riscv32-unknown-elf-gcc -m32 -march=RV32IC -ffreestanding -nostdlib -Wl,-Bstatic,-T,sections.lds -I. -o tests/test_$(1).elf tests/test_$(1).S |