... instead of open-coding it.
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -2528,7 +2528,7 @@ reg_name_p (char *str, aarch64_reg_type
return false;
skip_whitespace (str);
- if (*str == ',' || is_end_of_line[(unsigned char) *str])
+ if (*str == ',' || is_end_of_stmt (*str))
return true;
return false;