aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-z80.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-z80.c')
-rw-r--r--gas/config/tc-z80.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-z80.c b/gas/config/tc-z80.c
index 09fd1c3..7aabb8e 100644
--- a/gas/config/tc-z80.c
+++ b/gas/config/tc-z80.c
@@ -1604,7 +1604,7 @@ emit_ldreg (int dest, expressionS * src)
/* Fall through. */
case REG_BC:
case REG_DE:
- if (src->X_op == O_register || src->X_op != O_md1)
+ if (src->X_op == O_register || src->X_op == O_md1)
ill_op ();
q = frag_more (src->X_md ? 2 : 1);
if (src->X_md)