OSDN Git Service

* insn.scm (/insn-parse): Canonicalize the ifield-assertion before
authordevans <devans>
Wed, 9 Sep 2009 22:21:29 +0000 (22:21 +0000)
committerdevans <devans>
Wed, 9 Sep 2009 22:21:29 +0000 (22:21 +0000)
saving.

cgen/ChangeLog
cgen/insn.scm

index 95110a6..c633016 100644 (file)
@@ -1,5 +1,8 @@
 2009-09-09  Doug Evans  <dje@sebabeach.org>
 
+       * insn.scm (/insn-parse): Canonicalize the ifield-assertion before
+       saving.
+
        Add support for controlling warnings/errors.
        Add tests for iformat description errors.
        * dev.scm (cload): New option #:diag.
index a7511d7..efa117b 100644 (file)
 
     (if (keep-atlist? atlist-obj #f)
 
-       (let ((ifield-assertion (if (not (null? ifield-assertion))
-                                   ifield-assertion
+       (let ((ifield-assertion (if (and ifield-assertion
+                                        (not (null? ifield-assertion)))
+                                   (rtx-canonicalize context ifield-assertion)
                                    #f))
              (semantics (if (not (null? semantics))
                             semantics