Skip to content

Commit df3726d

Browse files
author
marcus hall
committed
clamps instruction should put result in ar, not just a temporary.
1 parent a7cc025 commit df3726d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Ghidra/Processors/Xtensa/data/languages/xtensaInstructions.sinc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ macro extract_bit(bit, result) {
399399
local mt:1 = (x s> (-clamp));
400400
local max:4 = (zext(mt) * x) + (zext(!mt) * (-clamp));
401401
mt = (x s< (clamp-1));
402-
local y = (zext(mt) * max) + (zext(!mt) * (clamp-1));
402+
ar = (zext(mt) * max) + (zext(!mt) * (clamp-1));
403403
}
404404

405405
# DHI - Data Cache Hit Invalidate, pg. 313.

0 commit comments

Comments
 (0)