summaryrefslogtreecommitdiffstats
path: root/arch/c6x/lib/negll.S
blob: 9ba434db5366308a1e0c2e19b2b8c3df503ae791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
;; SPDX-License-Identifier: GPL-2.0-or-later
;;  Copyright (C) 2010 Texas Instruments Incorporated
;;  Contributed by Mark Salter <msalter@redhat.com>.
;;

;;  int64_t __c6xabi_negll(int64_t val)

#include <linux/linkage.h>

	.text
ENTRY(__c6xabi_negll)
	b	.s2	B3
	mvk	.l1	0,A0
	subu	.l1	A0,A4,A3:A2
	sub	.l1	A0,A5,A0
||	ext	.s1	A3,24,24,A5
	add	.l1	A5,A0,A5
	mv	.s1	A2,A4
ENDPROC(__c6xabi_negll)