From: Dave Brolley Date: Mon, 5 Mar 2001 15:43:38 +0000 (+0000) Subject: 2001-03-05 Dave Brolley X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=c8f3c1e717d379d699b4123c6637151bdf033da0;p=cgen.git 2001-03-05 Dave Brolley * sim-decode.scm (-gen-extract-case): Generate declaration of "insn" if the number of ifields is greater than zero. --- diff --git a/ChangeLog b/ChangeLog index aaefba8..5252519 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-03-05 Dave Brolley + + * sim-decode.scm (-gen-extract-case): Generate declaration of "insn" + if the number of ifields is greater than zero. + 2001-03-01 Frank Ch. Eigler * sid.cpu (-op-gen-set-trace[-parallel], -create-virtual-insns!): diff --git a/sim-decode.scm b/sim-decode.scm index 8a8f5a2..7eeca05 100644 --- a/sim-decode.scm +++ b/sim-decode.scm @@ -433,7 +433,7 @@ void " extract_" (gen-sym sfmt) ":\n" " {\n" " const IDESC *idesc = &" IDESC-TABLE-VAR "[itype];\n" - (if (< (length (sfmt-iflds sfmt)) 0) + (if (> (length (sfmt-iflds sfmt)) 0) (string-append " CGEN_INSN_INT insn = " (if (adata-integral-insn? CURRENT-ARCH)