Skip to content

Commit

Permalink
[tests] set float16 to false for all codegen cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Avimitin committed Dec 17, 2024
1 parent 8c91e5c commit 561fd5f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions t1-ddr.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
OUTPUT_ARCH(riscv)
ENTRY(_start)

MEMORY {
SCALAR (RWX) : ORIGIN = 0x20000000, LENGTH = 512M /* put first to set it as default */
MMIO (RW) : ORIGIN = 0x00000000, LENGTH = 512M
DDR (RW) : ORIGIN = 0x40000000, LENGTH = 2048M
SRAM (RW) : ORIGIN = 0xc0000000, LENGTH = 4M /* TODO: read from config */
}

SECTIONS {
. = ORIGIN(SCALAR);
.text : { *(.text .text.*) }
. = ALIGN(0x1000);

.data : { *(.data .data.*) }
. = ALIGN(0x1000);

.sdata : { *(.sdata .sdata.*) }
. = ALIGN(0x1000);

.srodata : { *(.srodata .srodata.*) }
. = ALIGN(0x1000);

.bss : { *(.bss .bss.*) }
_end = .; PROVIDE (end = .);

. = ORIGIN(SRAM);
.vdata : { *(.vdata .vdata.*) } >DDR

.vbss (TYPE = SHT_NOBITS) : { *(.vbss .vbss.*) } >DDR

__stacktop = ORIGIN(SCALAR) + LENGTH(SCALAR); /* put stack on the top of SCALAR */
__heapbegin = ORIGIN(DDR); /* put heap on the begin of DDR */
}
2 changes: 2 additions & 0 deletions tests/codegen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ let
${riscv-vector-test}/bin/single \
-VLEN "${builtins.toString rtlDesignMetadata.vlen}" \
-XLEN "${builtins.toString rtlDesignMetadata.xlen}" \
# Golang only accept "-flag=value" pattern to set value for flag, don't mess around with other cmd line option.
-float16=false \
-repeat 16 \
-testfloat3level 2 \
-configfile ${riscv-vector-test}/configs/${rawCaseName}.toml \
Expand Down

0 comments on commit 561fd5f

Please sign in to comment.