summaryrefslogtreecommitdiffstats
path: root/kernel/arch/c6x/lib/negll.S
blob: 82f4bcec9afb8b909eb785c291f2025b8429bb60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
;;  Copyright (C) 2010 Texas Instruments Incorporated
;;  Contributed by Mark Salter <msalter@redhat.com>.
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

;;  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)