[decompiler] clean up vector detection and add vector float product detection (#638)

* change

* recognize vector float product and update tests
This commit is contained in:
water111
2021-06-27 17:24:35 -04:00
committed by GitHub
parent bfb1fbe1fc
commit a6d5c4eda3
146 changed files with 1085 additions and 1653 deletions
@@ -9,8 +9,7 @@
(.sync.l)
(set! (-> arg0 count) (the-as uint 0))
(.sync.l)
(let ((v0-0 0))
)
0
(none)
)
@@ -39,8 +38,7 @@
)
)
(.sync.p)
(let ((v0-2 0))
)
0
(none)
)
@@ -56,8 +54,7 @@
(.mtc0 Status v0-1)
)
(.sync.p)
(let ((v0-2 0))
)
0
(none)
)
@@ -74,8 +71,7 @@
(local-vars (v1-3 int))
(set! (-> arg0 prev-time-elapsed) (the-as uint 0))
(when (> (-> arg0 begin-level) 0)
(let ((v1-2 0))
)
0
(.mfc0 v1-3 Count)
(set! (-> arg0 start-time) (the-as uint v1-3))
)
@@ -88,8 +84,7 @@
(local-vars (v1-4 int))
(when (zero? (-> arg0 begin-level))
(set! (-> arg0 begin-level) 1)
(let ((v1-3 0))
)
0
(.mfc0 v1-4 Count)
(set! (-> arg0 start-time) (the-as uint v1-4))
)
@@ -103,8 +98,7 @@
(local-vars (a1-0 int))
(when (> (-> arg0 begin-level) 0)
(set! (-> arg0 begin-level) 0)
(let ((v1-2 0))
)
0
(.mfc0 a1-0 Count)
(set!
(-> arg0 prev-time-elapsed)
@@ -122,8 +116,7 @@
(defun stopwatch-begin ((arg0 stopwatch))
(local-vars (v1-3 int))
(when (zero? (-> arg0 begin-level))
(let ((v1-2 0))
)
0
(.mfc0 v1-3 Count)
(set! (-> arg0 start-time) (the-as uint v1-3))
)
@@ -138,8 +131,7 @@
(local-vars (a1-0 int))
(set! (-> arg0 begin-level) (+ (-> arg0 begin-level) -1))
(when (zero? (-> arg0 begin-level))
(let ((v1-4 0))
)
0
(.mfc0 a1-0 Count)
(set!
(-> arg0 prev-time-elapsed)
@@ -158,8 +150,7 @@
(local-vars (v1-3 int))
(let ((v0-0 (-> arg0 prev-time-elapsed)))
(when (> (-> arg0 begin-level) 0)
(let ((v1-2 0))
)
0
(.mfc0 v1-3 Count)
(+! v0-0 (the-as uint (- v1-3 (the-as int (-> arg0 start-time)))))
)
@@ -173,4 +164,3 @@
(* 0.0000000033333334 (the float v1-0))
)
)