Home
last modified time | relevance | path

Searched refs:g1 (Results 1 – 25 of 32) sorted by relevance

12

/picolibc-latest/newlib/libc/machine/i960/
Dmemccpy.S99 addo g3,g1,g3 # compute beyond end of src
100 ld (g1), g7 # fetch first word of source
110 ld (g1), g7 # fetch ahead next word of source
114 addo 4, g1, g1 # pre-increment src pointer
115 cmpo g3, g1 # is len <= 3 ?
122 subo 4, g1, g1 # back down src pointer
123 cmpobe g1, g3, Lexit_char_not_found
131 addo 1,g1,g1
132 cmpo g1,g3
Dmemccpy_ca.S94 notand g1,3,g5 # extract word addr of start of src
97 cmpo g5,g1 # check alignment of src
109 addo 4,g4,g1 # move dest word ptr to first word boundary
132 cmpobne.t g1,g0,Lcase_3_cloop_at_start # branch if reached word boundary
138 or g4,g2,g1
139 shro 16,g1,g4
140 or g4,g1,g4
148 mov LSW,g1 # extract 4 bytes of src
150 scanbyte g4,g1 # branch if word has char in it
155 st g1,(g0) # store 4 bytes to dest
[all …]
Dsetjmp.S46 andnot 0xf,pfp,g1 /* get pfp, mask out return status bits */
47 st g1, 0x58(g0) /* save fp of caller*/
53 ldq (g1), g4 /* get previous frame pfp, sp, rip, r3 */
55 ldq 0x10(g1), g4 /* get previous frame r4-r7 */
57 ldq 0x20(g1), g4 /* get previous frame r8-r11 */
59 ldq 0x30(g1), g4 /* get previous frame r12-r15 */
93 mov g1, g0 /* get return value */
Dstrncpy_ca.S113 notand g1,3,g3 # extract word addr of start of src
116 cmpo g3,g1 # check alignment of src
131 lda (LSW),g1 # keep a copy of the src word
134 scanbyte 0,g1 # check for null byte in src word
139 st g1,(g4) # store word in dest string
145 rotate 8,g1,g1 # move next byte into position for extraction
147 and g5,g1,g14 # extract next char
154 shro 8,g1,g1 # move next byte into position for extraction
171 and g5,g1,g14 # extract next char
180 andnot g5,g1,g1 # last bytes to copy, and null pad rest of word
[all …]
Dmemcpy_ca.S118 cmpo g0,g1 # if dest starts earlier than src ...
120 addo g2,g1,g5 # compute addr of byte after last byte of src
123 notand g1,3,g3 # extract word addr of start of src
125 cmpo g3,g1 # check alignment of src
138 lda (g0),g1 # copy dest byte ptr
149 stob MSW,(g1) # store the byte in dest
152 stob MSW,(g1) # store the byte in dest
155 lda 1(g1),g1 # post-increment dest ptr
156 cmpobne.t g1,g4,Lcase_3_cloop_at_start # branch if reached word boundary
164 eshro g14,g6,g1 # extract 4 bytes of src
[all …]
Dstrcmp_ca.S122 notand g1,3,g3 # extract word addr of start of src2
126 cmpo g3,g1 # check alignment of src2
136 lda 0xff000000,g1 # byte extraction mask
156 cmpo g3,g1 # check alignment of src2
171 lda 0xff000000,g1 # byte extraction mask
173 lda 0xff,g1 # byte extraction mask
194 lda 0xff000000,g1 # byte extraction mask
196 lda 0xff,g1 # byte extraction mask
200 and SRC2,g1,g3 # extract next char of src2
201 and SRC1,g1,g0 # extract next char of src1
[all …]
Dstrncmp_ca.S123 notand g1,3,g3 # extract word addr of start of src2
127 cmpo g3,g1 # check alignment of src2
140 lda 0xff000000,g1 # byte extraction mask
157 cmpo g3,g1 # check alignment of src2
174 lda 0xff000000,g1 # byte extraction mask
176 lda 0xff,g1 # byte extraction mask
195 lda 0xff000000,g1 # byte extraction mask
197 lda 0xff,g1 # byte extraction mask
201 and SRC2,g1,g3 # extract next char of src2
202 and g0,g1,LSW # extract next char of src1
[all …]
Dstrncat_ca.S140 notand g1,3,g3 # extract word addr of start of src
144 cmpo g1,g3 # check alignment of source
146 shlo 3,g1,g14 # compute shift count
152 lda (LSW),g1 # keep a copy of the src word
154 scanbyte 0,g1 # check for null byte in src word
159 st g1,(g4) # store word in dest string
167 rotate 8,g1,g1 # move next byte into position for extraction
169 and g5,g1,g14 # extract next char
174 shro 8,g1,g1 # move next byte into position for extraction
198 cmpo g1,g3 # check alignment of src
[all …]
Dmemcmp_ca.S122 notand g1,3,g3 # extract word addr of start of src2
124 cmpo g3,g1 # check alignment of src2
137 lda 0xff,g1
157 lda 0xff,g1 # byte extraction mask
161 rotate 24,g1,g1 # shift mask for next byte
163 and SRC2,g1,g3 # extract next char of src2
164 and g0,g1,LSW # extract next char of src1
167 shlo 8,g1,g1 # shift mask for next byte
194 notor g1,3,g14 # first step in computing new src1 ptr
196 shlo 3,g1,MSW # compute shift count for src2
[all …]
Dmemcpy.S111 cmpo g0,g1 # does start of dest overlap end of src?
112 addo g2,g1,g3
118 ld (g1), g7 # fetch first word of source
123 ld (g1), g7 # fetch ahead next word of source
127 addo 4, g1, g1 # pre-increment src pointer
128 cmpo g3, g1 # is len <= 3 ?
150 cmpo g1, g3 # is len <= 3?
Dstrchr.S89 and g1,g7,g1 # make char an 8-bit ordinal
90 shlo 8,g1,g2 # broadcast the char to four bytes
91 or g1,g2,g2
118 cmpo g1,g6 # is it char?
Dstrcpy_ca.S147 notand g1,3,g3 # extract word addr of start of src
174 notand g1,3,g3 # extract word addr of start of src
178 cmpo g3,g1 # check alignment of src
180 shlo 3,g1,g1 # compute shift count
221 lda 0,g1 # initialize shift count to zero
237 lda 8(g1),g1 # augment the shift counter
243 subo g1,0,g1 # Adjust shift count for big endian.
247 eshro g1,g6,g2 # extract 4 bytes of src
260 cmpo g3,g1 # check alignment of src
262 and 3,g1,g14 # compute shift count
[all …]
Dmemchr.S97 and g1,g7,g1 # make char an 8-bit ordinal
103 shlo 8,g1,g3 # broadcast the char to four bytes
104 or g1,g3,g3
125 cmpo g1,g0 # is it char?
Dstrrchr.S95 and g1,g7,g1 # make char an 8-bit ordinal
96 shlo 8,g1,g2 # broadcast the char to four bytes
97 or g1,g2,g2
122 cmpo g1,g14 # is current byte char?
133 cmpobne g5,g1,Lfind_last_char # branch if not at char
Dstrncpy.S103 ld (g1), g7 # fetch the first word of the source
106 addo g1, g2, g6
109 addo 4, g1, g1 # post-increment source ptr
110 cmpo g6, g1 # max_bytes < 4 ?
114 ld (g1), g7 # pre-fetch next word of the source
Dstrchr_ca.S93 and g1,g7,g1 # make char an 8-bit ordinal
94 shlo 8,g1,g2 # broadcast the char to four bytes
95 or g1,g2,g2
97 cmpo g1,g7 # is char being sought 0xff?
138 cmpo g1,g6 # is it char?
Dmemchr_ca.S95 and g1,g7,g1 # make char an 8-bit ordinal
101 shlo 8,g1,g3 # broadcast the char to four bytes
103 or g1,g3,g3
105 cmpo g1,g7 # is char being sought 0xff?
140 cmpo g1,g6 # is it char?
Dstrcmp.S95 ld (g1), g3 # fetch word of source_2
100 addo 4,g1,g1 # post-increment source_2 byte ptr
Dmemcmp.S101 ld (g1), g3 # fetch word of source_2
103 addo 4,g1,g1 # post-increment source_2 byte ptr
Dstrcpy.S156 ld (g1), g2 # fetch first word of source
160 addo 4, g1, g1 # post-increment source ptr
164 ld (g1), g2 # pre-fetch next word of source
Dstrncmp.S99 ld (g1), g3 # fetch word of source_2
102 addo 4,g1,g1 # post-increment source_1 ptr
Dstrncat.S113 ld (g1), g7 # fetch first word of source string
116 addo 4, g1, g1 # post-increment source ptr
121 ld (g1), g7 # pre-fetch next word of source
Dmemset.S78 shlo 24,g1,g4 # prepare word of char
89 stob g1,(g6) # store one byte of char
113 stob g1,(g6) # Store byte
/picolibc-latest/newlib/libc/picolib/machine/sparc/
Dinterrupt.S203 st %g1, [%fp + 0x40 + 0x0c]
209 rd %psr, %g1
210 or %g1, PSR_PIL, %g1
211 wr %g1, PSR_ET, %psr
216 set SPARC_NWIN-2, %g1
219 cmp %g1, %g0
221 sub %g1, 1, %g1
224 set SPARC_NWIN-2, %g1
227 cmp %g1, %g0
229 sub %g1, 1, %g1
[all …]
/picolibc-latest/newlib/libc/machine/sparc/
Dsetjmp.S131 addcc %o1, %g0, %g1 ! compute v ? v : 1 in a global register
133 mov 1, %g1
150 jmp %o7 + 8 ! success, return %g1
151 mov %g1, %o0

12