Lines Matching refs:t_tspec
146 lint_assert(is_integer(tp->t_tspec));
149 : size_in_bits(tp->t_tspec);
213 return !is_uinteger(tp->t_tspec) && ic.bclr >> 63 == 0;
220 return !is_uinteger(tp->t_tspec) && (a.bclr & b.bclr) >> 63 == 0;
230 if (is_uinteger(tp->t_tspec)) {
367 c.umax = is_uinteger(tp->t_tspec) ? ui_max_value(tp)
479 lint_assert(is_integer(tp->t_tspec));
497 bool new_unsigned = is_uinteger(ntp->t_tspec);
498 bool old_unsigned = is_uinteger(otp->t_tspec);
514 lint_assert(is_integer(tn->tn_type->t_tspec));
534 if (tn->u.ops.left->tn_type->t_tspec == PTR)
566 if (!is_integer(tn->u.ops.left->tn_type->t_tspec))
598 tp2->t_tspec = t;
612 tp2->t_tspec = t;
630 if (tn->tn_type->t_subt->t_tspec != CHAR)
652 lint_assert(ln->tn_type->t_tspec == PTR);
653 tspec_t t = ln->tn_type->t_subt->t_tspec;
668 n->u.value.v_tspec = tp->t_tspec;
816 if (sym->s_kind == SK_VCFT && sym->s_type->t_tspec != FUNC)
834 tp->t_tspec = ARRAY;
914 tspec_t lt = ln->tn_type->t_tspec;
915 tspec_t rt = rn->tn_type->t_tspec;
1031 ntp->t_tspec = t;
1048 tspec_t lt = (*lnp)->tn_type->t_tspec;
1049 tspec_t rt = (*rnp)->tn_type->t_tspec;
1084 tn->u.ops.left->tn_type->t_tspec == PTR &&
1258 tspec_t t = tn->u.ops.left->tn_type->t_tspec;
1310 v->v_tspec = tn->tn_type->t_tspec;
1333 else if (ln->tn_type->t_tspec != PTR) {
1335 lint_assert(is_integer(ln->tn_type->t_tspec));
1363 lint_assert(tp->t_tspec == PTR);
1367 while (tp->t_tspec == ARRAY) {
1373 switch (tp->t_tspec) {
1394 if ((elsz_in_bits = size_in_bits(tp->t_tspec)) == 0)
1418 tnode_t *cn = ln->tn_type->t_tspec == PTR
1435 if (ltp->t_tspec != ARRAY || ltp->t_incomplete_array)
1481 if (rn->tn_type->t_tspec == PTR && is_integer(ln->tn_type->t_tspec)) {
1490 tspec_t lt = ln->tn_type->t_tspec;
1491 tspec_t rt = rn->tn_type->t_tspec;
1499 tspec_t szt = elsz->tn_type->t_tspec;
1533 if (!allow_c90 && rn->tn_type->t_tspec != INT)
1544 tspec_t t = tn->tn_type->t_tspec;
1549 return ((t == PTR && tn->tn_type->t_subt->t_tspec == VOID)
1559 lint_assert(tp1->t_tspec == PTR);
1560 lint_assert(tp2->t_tspec == PTR);
1583 tspec_t lt = ln->tn_type->t_tspec;
1584 tspec_t rt = rn->tn_type->t_tspec;
1615 else if (lt == PTR && ln->tn_type->t_subt->t_tspec == VOID)
1617 else if (rt == PTR && rn->tn_type->t_subt->t_tspec == VOID)
1636 tspec_t nt = ntp->t_tspec, ot = otp->t_tspec;
1661 if (ntp->t_subt->t_tspec == VOID ||
1662 otp->t_subt->t_tspec == VOID ||
1694 tspec_t lt = ln->tn_type->t_tspec;
1695 tspec_t rt = rn->tn_type->t_tspec;
1704 if (rn->tn_type->t_tspec != ctn->tn_type->t_tspec)
1738 if (lt == PTR && ln->tn_type->t_subt->t_tspec != VOID
1739 && rt == PTR && rn->tn_type->t_subt->t_tspec == VOID
1770 switch (ln->tn_type->t_tspec) {
1854 v->v_tspec = tn->tn_type->t_tspec;
1925 tspec_t t = tn->tn_type->t_tspec;
1932 lint_assert(t == tn->u.ops.left->tn_type->t_tspec);
1933 lint_assert(!is_binary(tn) || t == tn->u.ops.right->tn_type->t_tspec);
2165 else if (is_floating(ntn->tn_type->t_tspec))
2247 if (is_struct_or_union(mem->s_type->t_tspec)
2293 if (op == POINT && is_struct_or_union(tn->tn_type->t_tspec))
2295 if (op == ARROW && tn->tn_type->t_tspec == PTR
2296 && is_struct_or_union(tn->tn_type->t_subt->t_tspec))
2336 if (!allow_c90 && tn->tn_type->t_tspec == PTR)
2384 if (tn->tn_type->t_tspec == ARRAY) {
2394 if (tn->tn_type->t_tspec == FUNC)
2587 tspec_t olt = before_conversion(ln)->tn_type->t_tspec;
2588 tspec_t ort = before_conversion(rn)->tn_type->t_tspec;
2634 if (!is_uinteger(ln->tn_type->t_tspec)
2695 lint_assert(ltp->t_tspec == PTR);
2696 lint_assert(rtp->t_tspec == PTR);
2698 tspec_t lt = ltp->t_subt->t_tspec;
2699 tspec_t rt = rtp->t_subt->t_tspec;
2726 tspec_t lst = ltp->t_subt->t_tspec, rst = rtp->t_subt->t_tspec;
2797 tspec_t lst = lstp->t_tspec;
2798 tspec_t rst = rstp->t_tspec;
2865 lint_assert(is_struct_or_union(tp->t_tspec));
2872 if (is_struct_or_union(mtp->t_tspec) &&
3015 return tp->t_tspec == PTR &&
3016 tp->t_subt->t_tspec == CHAR &&
3024 return tp->t_tspec == PTR && tp->t_subt->t_const;
3032 if (lstp->t_tspec == CHAR && !lstp->t_const &&
3181 if ((lt = (ltp = ln->tn_type)->t_tspec) == PTR)
3182 lst = (lstp = ltp->t_subt)->t_tspec;
3183 if ((rt = (rtp = rn->tn_type)->t_tspec) == PTR)
3184 rst = (rstp = rtp->t_subt)->t_tspec;
3196 if (is_integer(rn->tn_type->t_tspec))
3226 if (op == CVT && tn->tn_type->t_tspec == VOID)
3248 tn->tn_type->t_tspec == VOID;
3265 tn->tn_type->t_tspec == INT &&
3385 ((ln->tn_type->t_is_enum && rn->tn_type->t_tspec == PTR) ||
3386 (rn->tn_type->t_is_enum && ln->tn_type->t_tspec == PTR))) {
3443 is_integer(rn->tn_type->t_tspec) &&
3493 tspec_t lt = ltp->t_tspec;
3496 tspec_t rt = mp->m_binary ? rtp->t_tspec : NO_TSPEC;
3573 tspec_t ot = otp->t_tspec;
3582 ntp->t_tspec = nt;
3595 if (is_uinteger(tp->t_tspec)
3686 ot = ptn->tn_type->t_tspec;
3703 if (!is_uinteger(tp->t_tspec))
3711 if (is_uinteger(tp->t_tspec)
3821 return tp->t_tspec == ARRAY &&
3822 (tp->t_subt->t_tspec == CHAR || tp->t_subt->t_tspec == UCHAR);
3842 nstp = nstp->t_subt, nst = nstp->t_tspec;
3844 ostp = ostp->t_subt, ost = ostp->t_tspec;
3899 tspec_t nst = nstp->t_tspec;
3900 tspec_t ost = ostp->t_tspec;
3952 tspec_t nt = tp->t_tspec;
3953 tspec_t ot = tn->tn_type->t_tspec;
4248 tspec_t nt = nv->v_tspec = ntp->t_tspec;
4298 if (!is_struct_or_union(tp->t_tspec)) {
4306 if (tp->t_tspec != ARRAY)
4312 if (!is_struct_or_union(tp->t_tspec))
4341 while (tp->t_tspec == ARRAY) {
4353 switch (tp->t_tspec) {
4383 elsz = size_in_bits(tp->t_tspec);
4395 if (tp->t_tspec == FUNC) {
4400 if (tp->t_tspec == VOID) {
4450 && is_integer(n->u.ops.right->tn_type->t_tspec)) {
4454 if (n->tn_type->t_tspec == PTR
4458 && n->u.ops.left->u.ops.left->tn_type->t_tspec == PTR) {
4475 tspec_t nt = tp->t_tspec;
4476 tspec_t ot = tn->tn_type->t_tspec;
4601 tspec_t at = arg->tn_type->t_tspec;
4661 && call->args[0]->tn_type->t_tspec == PTR)
4679 if (func->tn_type->t_tspec != PTR ||
4680 func->tn_type->t_subt->t_tspec != FUNC) {
4720 v->v_tspec = tn->tn_type->t_tspec;
4723 lint_assert(tn->tn_type->t_tspec == tn->u.value.v_tspec);
4799 && arr->tn_type->t_tspec == ARRAY
4812 int64_t con = is_uinteger(idx->tn_type->t_tspec)
4818 if (!is_uinteger(idx->tn_type->t_tspec) && con < 0)
4967 bool discard = op == CVT && tn->tn_type->t_tspec == VOID;
4995 if (op == COLON && tn->tn_type->t_tspec == VOID)
4997 bool discard = op == CVT && tn->tn_type->t_tspec == VOID;
5076 t = tn->tn_type->t_tspec;
5077 ot = tn->u.ops.left->tn_type->t_tspec;