fix two bugs in isel

This commit is contained in:
Quentin Carbonneaux 2015-08-06 13:08:31 -04:00
parent e5983ba1a2
commit 2482f4dbbb
5 changed files with 11 additions and 6 deletions

View file

@ -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,