Message ID | 1359991705-5254-66-git-send-email-damien.lespiau@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/assembler/gram.y b/assembler/gram.y index 4b5c6a3..c86e28f 100644 --- a/assembler/gram.y +++ b/assembler/gram.y @@ -2226,7 +2226,7 @@ accreg: ACCREG subregnum flagreg: FLAGREG subregnum { - if ((!IS_GENp(7) && $1) > 0 || + if ((!IS_GENp(7) && $1 > 0) || (IS_GENp(7) && $1 > 1)) { error(&@2, "flag register number %d out of range\n", $1); }
A small typo in the condition. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> --- assembler/gram.y | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)