mirror of
https://github.com/open-goal/jak-project
synced 2026-07-03 04:53:35 -04:00
[decomp] even more res (#529)
* [decomp] even more `res` * [decompiler] make `logand` with pointers and constants return pointer * [decomp] more work * update offline tests * fix tests(?) * `*res-static-buf*` * fixes * fix reference * [opengoal] make `logand` work directly with pointers * [decomp] `inspect res-lump` * use the inline methods * don't use a math mode for pointers * [compiler] allow optionally setting disassembly output file * [x86 disasm] Keep casing consistent between instructions and offsets
This commit is contained in:
@@ -341,21 +341,12 @@ TEST_F(FormRegressionTest, ExprMethod0Thread) {
|
||||
" )\n"
|
||||
" (else\n"
|
||||
" (let\n"
|
||||
" ((v1-2\n"
|
||||
" (logand\n"
|
||||
" -16\n"
|
||||
" (the-as int (&+ (-> arg2 heap-cur) 15))\n"
|
||||
" )\n"
|
||||
" )\n"
|
||||
" )\n"
|
||||
" ((v1-2 (logand -16 (&+ (-> arg2 heap-cur) 15))))\n"
|
||||
" (set!\n"
|
||||
" (-> arg2 heap-cur)\n"
|
||||
" (the-as\n"
|
||||
" pointer\n"
|
||||
" (+ (+ v1-2 (the-as int (-> arg1 size))) arg4)\n"
|
||||
" )\n"
|
||||
" (&+ (&+ v1-2 (-> arg1 size)) arg4)\n"
|
||||
" )\n"
|
||||
" (the-as cpu-thread (+ v1-2 4))\n"
|
||||
" (the-as cpu-thread (&+ v1-2 4))\n"
|
||||
" )\n"
|
||||
" )\n"
|
||||
" )\n"
|
||||
@@ -372,7 +363,7 @@ TEST_F(FormRegressionTest, ExprMethod0Thread) {
|
||||
" (set! (-> obj suspend-hook) (method-of-object obj thread-suspend))\n"
|
||||
" (set! (-> obj resume-hook) (method-of-object obj thread-resume))\n"
|
||||
" (set! (-> obj stack-size) arg4)\n"
|
||||
" (the-as cpu-thread (the-as object obj))\n"
|
||||
" (the-as cpu-thread (the-as pointer obj))\n"
|
||||
" )";
|
||||
test_with_expr(func, type, expected, false, "cpu-thread", {},
|
||||
"[[[13, 28], \"v0\", \"cpu-thread\"]]",
|
||||
@@ -2834,4 +2825,4 @@ TEST_F(FormRegressionTest, ExprMethod18DeadPoolHeap) {
|
||||
" (none)\n"
|
||||
" )";
|
||||
test_with_expr(func, type, expected);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user