/*
- * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
#ifndef FIRM_BE_ARM_ARM_NODES_ATTR_H
#define FIRM_BE_ARM_ARM_NODES_ATTR_H
-#include "../bearch_t.h"
#include "firm_types.h"
+#include "irnode_t.h"
+#include "../bearch_t.h"
/**
* Possible ARM register shift types.
/** set the shift modifier to flags */
#define ARM_SET_SHF_MOD(attr, mod) ((attr)->instr_fl = (((attr)->instr_fl & ~7) | (mod)))
+/** fpa immediate bit */
+#define ARM_FPA_IMM (1 << 3) /**< fpa floating point immediate */
+
+#define ARM_GET_FPA_IMM(attr) ((attr)->instr_fl & ARM_FPA_IMM)
+#define ARM_SET_FPA_IMM(attr) ((attr)->instr_fl |= ARM_FPA_IMM)
+#define ARM_CLR_FPA_IMM(attr) ((attr)->instr_fl &= ~ARM_FPA_IMM)
/**
* Possible ARM condition codes.
ARM_COND_NE = 1, /**< Not Equal, Z clear */
ARM_COND_CS = 2, /**< Carry set, unsigned >=, C set */
ARM_COND_CC = 3, /**< Carry clear, unsigned <, C clear */
- ARM_COND_MI = 4, /**< Minus/Negativ, N set */
- ARM_COND_PL = 5, /**< Plus/Positiv or Zero, N clear */
+ ARM_COND_MI = 4, /**< Minus/Negative, N set */
+ ARM_COND_PL = 5, /**< Plus/Positive or Zero, N clear */
ARM_COND_VS = 6, /**< Overflow, V set */
ARM_COND_VC = 7, /**< No overflow, V clear */
ARM_COND_HI = 8, /**< unsigned >, C set and Z clear */
} arm_condition;
/** Get the condition code from flags */
-#define ARM_GET_COND(attr) (((attr)->instr_fl >> 3) & 15)
+#define ARM_GET_COND(attr) (((attr)->instr_fl >> 4) & 15)
/** Set the condition code to flags */
-#define ARM_SET_COND(attr, code) ((attr)->instr_fl = (((attr)->instr_fl & ~(15 << 3)) | ((code) << 3)))
+#define ARM_SET_COND(attr, code) ((attr)->instr_fl = (((attr)->instr_fl & ~(15 << 4)) | ((code) << 4)))
/** Generic ARM node attributes. */
typedef struct _arm_attr_t {
+ except_attr exc; /**< the exception attribute. MUST be the first one. */
arch_irn_flags_t flags; /**< indicating if spillable, rematerializeable ... etc. */
const arch_register_req_t **in_req; /**< register requirements for arguments */