aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/op.def
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-03-02 17:52:57 +0100
committerlemon <lsof@mailbox.org>2026-03-02 17:52:57 +0100
commitf2285400e65dafe730a073b3ca92494d72c7295b (patch)
treed5a96f09fbd0402ada3c39165a9d2d8202ee8e5d /ir/op.def
parenta498f851ef2f50c9b8ac47e238137af52b54057d (diff)
add bswap16/32/64
- frontend: __builtin_bswapX intrinsics - backend: ObswapX instructions
Diffstat (limited to 'ir/op.def')
-rw-r--r--ir/op.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/ir/op.def b/ir/op.def
index ac753c0..4a18b4b 100644
--- a/ir/op.def
+++ b/ir/op.def
@@ -20,6 +20,9 @@ _(exts16, 1)
_(extu16, 1)
_(exts32, 1)
_(extu32, 1)
+_(bswap16, 1)
+_(bswap32, 1)
+_(bswap64, 1)
_(add, 2)
_(sub, 2)
_(mul, 2)