From: Lauri Kasanen Date: Wed, 26 May 2021 08:39:11 +0000 (+0300) Subject: Fill in first mp3_1 incantation X-Git-Tag: xlen-bcd~544 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=410704efee9f1105cb7e081a3e817173c18d5201;p=openpower-isa.git Fill in first mp3_1 incantation --- diff --git a/media/Makefile b/media/Makefile index 4ea633cc..0e64e1d8 100644 --- a/media/Makefile +++ b/media/Makefile @@ -116,3 +116,15 @@ tests: $(OBJ) -d $(DUMP):0x400000:128 \ -i audio/mp3/mp3_0_apply_window_float.bin cmp $(DUMP) data/audio/mp3/mp3_0_data/samples9000 + + ## + + pypowersim -g audio/mp3/mp3_1.gpr \ + -s common.spr \ + -l data/audio/mp3/mp3_1_data/beforeout0:0x100000 \ + -l data/audio/mp3/mp3_1_data/buf0:0x200000 \ + -l data/audio/mp3/mp3_1_data/in0:0x300000 \ + -l data/audio/mp3/mp3_1_data/win0:0x400000 \ + -d $(DUMP):0x100000:2304 \ + -i audio/mp3/mp3_1_imdct36_float.bin + cmp $(DUMP) data/audio/mp3/mp3_1_data/out0 diff --git a/media/audio/mp3/mp3_1.gpr b/media/audio/mp3/mp3_1.gpr new file mode 100644 index 00000000..3f28a7a9 --- /dev/null +++ b/media/audio/mp3/mp3_1.gpr @@ -0,0 +1,6 @@ +# void imdct36(float *out, float *buf, float *in, const float *win); +1: 0x4000 # stack pointer +3: 0x100000 # param 1: float *out +4: 0x200000 # param 2: float *buf +5: 0x300000 # param 3: float *in +6: 0x400000 # param 3: const float *win