Home
last modified time | relevance | path

Searched refs:shf (Results 1 – 25 of 59) sorted by relevance

123

/external/mksh/src/
Dshf.c42 static int shf_fillbuf(struct shf *);
43 static int shf_emptybuf(struct shf *, int);
50 struct shf *
53 struct shf *shf; in shf_open() local
60 shf = alloc(sizeof(struct shf) + bsize, ATEMP); in shf_open()
61 shf->areap = ATEMP; in shf_open()
62 shf->buf = (unsigned char *)&shf[1]; in shf_open()
63 shf->bsize = bsize; in shf_open()
64 shf->flags = SHF_ALLOCS; in shf_open()
70 afree(shf, shf->areap); in shf_open()
[all …]
Dtree.c30 static void ptree(struct op *, int, struct shf *);
31 static void pioact(struct shf *, struct ioword *);
32 static const char *wdvarput(struct shf *, const char *, int, int);
33 static void vfptreef(struct shf *, int, const char *, va_list);
46 ptree(struct op *t, int indent, struct shf *shf) in ptree() argument
77 fptreef(shf, indent, Tf_S, t->vars[0]); in ptree()
84 fptreef(shf, indent, Tf_S_, *w++); in ptree()
86 shf_puts("#no-vars# ", shf); in ptree()
93 shf_putc('\\', shf); in ptree()
94 shf_puts(cp, shf); in ptree()
[all …]
Dsh.h1253 struct shf *shf; member
1624 #define shf_fileno(shf) ((shf)->fd) argument
1625 #define shf_setfileno(shf,nfd) ((shf)->fd = (nfd)) argument
1626 #define shf_getc_i(shf) ((shf)->rnleft > 0 ? \ argument
1627 (shf)->rnleft--, (int)ord(*(shf)->rp++) : \
1628 shf_getchar(shf))
1629 #define shf_putc_i(c, shf) ((shf)->wnleft == 0 ? \ argument
1630 shf_putchar((uint8_t)(c), (shf)) : \
1631 ((shf)->wnleft--, *(shf)->wp++ = (c)))
1632 #define shf_eof(shf) ((shf)->flags & SHF_EOF) argument
[all …]
Deval.c45 struct shf *shf; member
444 struct shf shf; in expand() local
446 shf_sopen(NULL, 0, SHF_WR|SHF_DYNAMIC, &shf); in expand()
447 print_value_quoted(&shf, str_val(st->var)); in expand()
448 x.str = shf_sclose(&shf); in expand()
889 if (x.u.shf == NULL) { in expand()
899 while ((c = shf_getc(x.u.shf)) == 0 || in expand()
903 c = shf_getc(x.u.shf); in expand()
908 shf_ungetc(c, x.u.shf); in expand()
921 shf_ungetc(c, x.u.shf); in expand()
[all …]
Dmain.c523 s->u.shf = shf_open(s->file, O_RDONLY | O_MAYEXEC, 0, in main_init()
525 if (s->u.shf == NULL) { in main_init()
537 s->u.shf = shf_fdopen(0, SHF_RD | can_seek(0), in main_init()
543 s->u.shf->flags |= SHF_INTERRUPT; in main_init()
718 struct shf *shf; in include() local
723 shf = shf_open(name, O_RDONLY | O_MAYEXEC, 0, SHF_MAPHI | SHF_CLEXEC); in include()
724 if (shf == NULL) in include()
736 quitenv(s ? s->u.shf : NULL); in include()
769 s->u.shf = shf; in include()
772 quitenv(s->u.shf); in include()
[all …]
Dmisc.c182 co.shf = shl_stdout; in printoptions()
1343 print_value_quoted(struct shf *shf, const char *s) in print_value_quoted() argument
1351 shf_putc('\'', shf); in print_value_quoted()
1352 shf_putc('\'', shf); in print_value_quoted()
1365 shf_puts(s, shf); in print_value_quoted()
1378 shf_putc('\'', shf); in print_value_quoted()
1381 shf_putc('\\', shf); in print_value_quoted()
1383 shf_putc('\'', shf); in print_value_quoted()
1386 shf_putc(c, shf); in print_value_quoted()
1393 shf_putc('$', shf); in print_value_quoted()
[all …]
Djobs.c146 static struct shf *shl_j;
156 static void j_print(Job *, int, struct shf *);
1537 j_print(Job *j, int how, struct shf *shf) in j_print() argument
1556 shf_fprintf(shf, Tf_dN, (int)(j->pgrp ? j->pgrp : in j_print()
1622 shf_fprintf(shf, "[%d] %c ", j->job, jobchar); in j_print()
1624 shf_puts(filler, shf); in j_print()
1628 shf_fprintf(shf, "%5d ", (int)p->pid); in j_print()
1634 shf_fprintf(shf, "%s%s ", in j_print()
1637 shf_puts(buf, shf); in j_print()
1638 shf_putchar(' ', shf); in j_print()
[all …]
Dhistrap.c87 struct shf *shf; in c_fc() local
296 if (!(shf = tf->shf)) { in c_fc()
302 shf_fprintf(shf, Tf_sN, *hp); in c_fc()
303 if (shf_close(shf) == -1) { in c_fc()
320 if (!(shf = shf_open(tf->tffn, O_RDONLY, 0, 0))) { in c_fc()
334 while ((n = shf_read(xp, Xnleft(xs, xp), shf)) > 0) { in c_fc()
341 cstrerror(shf_errno(shf))); in c_fc()
343 shf_close(shf); in c_fc()
346 shf_close(shf); in c_fc()
Dlex.c1401 char *p = shf_getse(xp, Xnleft(s->xs, xp), s->u.shf); in getsc_line()
1403 if (!p && shf_error(s->u.shf) && in getsc_line()
1404 shf_errno(s->u.shf) == EINTR) { in getsc_line()
1405 shf_clearerr(s->u.shf); in getsc_line()
1427 shf_flush(s->u.shf); in getsc_line()
1446 shf_fdclose(s->u.shf); in getsc_line()
1486 struct shf *shf; in set_prompt() local
1492 shf = shf_sopen(NULL, strlen(ps1) * 2, in set_prompt()
1496 shf_putchar(*ps1++, shf); in set_prompt()
1498 shf_fprintf(shf, Tf_lu, s ? in set_prompt()
[all …]
Dexec.c1594 hereinval(struct ioword *iop, int sub, char **resbuf, struct shf *shf) in hereinval() argument
1603 quitenv(shf); in hereinval()
1621 shf_puts(ccp, shf); in hereinval()
1633 struct shf *shf; in herein() local
1649 if (!(shf = h->shf) || (fd = binopen3(h->tffn, O_RDONLY, 0)) < 0) { in herein()
1652 !shf ? Tcreate : Topen, h->tffn, cstrerror(i)); in herein()
1653 if (shf) in herein()
1654 shf_close(shf); in herein()
1659 if (hereinval(iop, i, NULL, shf) == -2) { in herein()
1665 if (shf_close(shf) == -1) { in herein()
[all …]
/external/llvm/test/MC/Mips/msa/
Dtest_i8.s9 # CHECK: shf.b $w19, $w30, 105 # encoding: [0x78,0x69,0xf4,0xc2]
10 # CHECK: shf.h $w17, $w8, 76 # encoding: [0x79,0x4c,0x44,0x42]
11 # CHECK: shf.w $w14, $w3, 93 # encoding: [0x7a,0x5d,0x1b,0x82]
20 shf.b $w19, $w30, 105
21 shf.h $w17, $w8, 76
22 shf.w $w14, $w3, 93
Dinvalid-64.s40 shf.b $w19, $w30, -1 # CHECK: :[[@LINE]]:23: error: expected 8-bit unsigned immediate
41 shf.h $w17, $w8, -1 # CHECK: :[[@LINE]]:22: error: expected 8-bit unsigned immediate
42 shf.w $w14, $w3, -1 # CHECK: :[[@LINE]]:22: error: expected 8-bit unsigned immediate
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/Mips/msa/
Dtest_i8.s9 # CHECK: shf.b $w19, $w30, 105 # encoding: [0x78,0x69,0xf4,0xc2]
10 # CHECK: shf.h $w17, $w8, 76 # encoding: [0x79,0x4c,0x44,0x42]
11 # CHECK: shf.w $w14, $w3, 93 # encoding: [0x7a,0x5d,0x1b,0x82]
20 shf.b $w19, $w30, 105
21 shf.h $w17, $w8, 76
22 shf.w $w14, $w3, 93
Dinvalid-64.s40 shf.b $w19, $w30, -1 # CHECK: :[[@LINE]]:23: error: expected 8-bit unsigned immediate
41 shf.h $w17, $w8, -1 # CHECK: :[[@LINE]]:22: error: expected 8-bit unsigned immediate
42 shf.w $w14, $w3, -1 # CHECK: :[[@LINE]]:22: error: expected 8-bit unsigned immediate
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/NVPTX/
Drotate.ll16 ; SM35: shf.l.wrap.b32
28 ; SM35: shf.l.wrap.b32
29 ; SM35: shf.l.wrap.b32
41 ; SM35: shf.r.wrap.b32
42 ; SM35: shf.r.wrap.b32
53 ; SM35: shf.l.wrap.b32
/external/llvm/test/CodeGen/NVPTX/
Drotate.ll16 ; SM35: shf.l.wrap.b32
28 ; SM35: shf.l.wrap.b32
29 ; SM35: shf.l.wrap.b32
41 ; SM35: shf.r.wrap.b32
42 ; SM35: shf.r.wrap.b32
53 ; SM35: shf.l.wrap.b32
/external/capstone/suite/MC/Mips/
Dtest_i8.s.cs8 0x78,0x69,0xf4,0xc2 = shf.b $w19, $w30, 105
9 0x79,0x4c,0x44,0x42 = shf.h $w17, $w8, 76
10 0x7a,0x5d,0x1b,0x82 = shf.w $w14, $w3, 93
/external/llvm/test/MC/Disassembler/Mips/msa/
Dtest_i8.txt9 0x78 0x69 0xf4 0xc2 # CHECK: shf.b $w19, $w30, 105
10 0x79 0x4c 0x44 0x42 # CHECK: shf.h $w17, $w8, 76
11 0x7a 0x5d 0x1b 0x82 # CHECK: shf.w $w14, $w3, 93
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/Disassembler/Mips/msa/
Dtest_i8.txt9 0x78 0x69 0xf4 0xc2 # CHECK: shf.b $w19, $w30, 105
10 0x79 0x4c 0x44 0x42 # CHECK: shf.h $w17, $w8, 76
11 0x7a 0x5d 0x1b 0x82 # CHECK: shf.w $w14, $w3, 93
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Mips/msa/
Di8.ll142 %1 = tail call <16 x i8> @llvm.mips.shf.b(<16 x i8> %0, i32 25)
147 declare <16 x i8> @llvm.mips.shf.b(<16 x i8>, i32) nounwind
151 ; CHECK: shf.b
161 %1 = tail call <8 x i16> @llvm.mips.shf.h(<8 x i16> %0, i32 25)
166 declare <8 x i16> @llvm.mips.shf.h(<8 x i16>, i32) nounwind
170 ; CHECK: shf.h
180 %1 = tail call <4 x i32> @llvm.mips.shf.w(<4 x i32> %0, i32 25)
185 declare <4 x i32> @llvm.mips.shf.w(<4 x i32>, i32) nounwind
189 ; CHECK: shf.w
Dbitcast.ll50 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 177
98 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 27
123 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 27
148 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 27
149 ; BIGENDIAN: shf.w [[R3:\$w[0-9]+]], [[R3]], 177
174 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 27
175 ; BIGENDIAN: shf.w [[R3:\$w[0-9]+]], [[R3]], 177
200 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 177
272 ; BIGENDIAN: shf.h [[R3:\$w[0-9]+]], [[R2]], 177
297 ; BIGENDIAN: shf.h [[R3:\$w[0-9]+]], [[R2]], 177
[all …]
/external/llvm/test/CodeGen/Mips/msa/
Di8.ll142 %1 = tail call <16 x i8> @llvm.mips.shf.b(<16 x i8> %0, i32 25)
147 declare <16 x i8> @llvm.mips.shf.b(<16 x i8>, i32) nounwind
151 ; CHECK: shf.b
161 %1 = tail call <8 x i16> @llvm.mips.shf.h(<8 x i16> %0, i32 25)
166 declare <8 x i16> @llvm.mips.shf.h(<8 x i16>, i32) nounwind
170 ; CHECK: shf.h
180 %1 = tail call <4 x i32> @llvm.mips.shf.w(<4 x i32> %0, i32 25)
185 declare <4 x i32> @llvm.mips.shf.w(<4 x i32>, i32) nounwind
189 ; CHECK: shf.w
Dbitcast.ll50 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 177
98 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 27
123 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 27
148 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 27
149 ; BIGENDIAN: shf.w [[R3:\$w[0-9]+]], [[R3]], 177
174 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 27
175 ; BIGENDIAN: shf.w [[R3:\$w[0-9]+]], [[R3]], 177
200 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 177
272 ; BIGENDIAN: shf.h [[R3:\$w[0-9]+]], [[R2]], 177
297 ; BIGENDIAN: shf.h [[R3:\$w[0-9]+]], [[R2]], 177
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/
DMSA.txt24 constant since shf.w covers exactly the same cases. shf.w is used
48 It is not possible to emit splati.w since shf.w covers the same cases.
49 shf.w will be emitted instead.
/external/llvm/lib/Target/Mips/
DMSA.txt24 constant since shf.w covers exactly the same cases. shf.w is used
48 It is not possible to emit splati.w since shf.w covers the same cases.
49 shf.w will be emitted instead.

123