Lines Matching refs:src
990 parse_reg_without_prefix (char *src, int *mode, int *reg) in parse_reg_without_prefix() argument
992 char l0 = TOLOWER (src[0]); in parse_reg_without_prefix()
993 char l1 = l0 ? TOLOWER (src[1]) : 0; in parse_reg_without_prefix()
1003 if (src[2] >= '0' && src[2] <= '5' in parse_reg_without_prefix()
1004 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1007 *reg = 10 + src[2] - '0'; in parse_reg_without_prefix()
1012 && ! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix()
1018 if (l1 >= '0' && l1 <= '7' && strncasecmp (&src[2], "_bank", 5) == 0 in parse_reg_without_prefix()
1019 && ! IDENT_CHAR ((unsigned char) src[7])) in parse_reg_without_prefix()
1026 if (l1 == 'e' && ! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix()
1031 if (l1 == 's' && ! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix()
1042 if (! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix()
1048 if (TOLOWER (src[2]) == 'g' && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1057 if (! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix()
1063 if (TOLOWER (src[2]) == 'g' && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1071 if (l1 == 'x' && src[2] >= '0' && src[2] <= '1' in parse_reg_without_prefix()
1072 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1078 if (l1 == 'y' && src[2] >= '0' && src[2] <= '1' in parse_reg_without_prefix()
1079 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1085 if (l1 == 's' && src[2] >= '0' && src[2] <= '3' in parse_reg_without_prefix()
1086 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1096 if (l0 == 'i' && l1 && ! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix()
1119 && ! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix()
1127 && ! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix()
1135 && ! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix()
1144 && TOLOWER (src[2]) == 'r' && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1150 if (l0 == 's' && l1 == 'p' && TOLOWER (src[2]) == 'c' in parse_reg_without_prefix()
1151 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1157 if (l0 == 's' && l1 == 'g' && TOLOWER (src[2]) == 'r' in parse_reg_without_prefix()
1158 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1164 if (l0 == 'd' && l1 == 's' && TOLOWER (src[2]) == 'r' in parse_reg_without_prefix()
1165 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1171 if (l0 == 'd' && l1 == 'b' && TOLOWER (src[2]) == 'r' in parse_reg_without_prefix()
1172 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1178 if (l0 == 's' && l1 == 'r' && ! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix()
1184 if (l0 == 's' && l1 == 'p' && ! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix()
1191 if (l0 == 'p' && l1 == 'r' && ! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix()
1196 if (l0 == 'p' && l1 == 'c' && ! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix()
1203 if (l0 == 'g' && l1 == 'b' && TOLOWER (src[2]) == 'r' in parse_reg_without_prefix()
1204 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1209 if (l0 == 'v' && l1 == 'b' && TOLOWER (src[2]) == 'r' in parse_reg_without_prefix()
1210 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1216 if (l0 == 't' && l1 == 'b' && TOLOWER (src[2]) == 'r' in parse_reg_without_prefix()
1217 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1222 if (l0 == 'm' && l1 == 'a' && TOLOWER (src[2]) == 'c' in parse_reg_without_prefix()
1223 && ! IDENT_CHAR ((unsigned char) src[4])) in parse_reg_without_prefix()
1225 if (TOLOWER (src[3]) == 'l') in parse_reg_without_prefix()
1230 if (TOLOWER (src[3]) == 'h') in parse_reg_without_prefix()
1236 if (l0 == 'm' && l1 == 'o' && TOLOWER (src[2]) == 'd' in parse_reg_without_prefix()
1237 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1244 if (src[2] == '1') in parse_reg_without_prefix()
1246 if (src[3] >= '0' && src[3] <= '5' in parse_reg_without_prefix()
1247 && ! IDENT_CHAR ((unsigned char) src[4])) in parse_reg_without_prefix()
1250 *reg = 10 + src[3] - '0'; in parse_reg_without_prefix()
1254 if (src[2] >= '0' && src[2] <= '9' in parse_reg_without_prefix()
1255 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1258 *reg = (src[2] - '0'); in parse_reg_without_prefix()
1264 if (src[2] == '1') in parse_reg_without_prefix()
1266 if (src[3] >= '0' && src[3] <= '4' && ! ((src[3] - '0') & 1) in parse_reg_without_prefix()
1267 && ! IDENT_CHAR ((unsigned char) src[4])) in parse_reg_without_prefix()
1270 *reg = 10 + src[3] - '0'; in parse_reg_without_prefix()
1274 if (src[2] >= '0' && src[2] <= '8' && ! ((src[2] - '0') & 1) in parse_reg_without_prefix()
1275 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1278 *reg = (src[2] - '0'); in parse_reg_without_prefix()
1284 if (src[2] == '1') in parse_reg_without_prefix()
1286 if (src[3] >= '0' && src[3] <= '4' && ! ((src[3] - '0') & 1) in parse_reg_without_prefix()
1287 && ! IDENT_CHAR ((unsigned char) src[4])) in parse_reg_without_prefix()
1290 *reg = 11 + src[3] - '0'; in parse_reg_without_prefix()
1294 if (src[2] >= '0' && src[2] <= '8' && ! ((src[2] - '0') & 1) in parse_reg_without_prefix()
1295 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1298 *reg = (src[2] - '0') + 1; in parse_reg_without_prefix()
1304 if (src[2] == '1'&& src[3] == '2' && ! IDENT_CHAR ((unsigned char) src[4])) in parse_reg_without_prefix()
1310 if ((src[2] == '0' || src[2] == '4' || src[2] == '8') in parse_reg_without_prefix()
1311 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix()
1314 *reg = (src[2] - '0'); in parse_reg_without_prefix()
1318 if (l0 == 'f' && l1 == 'p' && TOLOWER (src[2]) == 'u' in parse_reg_without_prefix()
1319 && TOLOWER (src[3]) == 'l' in parse_reg_without_prefix()
1320 && ! IDENT_CHAR ((unsigned char) src[4])) in parse_reg_without_prefix()
1326 if (l0 == 'f' && l1 == 'p' && TOLOWER (src[2]) == 's' in parse_reg_without_prefix()
1327 && TOLOWER (src[3]) == 'c' in parse_reg_without_prefix()
1328 && TOLOWER (src[4]) == 'r' && ! IDENT_CHAR ((unsigned char) src[5])) in parse_reg_without_prefix()
1334 if (l0 == 'x' && l1 == 'm' && TOLOWER (src[2]) == 't' in parse_reg_without_prefix()
1335 && TOLOWER (src[3]) == 'r' in parse_reg_without_prefix()
1336 && TOLOWER (src[4]) == 'x' && ! IDENT_CHAR ((unsigned char) src[5])) in parse_reg_without_prefix()
1349 parse_reg (char *src, int *mode, int *reg) in parse_reg() argument
1354 if (src[0] == '$') in parse_reg()
1358 src ++; in parse_reg()
1367 consumed = parse_reg_without_prefix (src, mode, reg); in parse_reg()
1411 parse_at (char *src, sh_operand_info *op) in parse_at() argument
1415 src++; in parse_at()
1416 if (src[0] == '@') in parse_at()
1418 src = parse_at (src, op); in parse_at()
1424 else if (src[0] == '-') in parse_at()
1427 src++; in parse_at()
1429 len = parse_reg (src, &mode, &(op->reg)); in parse_at()
1434 src += len; in parse_at()
1436 else if (src[0] == '(') in parse_at()
1440 src++; in parse_at()
1441 len = parse_reg (src, &mode, &(op->reg)); in parse_at()
1444 src += len; in parse_at()
1449 if (src[0] == ',') in parse_at()
1451 src++; in parse_at()
1453 len = parse_reg (src, &mode, &(op->reg)); in parse_at()
1482 src = parse_exp (src, op); in parse_at()
1483 if (src[0] == ',') in parse_at()
1484 src++; in parse_at()
1486 len = parse_reg (src, &mode, &op->reg); in parse_at()
1541 src += len; in parse_at()
1542 if (src[0] != ')') in parse_at()
1545 src++; in parse_at()
1549 src += parse_reg (src, &mode, &(op->reg)); in parse_at()
1553 if (src[0] == '+') in parse_at()
1557 src++; in parse_at()
1558 l0 = TOLOWER (src[0]); in parse_at()
1559 l1 = TOLOWER (src[1]); in parse_at()
1564 src += 2; in parse_at()
1570 src += 2; in parse_at()
1579 return src; in parse_at()
1585 char *src = *ptr; in get_operand() local
1589 if (src[0] == '#') in get_operand()
1591 src++; in get_operand()
1592 *ptr = parse_exp (src, op); in get_operand()
1597 else if (src[0] == '@') in get_operand()
1599 *ptr = parse_at (src, op); in get_operand()
1602 len = parse_reg (src, &mode, &(op->reg)); in get_operand()
1605 *ptr = src + len; in get_operand()
1612 *ptr = parse_exp (src, op); in get_operand()