Commit 81284a6a by Jim Wilson

(subreg_realpart_p): New function.

From-SVN: r6667
parent 340aa7f6
...@@ -822,6 +822,21 @@ gen_imagpart (mode, x) ...@@ -822,6 +822,21 @@ gen_imagpart (mode, x)
else else
return gen_highpart (mode, x); return gen_highpart (mode, x);
} }
/* Return 1 iff X, assumed to be a SUBREG,
refers to the real part of the complex value in its containing reg.
Complex values are always stored with the real part in the first word,
regardless of WORDS_BIG_ENDIAN. */
int
subreg_realpart_p (x)
rtx x;
{
if (GET_CODE (x) != SUBREG)
abort ();
return SUBREG_WORD (x) == 0;
}
/* Assuming that X is an rtx (e.g., MEM, REG or SUBREG) for a value, /* Assuming that X is an rtx (e.g., MEM, REG or SUBREG) for a value,
return an rtx (MEM, SUBREG, or CONST_INT) that refers to the return an rtx (MEM, SUBREG, or CONST_INT) that refers to the
......
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