Lines Matching refs:code
353 attr_rtx_1 (enum rtx_code code, va_list p) in attr_rtx_1() argument
364 if (GET_RTX_CLASS (code) == RTX_UNARY) in attr_rtx_1()
371 rt_val = rtx_alloc (code); in attr_rtx_1()
376 hashcode = ((HOST_WIDE_INT) code + RTL_HASH (arg0)); in attr_rtx_1()
379 && GET_CODE (h->u.rtl) == code in attr_rtx_1()
386 rt_val = rtx_alloc (code); in attr_rtx_1()
390 else if (GET_RTX_CLASS (code) == RTX_BIN_ARITH in attr_rtx_1()
391 || GET_RTX_CLASS (code) == RTX_COMM_ARITH in attr_rtx_1()
392 || GET_RTX_CLASS (code) == RTX_COMPARE in attr_rtx_1()
393 || GET_RTX_CLASS (code) == RTX_COMM_COMPARE) in attr_rtx_1()
401 rt_val = rtx_alloc (code); in attr_rtx_1()
407 hashcode = ((HOST_WIDE_INT) code + RTL_HASH (arg0) + RTL_HASH (arg1)); in attr_rtx_1()
410 && GET_CODE (h->u.rtl) == code in attr_rtx_1()
418 rt_val = rtx_alloc (code); in attr_rtx_1()
423 else if (GET_RTX_LENGTH (code) == 1 in attr_rtx_1()
424 && GET_RTX_FORMAT (code)[0] == 's') in attr_rtx_1()
430 hashcode = ((HOST_WIDE_INT) code + RTL_HASH (arg0)); in attr_rtx_1()
433 && GET_CODE (h->u.rtl) == code in attr_rtx_1()
440 rt_val = rtx_alloc (code); in attr_rtx_1()
444 else if (GET_RTX_LENGTH (code) == 2 in attr_rtx_1()
445 && GET_RTX_FORMAT (code)[0] == 's' in attr_rtx_1()
446 && GET_RTX_FORMAT (code)[1] == 's') in attr_rtx_1()
451 hashcode = ((HOST_WIDE_INT) code + RTL_HASH (arg0) + RTL_HASH (arg1)); in attr_rtx_1()
454 && GET_CODE (h->u.rtl) == code in attr_rtx_1()
462 rt_val = rtx_alloc (code); in attr_rtx_1()
467 else if (code == CONST_INT) in attr_rtx_1()
482 rt_val = rtx_alloc (code); /* Allocate the storage space. */ in attr_rtx_1()
484 fmt = GET_RTX_FORMAT (code); /* Find the right format... */ in attr_rtx_1()
485 for (i = 0; i < GET_RTX_LENGTH (code); i++) in attr_rtx_1()
527 attr_rtx (enum rtx_code code, ...) in attr_rtx() argument
532 va_start (p, code); in attr_rtx()
533 result = attr_rtx_1 (code, p); in attr_rtx()
624 RTX_CODE code; in attr_copy_rtx() local
631 code = GET_CODE (orig); in attr_copy_rtx()
633 switch (code) in attr_copy_rtx()
649 copy = rtx_alloc (code); in attr_copy_rtx()
1804 insert_right_side (enum rtx_code code, rtx exp, rtx term, int insn_code, int insn_index) in insert_right_side() argument
1809 if (code == AND && term == true_rtx) in insert_right_side()
1811 if (code == AND && term == false_rtx) in insert_right_side()
1813 if (code == AND && exp == true_rtx) in insert_right_side()
1815 if (code == AND && exp == false_rtx) in insert_right_side()
1817 if (code == IOR && term == true_rtx) in insert_right_side()
1819 if (code == IOR && term == false_rtx) in insert_right_side()
1821 if (code == IOR && exp == true_rtx) in insert_right_side()
1823 if (code == IOR && exp == false_rtx) in insert_right_side()
1828 if (GET_CODE (term) == code) in insert_right_side()
1830 exp = insert_right_side (code, exp, XEXP (term, 0), in insert_right_side()
1832 exp = insert_right_side (code, exp, XEXP (term, 1), in insert_right_side()
1838 if (GET_CODE (exp) == code) in insert_right_side()
1840 rtx new = insert_right_side (code, XEXP (exp, 1), in insert_right_side()
1844 newexp = attr_rtx (code, XEXP (exp, 0), new); in insert_right_side()
1851 newexp = attr_rtx (code, exp, term); in insert_right_side()
1866 compute_alternative_mask (rtx exp, enum rtx_code code) in compute_alternative_mask() argument
1869 if (GET_CODE (exp) == code) in compute_alternative_mask()
1870 return compute_alternative_mask (XEXP (exp, 0), code) in compute_alternative_mask()
1871 | compute_alternative_mask (XEXP (exp, 1), code); in compute_alternative_mask()
1873 else if (code == AND && GET_CODE (exp) == NOT in compute_alternative_mask()
1878 else if (code == IOR && GET_CODE (exp) == EQ_ATTR in compute_alternative_mask()
1884 if (code == AND && XINT (exp, 1)) in compute_alternative_mask()
1887 if (code == IOR && !XINT (exp, 1)) in compute_alternative_mask()
2237 enum rtx_code code; in attr_rtx_cost() local
2240 code = GET_CODE (x); in attr_rtx_cost()
2241 switch (code) in attr_rtx_cost()
2261 const char *fmt = GET_RTX_FORMAT (code); in attr_rtx_cost()
2262 for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--) in attr_rtx_cost()
2852 enum rtx_code code; in clear_struct_flag() local
2859 code = GET_CODE (x); in clear_struct_flag()
2861 switch (code) in clear_struct_flag()
2882 fmt = GET_RTX_FORMAT (code); in clear_struct_flag()
2883 for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--) in clear_struct_flag()
3158 RTX_CODE code; in write_test_expr() local
3165 code = GET_CODE (exp); in write_test_expr()
3166 switch (code) in write_test_expr()
3183 switch (code) in write_test_expr()
3272 switch (code) in write_test_expr()
3436 GET_RTX_NAME (code)); in write_test_expr()
3575 RTX_CODE code; in walk_attr_value() local
3580 code = GET_CODE (exp); in walk_attr_value()
3581 switch (code) in walk_attr_value()
3622 for (i = 0, fmt = GET_RTX_FORMAT (code); i < GET_RTX_LENGTH (code); i++) in walk_attr_value()