Commit b483d658 authored by Michael Beck's avatar Michael Beck
Browse files

used new machine user bit 0 to detect x87 instructions

parent 018bd2d2
......@@ -52,9 +52,8 @@ static const arch_env_t *arch_env = NULL;
/**
* returns true if a node has x87 registers
*/
static int has_x87_register(const ir_node *n)
{
return get_irn_op(n)->flags & (irop_flag_machine << 1);
static int has_x87_register(const ir_node *n) {
return is_irn_machine_user(n, 0);
}
/* We always pass the ir_node which is a pointer. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment