diff options
author | Jan Beulich <jbeulich@suse.com> | 2020-03-09 10:13:04 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2020-03-09 10:13:04 +0100 |
commit | 3677e4c1746a459ac4562de1abe54f283c71dc1c (patch) | |
tree | 8e72f23498650bc42c864d70d6a60979fd5149a1 /opcodes/i386-gen.c | |
parent | 4c4898e8f5a202d1985c3e69a4a3e05dcd63481a (diff) | |
download | gdb-3677e4c1746a459ac4562de1abe54f283c71dc1c.zip gdb-3677e4c1746a459ac4562de1abe54f283c71dc1c.tar.gz gdb-3677e4c1746a459ac4562de1abe54f283c71dc1c.tar.bz2 |
x86: use template for SSE floating point comparison insns
These all follow an almost common pattern, with the exception of being
commutative. This exception can be easily taken care of.
Diffstat (limited to 'opcodes/i386-gen.c')
-rw-r--r-- | opcodes/i386-gen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c index 0c5a392..50dd2b6 100644 --- a/opcodes/i386-gen.c +++ b/opcodes/i386-gen.c @@ -896,6 +896,10 @@ set_bitfield (char *f, bitfield *array, int value, { unsigned int i; + /* Ignore empty fields; they may result from template expansions. */ + if (*f == '\0') + return; + if (strcmp (f, "CpuFP") == 0) { set_bitfield("Cpu387", array, value, size, lineno); |