Lines Matching refs:cond
3 static int is_branch_cond(const char *cond) in is_branch_cond() argument
5 if (cond[0] == '\0') in is_branch_cond()
8 if (cond[0] == 'a' && cond[1] == '\0') in is_branch_cond()
11 if (cond[0] == 'c' && in is_branch_cond()
12 (cond[1] == 'c' || cond[1] == 's') && in is_branch_cond()
13 cond[2] == '\0') in is_branch_cond()
16 if (cond[0] == 'e' && in is_branch_cond()
17 (cond[1] == '\0' || in is_branch_cond()
18 (cond[1] == 'q' && cond[2] == '\0'))) in is_branch_cond()
21 if (cond[0] == 'g' && in is_branch_cond()
22 (cond[1] == '\0' || in is_branch_cond()
23 (cond[1] == 't' && cond[2] == '\0') || in is_branch_cond()
24 (cond[1] == 'e' && cond[2] == '\0') || in is_branch_cond()
25 (cond[1] == 'e' && cond[2] == 'u' && cond[3] == '\0'))) in is_branch_cond()
28 if (cond[0] == 'l' && in is_branch_cond()
29 (cond[1] == '\0' || in is_branch_cond()
30 (cond[1] == 't' && cond[2] == '\0') || in is_branch_cond()
31 (cond[1] == 'u' && cond[2] == '\0') || in is_branch_cond()
32 (cond[1] == 'e' && cond[2] == '\0') || in is_branch_cond()
33 (cond[1] == 'e' && cond[2] == 'u' && cond[3] == '\0'))) in is_branch_cond()
36 if (cond[0] == 'n' && in is_branch_cond()
37 (cond[1] == '\0' || in is_branch_cond()
38 (cond[1] == 'e' && cond[2] == '\0') || in is_branch_cond()
39 (cond[1] == 'z' && cond[2] == '\0') || in is_branch_cond()
40 (cond[1] == 'e' && cond[2] == 'g' && cond[3] == '\0'))) in is_branch_cond()
43 if (cond[0] == 'b' && in is_branch_cond()
44 cond[1] == 'p' && in is_branch_cond()
45 cond[2] == 'o' && in is_branch_cond()
46 cond[3] == 's' && in is_branch_cond()
47 cond[4] == '\0') in is_branch_cond()
50 if (cond[0] == 'v' && in is_branch_cond()
51 (cond[1] == 'c' || cond[1] == 's') && in is_branch_cond()
52 cond[2] == '\0') in is_branch_cond()
55 if (cond[0] == 'b' && in is_branch_cond()
56 cond[1] == 'z' && in is_branch_cond()
57 cond[2] == '\0') in is_branch_cond()
63 static int is_branch_reg_cond(const char *cond) in is_branch_reg_cond() argument
65 if ((cond[0] == 'n' || cond[0] == 'l') && in is_branch_reg_cond()
66 cond[1] == 'z' && in is_branch_reg_cond()
67 cond[2] == '\0') in is_branch_reg_cond()
70 if (cond[0] == 'z' && in is_branch_reg_cond()
71 cond[1] == '\0') in is_branch_reg_cond()
74 if ((cond[0] == 'g' || cond[0] == 'l') && in is_branch_reg_cond()
75 cond[1] == 'e' && in is_branch_reg_cond()
76 cond[2] == 'z' && in is_branch_reg_cond()
77 cond[3] == '\0') in is_branch_reg_cond()
80 if (cond[0] == 'g' && in is_branch_reg_cond()
81 cond[1] == 'z' && in is_branch_reg_cond()
82 cond[2] == '\0') in is_branch_reg_cond()
88 static int is_branch_float_cond(const char *cond) in is_branch_float_cond() argument
90 if (cond[0] == '\0') in is_branch_float_cond()
93 if ((cond[0] == 'a' || cond[0] == 'e' || in is_branch_float_cond()
94 cond[0] == 'z' || cond[0] == 'g' || in is_branch_float_cond()
95 cond[0] == 'l' || cond[0] == 'n' || in is_branch_float_cond()
96 cond[0] == 'o' || cond[0] == 'u') && in is_branch_float_cond()
97 cond[1] == '\0') in is_branch_float_cond()
100 if (((cond[0] == 'g' && cond[1] == 'e') || in is_branch_float_cond()
101 (cond[0] == 'l' && (cond[1] == 'e' || in is_branch_float_cond()
102 cond[1] == 'g')) || in is_branch_float_cond()
103 (cond[0] == 'n' && (cond[1] == 'e' || in is_branch_float_cond()
104 cond[1] == 'z')) || in is_branch_float_cond()
105 (cond[0] == 'u' && (cond[1] == 'e' || in is_branch_float_cond()
106 cond[1] == 'g' || in is_branch_float_cond()
107 cond[1] == 'l'))) && in is_branch_float_cond()
108 cond[2] == '\0') in is_branch_float_cond()
111 if (cond[0] == 'u' && in is_branch_float_cond()
112 (cond[1] == 'g' || cond[1] == 'l') && in is_branch_float_cond()
113 cond[2] == 'e' && in is_branch_float_cond()
114 cond[3] == '\0') in is_branch_float_cond()
140 const char *cond = name + 1; in sparc__associate_instruction_ops() local
142 if (cond[0] == 'r') { in sparc__associate_instruction_ops()
143 if (is_branch_reg_cond(cond + 1)) in sparc__associate_instruction_ops()
145 } else if (is_branch_cond(cond)) { in sparc__associate_instruction_ops()