Commit a6cf80f2 by Geoffrey Keating Committed by Geoffrey Keating

rs6000.c (compute_vrsave_mask): Correct off-by-one error.

	* config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
	error.

From-SVN: r73276
parent 142d1f57
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
2003-11-05 Geoffrey Keating <geoffk@apple.com> 2003-11-05 Geoffrey Keating <geoffk@apple.com>
* config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
error.
* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
needs VRSAVE. needs VRSAVE.
......
...@@ -10109,7 +10109,7 @@ compute_vrsave_mask (void) ...@@ -10109,7 +10109,7 @@ compute_vrsave_mask (void)
them in again. More importantly, the mask we compute here is them in again. More importantly, the mask we compute here is
used to generate CLOBBERs in the set_vrsave insn, and we do not used to generate CLOBBERs in the set_vrsave insn, and we do not
wish the argument registers to die. */ wish the argument registers to die. */
for (i = cfun->args_info.vregno; i >= ALTIVEC_ARG_MIN_REG; --i) for (i = cfun->args_info.vregno - 1; i >= ALTIVEC_ARG_MIN_REG; --i)
mask &= ~ALTIVEC_REG_BIT (i); mask &= ~ALTIVEC_REG_BIT (i);
/* Similarly, remove the return value from the set. */ /* Similarly, remove the return value from the set. */
......
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