Changeset 14759


Ignore:
Timestamp:
Apr 29, 2011, 10:00:06 PM (9 years ago)
Author:
gb
Message:

Treat unary - as subtraction from 0, maybe turn that to negation in the backend.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/compiler/nx1.lisp

    r14740 r14759  
    699699      (make-acode (%nx1-operator %%ineg)(nx1-form num))
    700700      (make-acode (%nx1-operator %ineg) (nx1-form num)))
    701     (make-acode (%nx1-operator minus1) (nx1-form num))))
     701    (nx1-form `(- 0 ,num))))
     702         
    702703
    703704       
Note: See TracChangeset for help on using the changeset viewer.