summaryrefslogtreecommitdiff
path: root/CSAPP/shift.s
blob: c4a3bc707742e8baf6549ecc72d9ed3ae7b3db29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
	.file	"shift.c"
	.text
	.globl	shift
	.type	shift, @function
shift:
.LFB0:
	.cfi_startproc
	movq	%rdi, %rax
	salq	$4, %rax
	movl	%esi, %ecx
	sarq	%cl, %rax
	ret
	.cfi_endproc
.LFE0:
	.size	shift, .-shift
	.ident	"GCC: (GNU) 5.3.1 20160406 (Red Hat 5.3.1-6)"
	.section	.note.GNU-stack,"",@progbits