* Returns the shift modifier string.
*/
const char *arm_shf_mod_name(arm_shift_modifier mod) {
- static const char *names[] = { NULL, NULL, "ASR", "LSL", "LSR", "ROR", "RRX" };
+ static const char *names[] = { NULL, NULL, "asr", "lsl", "lsr", "ror", "rrx" };
return names[mod];
}
/* Set the ARM machine node attributes to default values. */
void init_arm_attributes(ir_node *node, int flags, const arm_register_req_t ** in_reqs,
- const arm_register_req_t ** out_reqs, int n_res) {
+ const arm_register_req_t ** out_reqs, int n_res, unsigned latency) {
arm_attr_t *attr = get_arm_attr(node);
attr->in_req = in_reqs;
attr->out_req = out_reqs;
attr->n_projs = 0;
attr->default_proj_num = 0;
- memset(attr->slots, 0, n_res * sizeof(attr->slots[0]));
+ memset((void *)attr->slots, 0, n_res * sizeof(attr->slots[0]));
}
static int arm_comp_condJmp(arm_attr_t *attr_a, arm_attr_t *attr_b) {
flags |= arch_irn_flags_rematerializable; /* op can be easily recalculated */
/* init node attributes */
- init_arm_attributes(res, flags, _in_req_arm_StoreStackM4Inc, NULL, 0);
+ init_arm_attributes(res, flags, _in_req_arm_StoreStackM4Inc, NULL, 0, 1);
res = optimize_node(res);
irn_vrfy_irg(res, irg);