From: Luke Kenneth Casson Leighton Date: Wed, 2 Jun 2021 12:31:29 +0000 (+0100) Subject: FP basic qemu sim, testing fadds loads and stores X-Git-Tag: xlen-bcd~492 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2815848fc8f4288477593048efc052a8aa9e8794;p=openpower-isa.git FP basic qemu sim, testing fadds loads and stores --- diff --git a/src/test/basic_pypowersim_fp/Makefile b/src/test/basic_pypowersim_fp/Makefile index 583285af..61614d0a 100644 --- a/src/test/basic_pypowersim_fp/Makefile +++ b/src/test/basic_pypowersim_fp/Makefile @@ -7,10 +7,10 @@ all: sim sim: kernel.bin ./writefp.sh - pypowersim -q --load testdata.bin:0 \ + pypowersim -q --load testin.bin:0 \ -p 0x20000000 \ - --dump testout.bin:0x20000100:8 \ - --dump testout2.bin:0x0:16 \ + --dump testout.bin:0x20000100:32 \ + --dump testout2.bin:0x0:32 \ -g gpr.list -f fpr.list -i kernel.bin clean: diff --git a/src/test/basic_pypowersim_fp/testfp.s b/src/test/basic_pypowersim_fp/testfp.s index e3f97b2b..2cec0c34 100644 --- a/src/test/basic_pypowersim_fp/testfp.s +++ b/src/test/basic_pypowersim_fp/testfp.s @@ -1,4 +1,6 @@ + fadds 5, 9, 10 lfsx 1, 1, 0 - stfsu 1, 16(1) - stfsu 9, 32(2) - stfsu 10, 8(3) + lfs 2, 12(1) + fadds 4, 1, 2 + stfsu 1, 0(1) + stfsu 9, 4(2) diff --git a/src/test/basic_pypowersim_fp/writefp.sh b/src/test/basic_pypowersim_fp/writefp.sh index a115f9b3..62fabd9e 100755 --- a/src/test/basic_pypowersim_fp/writefp.sh +++ b/src/test/basic_pypowersim_fp/writefp.sh @@ -1,4 +1,14 @@ #!/bin/bash -echo -n -e '\x66\x66\x02\x42' > testdata.bin -echo -n -e '\x00\x00\x80\x3f' >> testdata.bin +echo -n -e '\x66\x66\x02\x42' > testin.bin +echo -n -e '\x00\x00\x80\x3f' >> testin.bin +echo -n -e '\x00\xa0\x7e\x31' >> testin.bin +echo -n -e '\x00\x00\x7e\x31' >> testin.bin +echo -n -e '\x00\x00\x00\x00' >> testin.bin +echo -n -e '\x00\x00\x00\x00' >> testin.bin +echo -n -e '\x00\x00\x00\x00' >> testin.bin +echo -n -e '\x00\x00\x00\x00' >> testin.bin +echo -n -e '\x00\x00\x00\x00' >> testin.bin +echo -n -e '\x00\x00\x00\x00' >> testin.bin +echo -n -e '\x00\x00\x00\x00' >> testin.bin +echo -n -e '\x00\x00\x00\x00' >> testin.bin