summaryrefslogtreecommitdiff
path: root/libc/string/csky/cskyv2/macro.S
blob: 1b78ce8db69ae4f950d39042054ea603b3555797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright (C) 2017 Hangzhou C-SKY Microsystems co.,ltd.
 *
 * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB
 * in this tarball.
 */

.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