1 ;; SPDX-License-Identifier: GPL-2.0-or-later
2 ;; Copyright (C) 2010 Texas Instruments Incorporated
3 ;; Contributed by Mark Salter <msalter@redhat.com>.
6 ;; uint64_t __c6xabi_llshl(uint64_t val, uint shift)
8 #include <linux/linkage.h>
13 [!A1] b .s2 B3 ; just return if zero shift
17 [A2] shru .s1 A4,A0,A0
19 || [A2] shl .s1 A5,A1,A5
20 [!A2] shl .s1 A4,A5,A5
21 || [A2] or .d1 A5,A0,A5
25 ENDPROC(__c6xabi_llshl)