fix thinko in last patch
authorDoug Evans <dje@google.com>
Wed, 18 Feb 1998 23:57:47 +0000 (23:57 +0000)
committerDoug Evans <dje@google.com>
Wed, 18 Feb 1998 23:57:47 +0000 (23:57 +0000)
gas/config/tc-dvp.c

index 19f8f60c6b6b7d57ec2c79a488bd44f1605fc9b1..e7cfc69298acd7c8760dc1ea5c3932c05f25f7a2 100644 (file)
@@ -468,8 +468,11 @@ assemble_vu (str)
                             vu_lower_opcode_lookup_asm (str), vu_operands,
                             &str, f);
   /* If this was the "loi" pseudo-insn, we need to set the `i' bit.  */
-  if (strcmp (opcode->mnemonic, "loi") == 0)
-    f[7] |= 0x80;
+  if (opcode != NULL)
+    {
+      if (strcmp (opcode->mnemonic, "loi") == 0)
+       f[7] |= 0x80;
+    }
 }
 
 static const dvp_opcode *