[Libre-soc-bugs] [Bug 917] pysvp64dis: support SVP64 disassembly

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Sep 9 23:21:17 BST 2022


https://bugs.libre-soc.org/show_bug.cgi?id=917

--- Comment #25 from Dmitry Selyutin <ghostmansd at gmail.com> ---
Today I had to mess around opcode matching again. This is still tricky, but at
least it matches svshape2. Below is the code for
media/audio/mp3/mp3_0_apply_window_float_basicsv.s.sv, with one change: I
removed .rodata section, because it messed with the disassembler. I checked
only some of the instructions, but mostly it looks like the expected result.

addis 2,12,0
addi 2,2,0
addis 9,2,0
addi 9,9,0
rlwinm 7,7,2,0,29
mulli 0,7,31
add 10,6,0
setvl 0,0,8,1,1,0
addi 16,4,124
lfiwax 0,0,5
addi 5,3,64
sv.lfs *32,256(4)
sv.lfs *40,256(5)
sv.fmuls *32,*32,*40
sv.fadds 0,*32,0
addi 5,3,192
addi 4,4,128
sv.lfs *32,256(4)
sv.lfs *40,256(5)
sv.fmuls *32,*32,*40
sv.fsubs 0,0,*32
addi 4,4,65408
stfs 0,0(6)
add 6,6,7
addi 4,4,4
addi 0,0,15
mtspr 288,0
addi 8,0,4
lfiwax 0,0,9
lfiwax 1,0,9
addi 5,3,64
add 5,5,8
sv.lfs *32,256(5)
sv.lfs *40,256(4)
sv.lfs *48,256(16)
sv.fmuls *40,*32,*40
sv.fadds 0,0,*40
sv.fmuls *32,*32,*48
sv.fsubs 1,1,*32
addi 5,3,192
subf 5,8,5
addi 4,4,128
addi 16,16,128
sv.lfs *32,256(5)
sv.lfs *40,256(4)
sv.lfs *48,256(16)
sv.fmuls *40,*32,*40
sv.fsubs 0,0,*40
sv.fmuls *32,*32,*48
sv.fsubs 1,1,*32
addi 4,4,65408
addi 16,16,65408
stfs 0,0(6)
add 6,6,7
stfs 1,0(10)
subf 10,7,10
addi 8,8,4
addi 4,4,4
addi 16,16,65532
bc 16,0,0xff4c
addi 5,3,128
addi 4,4,128
lfiwax 0,0,9
sv.lfs *32,256(4)
sv.lfs *40,256(5)
sv.fmuls *32,*32,*40
sv.fsubs 0,0,*32
stfs 0,0(6)
bclr 20,0,0

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list