Lines Matching +full:0 +full:- +full:4

1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 #define FROM_0_TO_15 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
14 #define FROM_0_TO_31 0,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
32 # +-----------------------+
34 # +-----------------------+
36 # +-----------------------+ <-- SP
44 movl %ebx, 4(%eax)
55 movl 4(%esp), %edx
137 # thread_state pointer is in a0 ($4)
144 sw $1, (4 * 1)($4)
145 sw $2, (4 * 2)($4)
146 sw $3, (4 * 3)($4)
147 sw $4, (4 * 4)($4)
148 sw $5, (4 * 5)($4)
149 sw $6, (4 * 6)($4)
150 sw $7, (4 * 7)($4)
151 sw $8, (4 * 8)($4)
152 sw $9, (4 * 9)($4)
153 sw $10, (4 * 10)($4)
154 sw $11, (4 * 11)($4)
155 sw $12, (4 * 12)($4)
156 sw $13, (4 * 13)($4)
157 sw $14, (4 * 14)($4)
158 sw $15, (4 * 15)($4)
159 sw $16, (4 * 16)($4)
160 sw $17, (4 * 17)($4)
161 sw $18, (4 * 18)($4)
162 sw $19, (4 * 19)($4)
163 sw $20, (4 * 20)($4)
164 sw $21, (4 * 21)($4)
165 sw $22, (4 * 22)($4)
166 sw $23, (4 * 23)($4)
167 sw $24, (4 * 24)($4)
168 sw $25, (4 * 25)($4)
169 sw $26, (4 * 26)($4)
170 sw $27, (4 * 27)($4)
171 sw $28, (4 * 28)($4)
172 sw $29, (4 * 29)($4)
173 sw $30, (4 * 30)($4)
174 sw $31, (4 * 31)($4)
176 sw $31, (4 * 32)($4)
180 sw $8, (4 * 33)($4)
182 sw $8, (4 * 34)($4)
186 sdc1 $f0, (4 * 36 + 8 * 0)($4)
187 sdc1 $f2, (4 * 36 + 8 * 2)($4)
188 sdc1 $f4, (4 * 36 + 8 * 4)($4)
189 sdc1 $f6, (4 * 36 + 8 * 6)($4)
190 sdc1 $f8, (4 * 36 + 8 * 8)($4)
191 sdc1 $f10, (4 * 36 + 8 * 10)($4)
192 sdc1 $f12, (4 * 36 + 8 * 12)($4)
193 sdc1 $f14, (4 * 36 + 8 * 14)($4)
194 sdc1 $f16, (4 * 36 + 8 * 16)($4)
195 sdc1 $f18, (4 * 36 + 8 * 18)($4)
196 sdc1 $f20, (4 * 36 + 8 * 20)($4)
197 sdc1 $f22, (4 * 36 + 8 * 22)($4)
198 sdc1 $f24, (4 * 36 + 8 * 24)($4)
199 sdc1 $f26, (4 * 36 + 8 * 26)($4)
200 sdc1 $f28, (4 * 36 + 8 * 28)($4)
201 sdc1 $f30, (4 * 36 + 8 * 30)($4)
203 sdc1 $f0, (4 * 36 + 8 * 0)($4)
204 sdc1 $f1, (4 * 36 + 8 * 1)($4)
205 sdc1 $f2, (4 * 36 + 8 * 2)($4)
206 sdc1 $f3, (4 * 36 + 8 * 3)($4)
207 sdc1 $f4, (4 * 36 + 8 * 4)($4)
208 sdc1 $f5, (4 * 36 + 8 * 5)($4)
209 sdc1 $f6, (4 * 36 + 8 * 6)($4)
210 sdc1 $f7, (4 * 36 + 8 * 7)($4)
211 sdc1 $f8, (4 * 36 + 8 * 8)($4)
212 sdc1 $f9, (4 * 36 + 8 * 9)($4)
213 sdc1 $f10, (4 * 36 + 8 * 10)($4)
214 sdc1 $f11, (4 * 36 + 8 * 11)($4)
215 sdc1 $f12, (4 * 36 + 8 * 12)($4)
216 sdc1 $f13, (4 * 36 + 8 * 13)($4)
217 sdc1 $f14, (4 * 36 + 8 * 14)($4)
218 sdc1 $f15, (4 * 36 + 8 * 15)($4)
219 sdc1 $f16, (4 * 36 + 8 * 16)($4)
220 sdc1 $f17, (4 * 36 + 8 * 17)($4)
221 sdc1 $f18, (4 * 36 + 8 * 18)($4)
222 sdc1 $f19, (4 * 36 + 8 * 19)($4)
223 sdc1 $f20, (4 * 36 + 8 * 20)($4)
224 sdc1 $f21, (4 * 36 + 8 * 21)($4)
225 sdc1 $f22, (4 * 36 + 8 * 22)($4)
226 sdc1 $f23, (4 * 36 + 8 * 23)($4)
227 sdc1 $f24, (4 * 36 + 8 * 24)($4)
228 sdc1 $f25, (4 * 36 + 8 * 25)($4)
229 sdc1 $f26, (4 * 36 + 8 * 26)($4)
230 sdc1 $f27, (4 * 36 + 8 * 27)($4)
231 sdc1 $f28, (4 * 36 + 8 * 28)($4)
232 sdc1 $f29, (4 * 36 + 8 * 29)($4)
233 sdc1 $f30, (4 * 36 + 8 * 30)($4)
234 sdc1 $f31, (4 * 36 + 8 * 31)($4)
239 or $2, $0, $0
248 # thread_state pointer is in a0 ($4)
255 .irp i,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
256 sd $\i, (8 * \i)($4)
259 sd $31, (8 * 32)($4)
263 sd $8, (8 * 33)($4)
265 sd $8, (8 * 34)($4)
269 sdc1 $f\i, (280+8*\i)($4)
274 or $2, $0, $0
284 teq $0, $0
304 PPC64_STR(0)
305 mflr 0
306 std 0, PPC64_OFFS_SRR0(3) // store lr as ssr0
308 PPC64_STR(4) // Save r4 first since it will be used for fixing r2.
313 mflr 4
314 lwz 4, 0(4) // Get the first instruction at the return address.
315 xoris 0, 4, 0xe841 // Is it reloading the TOC register "ld 2,40(1)"?
316 cmplwi 0, 0x28
317 bne 0, LnoR2Fix // No need to fix up r2 if it is not.
351 mfcr 0
352 std 0, PPC64_OFFS_CR(3)
353 mfxer 0
354 std 0, PPC64_OFFS_XER(3)
356 // LR value saved from the register is not used, initialize it to 0.
357 li 0, 0
359 mflr 0
361 std 0, PPC64_OFFS_LR(3)
362 mfctr 0
363 std 0, PPC64_OFFS_CTR(3)
364 mfvrsave 0
365 std 0, PPC64_OFFS_VRSAVE(3)
372 addi 4, 3, PPC64_OFFS_FP
376 // For little-endian targets, we need a swap since stxvd2x will store the
379 // this can be changed to simply `stxv n, 16 * n(4)`.
382 stxvd2x n, 0, 4 ;\
383 addi 4, 4, 16
386 stxvd2x n, 0, 4 ;\
387 addi 4, 4, 16
390 PPC64_STVS(0)
394 PPC64_STVS(4)
462 PPC64_STF(0)
466 PPC64_STF(4)
498 // Use 16-bytes below the stack pointer as an
500 // Note that the stack pointer is always 16-byte aligned.
501 subi 4, 1, 16
504 stvx n, 0, 4 ;\
505 ld 5, 0(4) ;\
507 ld 5, 8(4) ;\
510 PPC64_STV_UNALIGNED(0)
514 PPC64_STV_UNALIGNED(4)
546 li 3, 0 // return UNW_ESUCCESS
563 stw 0, 8(3)
564 mflr 0
565 stw 0, 0(3) // store lr as ssr0
567 stw 4, 24(3) // Save r4 first since it will be used for fixing r2.
572 mflr 4
573 lwz 4, 0(4) // Get the instruction at the return address.
574 xoris 0, 4, 0x8041 // Is it reloading the TOC register "lwz 2,20(1)"?
575 cmplwi 0, 0x14
576 bne 0, LnoR2Fix // No need to fix up r2 if it is not.
612 mfspr 0, 256
613 stw 0, 156(3)
616 mfcr 0
617 stw 0, 136(3)
619 // LR value from the register is not used, initialize it to 0.
620 li 0, 0
621 stw 0, 144(3)
624 mfctr 0
625 stw 0, 148(3)
629 stfd 0, 160(3)
633 stfd 4, 192(3)
666 subi 4, 1, 16
667 rlwinm 4, 4, 0, 0, 27 // mask low 4-bits
668 // r4 is now a 16-byte aligned pointer into the red zone
671 stvx _vec, 0, 4 SEPARATOR \
672 lwz 5, 0(4) SEPARATOR \
674 lwz 5, 4(4) SEPARATOR \
675 stw 5, _offset+4(3) SEPARATOR \
676 lwz 5, 8(4) SEPARATOR \
678 lwz 5, 12(4) SEPARATOR \
681 SAVE_VECTOR_UNALIGNED( 0, 424+0x000)
682 SAVE_VECTOR_UNALIGNED( 1, 424+0x010)
683 SAVE_VECTOR_UNALIGNED( 2, 424+0x020)
684 SAVE_VECTOR_UNALIGNED( 3, 424+0x030)
685 SAVE_VECTOR_UNALIGNED( 4, 424+0x040)
686 SAVE_VECTOR_UNALIGNED( 5, 424+0x050)
687 SAVE_VECTOR_UNALIGNED( 6, 424+0x060)
688 SAVE_VECTOR_UNALIGNED( 7, 424+0x070)
689 SAVE_VECTOR_UNALIGNED( 8, 424+0x080)
690 SAVE_VECTOR_UNALIGNED( 9, 424+0x090)
691 SAVE_VECTOR_UNALIGNED(10, 424+0x0A0)
692 SAVE_VECTOR_UNALIGNED(11, 424+0x0B0)
693 SAVE_VECTOR_UNALIGNED(12, 424+0x0C0)
694 SAVE_VECTOR_UNALIGNED(13, 424+0x0D0)
695 SAVE_VECTOR_UNALIGNED(14, 424+0x0E0)
696 SAVE_VECTOR_UNALIGNED(15, 424+0x0F0)
697 SAVE_VECTOR_UNALIGNED(16, 424+0x100)
698 SAVE_VECTOR_UNALIGNED(17, 424+0x110)
699 SAVE_VECTOR_UNALIGNED(18, 424+0x120)
700 SAVE_VECTOR_UNALIGNED(19, 424+0x130)
701 SAVE_VECTOR_UNALIGNED(20, 424+0x140)
702 SAVE_VECTOR_UNALIGNED(21, 424+0x150)
703 SAVE_VECTOR_UNALIGNED(22, 424+0x160)
704 SAVE_VECTOR_UNALIGNED(23, 424+0x170)
705 SAVE_VECTOR_UNALIGNED(24, 424+0x180)
706 SAVE_VECTOR_UNALIGNED(25, 424+0x190)
707 SAVE_VECTOR_UNALIGNED(26, 424+0x1A0)
708 SAVE_VECTOR_UNALIGNED(27, 424+0x1B0)
709 SAVE_VECTOR_UNALIGNED(28, 424+0x1C0)
710 SAVE_VECTOR_UNALIGNED(29, 424+0x1D0)
711 SAVE_VECTOR_UNALIGNED(30, 424+0x1E0)
712 SAVE_VECTOR_UNALIGNED(31, 424+0x1F0)
715 li 3, 0 // return UNW_ESUCCESS
729 stp x0, x1, [x0, #0x000]
730 stp x2, x3, [x0, #0x010]
731 stp x4, x5, [x0, #0x020]
732 stp x6, x7, [x0, #0x030]
733 stp x8, x9, [x0, #0x040]
734 stp x10,x11, [x0, #0x050]
735 stp x12,x13, [x0, #0x060]
736 stp x14,x15, [x0, #0x070]
737 stp x16,x17, [x0, #0x080]
738 stp x18,x19, [x0, #0x090]
739 stp x20,x21, [x0, #0x0A0]
740 stp x22,x23, [x0, #0x0B0]
741 stp x24,x25, [x0, #0x0C0]
742 stp x26,x27, [x0, #0x0D0]
743 stp x28,x29, [x0, #0x0E0]
744 str x30, [x0, #0x0F0]
746 str x1, [x0, #0x0F8]
747 str x30, [x0, #0x100] // store return address as pc
749 stp d0, d1, [x0, #0x110]
750 stp d2, d3, [x0, #0x120]
751 stp d4, d5, [x0, #0x130]
752 stp d6, d7, [x0, #0x140]
753 stp d8, d9, [x0, #0x150]
754 stp d10,d11, [x0, #0x160]
755 stp d12,d13, [x0, #0x170]
756 stp d14,d15, [x0, #0x180]
757 stp d16,d17, [x0, #0x190]
758 stp d18,d19, [x0, #0x1A0]
759 stp d20,d21, [x0, #0x1B0]
760 stp d22,d23, [x0, #0x1C0]
761 stp d24,d25, [x0, #0x1D0]
762 stp d26,d27, [x0, #0x1E0]
763 stp d28,d29, [x0, #0x1F0]
764 str d30, [x0, #0x200]
765 str d31, [x0, #0x208]
766 mov x0, #0 // return UNW_ESUCCESS
793 stm r0!, {r0-r7}
797 stm r0!, {r1-r3}
801 str r1, [r0, #0] @ r11
802 @ r12 does not need storing, it it the intra-procedure-call scratch register
806 @ T1 does not have a non-cpsr-clobbering register-zeroing instruction.
809 movs r0, #0 @ return UNW_ESUCCESS
811 @ 32bit thumb-2 restrictions for stm:
814 stm r0, {r0-r12}
818 mov r0, #0 @ return UNW_ESUCCESS
830 .fpu vfpv3-d16
833 vstmia r0, {d0-d15}
844 .fpu vfpv3-d16
847 vstmia r0, {d0-d15} @ fstmiax is deprecated in ARMv7+ and now behaves like vstmia
868 vstmia r0, {d16-d31}
913 stc2 p1, cr8, [r0], #4 @ wstrw wCGR0, [r0], #4
914 stc2 p1, cr9, [r0], #4 @ wstrw wCGR1, [r0], #4
915 stc2 p1, cr10, [r0], #4 @ wstrw wCGR2, [r0], #4
916 stc2 p1, cr11, [r0], #4 @ wstrw wCGR3, [r0], #4
930 l.sw 0(r3), r0
931 l.sw 4(r3), r1
974 #define OFFSET(offset) (offset/4)
1026 stx %g1, [%o0 + 0x08]
1027 stx %g2, [%o0 + 0x10]
1028 stx %g3, [%o0 + 0x18]
1029 stx %g4, [%o0 + 0x20]
1030 stx %g5, [%o0 + 0x28]
1031 stx %g6, [%o0 + 0x30]
1032 stx %g7, [%o0 + 0x38]
1033 stx %o0, [%o0 + 0x40]
1034 stx %o1, [%o0 + 0x48]
1035 stx %o2, [%o0 + 0x50]
1036 stx %o3, [%o0 + 0x58]
1037 stx %o4, [%o0 + 0x60]
1038 stx %o5, [%o0 + 0x68]
1039 stx %o6, [%o0 + 0x70]
1040 stx %o7, [%o0 + 0x78]
1041 stx %l0, [%o0 + 0x80]
1042 stx %l1, [%o0 + 0x88]
1043 stx %l2, [%o0 + 0x90]
1044 stx %l3, [%o0 + 0x98]
1045 stx %l4, [%o0 + 0xa0]
1046 stx %l5, [%o0 + 0xa8]
1047 stx %l6, [%o0 + 0xb0]
1048 stx %l7, [%o0 + 0xb8]
1049 stx %i0, [%o0 + 0xc0]
1050 stx %i1, [%o0 + 0xc8]
1051 stx %i2, [%o0 + 0xd0]
1052 stx %i3, [%o0 + 0xd8]
1053 stx %i4, [%o0 + 0xe0]
1054 stx %i5, [%o0 + 0xe8]
1055 stx %i6, [%o0 + 0xf0]
1056 stx %i7, [%o0 + 0xf8]
1060 save %sp, -176, %sp
1064 ldx [%sp + 2047 + 0x78], %g5
1066 stx %g4, [%o0 + 0x100]
1082 std %g0, [%o0 + 0]
1110 ISTORE x1, (RISCV_ISIZE * 0)(a0) // store ra as pc
1111 .irp i,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
1121 li a0, 0 // return UNW_ESUCCESS
1139 stm %r0, %r1, 0(%r2)
1150 lghi %r2, 0
1162 .irp i,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