Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / h8300 / lib / abs.S
blob6e1a4ed3af53369871ac530a282953bea89c20d0
1 ;;; SPDX-License-Identifier: GPL-2.0
2 ;;; abs.S
4 #include <asm/linkage.h>
6 #if defined(CONFIG_CPU_H8300H)
7         .h8300h
8 #endif
9 #if defined(CONFIG_CPU_H8S)
10         .h8300s
11 #endif
12         .text
13 .global _abs
15 ;;; int abs(int n)
16 _abs:
17         mov.l   er0,er0
18         bpl     1f
19         neg.l   er0
21         rts