1 /* SHA256 using sparc crypto opcodes.
2 Copyright (C) 2012-2021 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
26 ENTRY(__sha256_process_block_crop)
27 /* %o0=buffer, %o1=len, %o2=CTX */
45 ldd [%o0 + 0x08], %f10
46 ldd [%o0 + 0x10], %f12
47 ldd [%o0 + 0x18], %f14
48 ldd [%o0 + 0x20], %f16
49 ldd [%o0 + 0x28], %f18
50 ldd [%o0 + 0x30], %f20
51 ldd [%o0 + 0x38], %f22
70 alignaddr %o0, %g0, %o0
72 ldd [%o0 + 0x00], %f10
74 ldd [%o0 + 0x08], %f12
75 ldd [%o0 + 0x10], %f14
76 ldd [%o0 + 0x18], %f16
77 ldd [%o0 + 0x20], %f18
78 ldd [%o0 + 0x28], %f20
79 ldd [%o0 + 0x30], %f22
80 ldd [%o0 + 0x38], %f24
81 ldd [%o0 + 0x40], %f26
83 faligndata %f10, %f12, %f8
84 faligndata %f12, %f14, %f10
85 faligndata %f14, %f16, %f12
86 faligndata %f16, %f18, %f14
87 faligndata %f18, %f20, %f16
88 faligndata %f20, %f22, %f18
89 faligndata %f22, %f24, %f20
90 faligndata %f24, %f26, %f22
100 END(__sha256_process_block_crop)