From f2285400e65dafe730a073b3ca92494d72c7295b Mon Sep 17 00:00:00 2001
From: lemon <lsof@mailbox.org>
Date: Mon, 2 Mar 2026 17:52:57 +0100
Subject: add bswap16/32/64

- frontend: __builtin_bswapX intrinsics
- backend: ObswapX instructions
---
 ir/op.def | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'ir/op.def')

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)
-- 
cgit v1.2.3

