diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-08-06 13:08:31 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:30 -0400 |
commit | 2482f4dbbb8a8fdc1a1bc398d5b8ca6f5af1fbd6 (patch) | |
tree | 623f29033d5fee4b948fa19de4013d6a20096cc2 /lisc/lisc.h | |
parent | e5983ba1a2174fe7fd004692a427aae5bfc0dc4c (diff) | |
download | roux-2482f4dbbb8a8fdc1a1bc398d5b8ca6f5af1fbd6.tar.gz |
fix two bugs in isel
Diffstat (limited to 'lisc/lisc.h')
-rw-r--r-- | lisc/lisc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h index 4e150db..2fe2614 100644 --- a/lisc/lisc.h +++ b/lisc/lisc.h @@ -108,12 +108,14 @@ static inline int rtype(Ref r) enum { Ceq, Csle, + Cslt, Csgt, /* mirror opposite cmps! */ + Csge, Cne, NCmp, }; -#define CNEG(c) (NCmp-1 - c) +#define COP(c) (c==Ceq||c==Cne ? c : NCmp-1 - c) enum { OXXX, |