upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tools/salu_diff.py
diff options
context:
space:
mode:
authoreyyun <eyyun@users.noreply.github.com>2026-11-22 22:13:27 +0300
committereyyun <eyyun@users.noreply.github.com>2026-11-22 22:13:27 +0300
commit08ea049fbf6beb1f2c1ea91eb1793fa776055ade (patch)
tree3ee6862772b0b59b13e1b8668e60b74ca86faacb /tools/salu_diff.py
parent99b151be4a263116c2cbfcbeb9d2ee45e2bae969 (diff)
salu_diff: drop duplicate sext8 left over from rebase
Diffstat (limited to 'tools/salu_diff.py')
-rw-r--r--tools/salu_diff.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/salu_diff.py b/tools/salu_diff.py
index 574ad89ae..2af48668f 100644
--- a/tools/salu_diff.py
+++ b/tools/salu_diff.py
@@ -167,11 +167,6 @@ def bfe64(src, ctl, signed):
167 return field & M64 167 return field & M64
168 168
169 169
170def sext8(x):
171 x &= 0xFF
172 return (x - 0x100 if x & 0x80 else x) & M32
173
174
175def bfe(src, ctl, signed): 170def bfe(src, ctl, signed):
176 off, width = ctl & 31, (ctl >> 16) & 0x7F 171 off, width = ctl & 31, (ctl >> 16) & 0x7F
177 # A field that runs past bit 31 stops there: s_bfe_i32 sign-extends from the top bit that exists (LLVM 172 # A field that runs past bit 31 stops there: s_bfe_i32 sign-extends from the top bit that exists (LLVM