scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1	.file "memcmp.s"
 2
 3	.text
 4	.globl	memcmp,_memcmp
 5_memcmp:
 6memcmp:
 7	cmpq	$0,%rdx
 8	je	equa
 9	cld
10	movq	%rdx,%rcx
11	movq	%rdi,%r8
12	movq	%rsi,%rdi
13	movq	%r8,%rsi
14	rep
15	cmpsb
16	je	equa
17	jb	less
18	ja	grea
19
20equa:
21	movq	$0,%rax
22	ret
23
24less:
25	movq	$-1,%rax
26	ret
27
28grea:
29	movq	$1,%rax
30	ret