fix two bugs in isel
This commit is contained in:
parent
e5983ba1a2
commit
2482f4dbbb
5 changed files with 11 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue