aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-03-09 03:51:19 -0800
committerH.J. Lu <hjl.tools@gmail.com>2018-03-09 03:51:31 -0800
commit0ba3a73180afa69e6920ba8c220f0323cb4fb896 (patch)
tree02c9a562a16f1dc3d742c83a9e09e92de02e8139 /gas/config
parent5dc1a7047a77f86de7518a99805af64891d4e22a (diff)
downloadgdb-0ba3a73180afa69e6920ba8c220f0323cb4fb896.zip
gdb-0ba3a73180afa69e6920ba8c220f0323cb4fb896.tar.gz
gdb-0ba3a73180afa69e6920ba8c220f0323cb4fb896.tar.bz2
x86: Strip whitespace in check_VecOperations
Since the addition of pseudo prefixes changed how the scrubber treats '{', we need to explicitly strip whitespace in check_VecOperations (). * config/tc-i386.c (check_VecOperations): Strip whitespace. * testsuite/gas/i386/optimize-1.s: Add whitespaces before {%k7} and {z}, * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i386.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index ef7b64b..7243760 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -8524,6 +8524,12 @@ check_VecOperations (char *op_string, char *op_end)
return NULL;
}
op_string++;
+
+ /* Strip whitespace since the addition of pseudo prefixes
+ changed how the scrubber treats '{'. */
+ if (is_space_char (*op_string))
+ ++op_string;
+
continue;
}
unknown_vec_op: