mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
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.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2018-03-09 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
|
2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* config/tc-i386.c (set_cpu_arch): Set cpu_arch_isa_flags.
|
* config/tc-i386.c (set_cpu_arch): Set cpu_arch_isa_flags.
|
||||||
|
@ -8524,6 +8524,12 @@ check_VecOperations (char *op_string, char *op_end)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
op_string++;
|
op_string++;
|
||||||
|
|
||||||
|
/* Strip whitespace since the addition of pseudo prefixes
|
||||||
|
changed how the scrubber treats '{'. */
|
||||||
|
if (is_space_char (*op_string))
|
||||||
|
++op_string;
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
unknown_vec_op:
|
unknown_vec_op:
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
.text
|
.text
|
||||||
_start:
|
_start:
|
||||||
vandnpd %zmm1, %zmm1, %zmm5{%k7}
|
vandnpd %zmm1, %zmm1, %zmm5{%k7}
|
||||||
vandnpd %ymm1, %ymm1, %ymm5{z}{%k7}
|
vandnpd %ymm1, %ymm1, %ymm5 {%k7} {z}
|
||||||
vandnpd %zmm1, %zmm1, %zmm5
|
vandnpd %zmm1, %zmm1, %zmm5
|
||||||
vandnpd %ymm1, %ymm1, %ymm5
|
vandnpd %ymm1, %ymm1, %ymm5
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
.text
|
.text
|
||||||
_start:
|
_start:
|
||||||
vandnpd %zmm1, %zmm1, %zmm15{%k7}
|
vandnpd %zmm1, %zmm1, %zmm15{%k7}
|
||||||
vandnpd %ymm1, %ymm1, %ymm15{z}{%k7}
|
vandnpd %ymm1, %ymm1, %ymm15 {%k7} {z}
|
||||||
vandnpd %zmm1, %zmm1, %zmm15
|
vandnpd %zmm1, %zmm1, %zmm15
|
||||||
vandnpd %ymm1, %ymm1, %ymm15
|
vandnpd %ymm1, %ymm1, %ymm15
|
||||||
vandnpd %zmm1, %zmm1, %zmm16
|
vandnpd %zmm1, %zmm1, %zmm16
|
||||||
|
Reference in New Issue
Block a user