Check validity of user parallel operations
authorMichael Meissner <gnu@the-meissners.org>
Mon, 18 Nov 1996 20:31:30 +0000 (20:31 +0000)
committerMichael Meissner <gnu@the-meissners.org>
Mon, 18 Nov 1996 20:31:30 +0000 (20:31 +0000)
gas/ChangeLog
gas/config/tc-d10v.c

index 610b0d2..bc5011b 100644 (file)
@@ -3,6 +3,9 @@ Mon Nov 18 15:22:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
 
        * config/tc-d10v.c (parallel_ok): Branch and link instructions
        modify r13.
+       (write_2_short): Call parallel_ok to check whether two short
+       instructions the user requested execute in parallel, can be
+       executed that way.
 
 Thu Nov 14 11:17:49 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
 
index 0de08e9..b2b9de6 100644 (file)
@@ -734,6 +734,9 @@ write_2_short (opcode1, insn1, opcode2, insn2, exec_type, fx)
       if (opcode1->exec_type & SEQ || opcode2->exec_type & SEQ)
        as_fatal ("One of these instructions may not be executed in parallel.");
 
+      if ( !parallel_ok (opcode1, insn1, opcode2, insn2))
+       as_fatal ("Two instructions may not be executed in parallel with each other.");
+
       if (opcode1->unit == IU)
        {
          if (opcode2->unit == IU)