summaryrefslogtreecommitdiff
path: root/libc/string/csky/cskyv2/macro.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/csky/cskyv2/macro.S')
-rw-r--r--libc/string/csky/cskyv2/macro.S13
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/string/csky/cskyv2/macro.S b/libc/string/csky/cskyv2/macro.S
new file mode 100644
index 000000000..047645c21
--- /dev/null
+++ b/libc/string/csky/cskyv2/macro.S
@@ -0,0 +1,13 @@
+.macro M_BEZ rx, label
+ bez \rx, \label
+.endm
+
+.macro M_BNEZ rx, label
+ bnez \rx, \label
+.endm
+
+.macro M_BNE rx, ry, label
+ cmpne \rx, \ry
+ bt \label
+.endm
+