change betranshelp semantic to panic instead of duplicating node in case of missing...
[libfirm] / ir / be / ia32 / ia32_nodes_attr.h
index c6d09d6..4a78823 100644 (file)
 #define FIRM_BE_IA32_IA32_NODES_ATTR_H
 
 #include "firm_types.h"
-#include "../bearch_t.h"
+#include "../bearch.h"
 #include "../bemachine.h"
 #include "irnode_t.h"
 
 enum {
-       ia32_pn_Cmp_unsigned = 0x1000,
-       ia32_pn_Cmp_float    = 0x2000,
-       ia32_pn_Cmp_parity   = 0x4000
+       ia32_pn_Cmp_unsigned  = 0x1000,
+       ia32_pn_Cmp_float     = 0x2000,
+       ia32_pn_Cmp_parity    = 0x4000,
+       /* The unsigned Lt/Ge comparisons test the carry bit. */
+       ia32_pn_Cmp_carry     = pn_Cmp_Lt | ia32_pn_Cmp_unsigned,
+       ia32_pn_Cmp_not_carry = pn_Cmp_Ge | ia32_pn_Cmp_unsigned
 };
 
 typedef enum {
@@ -61,7 +64,9 @@ typedef enum {
                                               by 32 bit operations */
        match_try_am            = 1 << 7, /**< only try to produce AM node, don't
                                               do anything if AM isn't possible */
-       match_two_users         = 1 << 8  /**< the instruction uses a load two times ... */
+       match_two_users         = 1 << 8, /**< the instruction uses a load two times ... */
+       match_upconv_32         = 1 << 9  /**< 8/16 bit insn are processed by doing
+                                              an upconv to 32bit */
 } match_flags_t;
 
 typedef struct ia32_op_attr_t ia32_op_attr_t;
@@ -124,7 +129,6 @@ struct ia32_attr_t {
        const be_execution_unit_t ***exec_units; /**< list of units this operation can be executed on */
 
        const arch_register_req_t **in_req;  /**< register requirements for arguments */
-       const arch_register_req_t **out_req; /**< register requirements for results */
 
        ir_label_t        exc_label;       /**< the exception label iff this instruction can throw an exception */
 
@@ -133,7 +137,7 @@ struct ia32_attr_t {
        unsigned          attr_type;      /**< bitfield indicating the attribute type */
 #endif
 };
-COMPILETIME_ASSERT(sizeof(struct ia32_attr_data_bitfield) <= 4, attr_bitfield);
+COMPILETIME_ASSERT(sizeof(struct ia32_attr_data_bitfield) <= 4, attr_bitfield)
 
 /**
  * The attributes for a Call node.