mirror of
https://github.com/open-goal/jak-project
synced 2026-09-06 11:20:54 -04:00
[decompiler] Small bitfield fixes (#599)
* fix a bunch of small bitfield related things * fix up test * format
This commit is contained in:
@@ -553,8 +553,8 @@ TEST_F(FormRegressionTest, ExprDisasmVif) {
|
||||
" \" (~s :irq ~D :wl ~D :cl ~D)~%\"\n"
|
||||
" (-> *vif-disasm-table* v1-0 string1)\n"
|
||||
" (-> s1-0 irq)\n"
|
||||
" (shr (shl (the-as int t1-1) 48) 56)\n"
|
||||
" (shr (shl (the-as int t1-1) 56) 56)\n"
|
||||
" (shr (shl t1-1 48) 56)\n"
|
||||
" (shr (shl t1-1 56) 56)\n"
|
||||
" )\n"
|
||||
" )\n"
|
||||
" )\n"
|
||||
@@ -636,10 +636,7 @@ TEST_F(FormRegressionTest, ExprDisasmVif) {
|
||||
" (the-as\n"
|
||||
" int\n"
|
||||
" (+\n"
|
||||
" (*\n"
|
||||
" (-> *vif-disasm-table* v1-0 val)\n"
|
||||
" (the-as uint (-> s1-0 num))\n"
|
||||
" )\n"
|
||||
" (* (-> *vif-disasm-table* v1-0 val) (-> s1-0 num))\n"
|
||||
" 3\n"
|
||||
" )\n"
|
||||
" )\n"
|
||||
@@ -655,14 +652,14 @@ TEST_F(FormRegressionTest, ExprDisasmVif) {
|
||||
" (-> *vif-disasm-table* v1-0 string1)\n"
|
||||
" (-> s1-0 irq)\n"
|
||||
" (-> s1-0 num)\n"
|
||||
" (shr (shl (the-as int sv-64) 54) 54)\n"
|
||||
" (shr (shl sv-64 54) 54)\n"
|
||||
" )\n"
|
||||
" (format\n"
|
||||
" arg2\n"
|
||||
" \":msk ~D :flg ~D :usn ~D [skip ~d])~%\"\n"
|
||||
" (-> s1-0 msk)\n"
|
||||
" (shr (shl (the-as int sv-64) 48) 63)\n"
|
||||
" (shr (shl (the-as int sv-64) 49) 63)\n"
|
||||
" (shr (shl sv-64 48) 63)\n"
|
||||
" (shr (shl sv-64 49) 63)\n"
|
||||
" (the-as uint s0-0)\n"
|
||||
" )\n"
|
||||
" (if arg3\n"
|
||||
|
||||
Reference in New Issue
Block a user