Commit 638c5a49 by Alan Modra Committed by Alan Modra

altivec-consts.c (vspltisb): Use int val.

	* gcc.target/powerpc/altivec-consts.c (vspltisb): Use int val.
	(vspltish, vspltisw): Likewise.

From-SVN: r107398
parent 4cc233c4
2005-11-23 Alan Modra <amodra@bigpond.net.au>
* gcc.target/powerpc/altivec-consts.c (vspltisb): Use int val.
(vspltish, vspltisw): Likewise.
2005-11-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/24794
......@@ -17,21 +17,21 @@ char w[16] __attribute__((aligned(16)));
/* Emulate the vspltis? instructions on a 16-byte array of chars. */
void vspltisb (char *v, char val)
void vspltisb (char *v, int val)
{
int i;
for (i = 0; i < 16; i++)
v[i] = val;
}
void vspltish (char *v, char val)
void vspltish (char *v, int val)
{
int i;
for (i = 0; i < 16; i += 2)
v[i] = val >> 7, v[i + 1] = val;
}
void vspltisw (char *v, char val)
void vspltisw (char *v, int val)
{
int i;
for (i = 0; i < 16; i += 4)
......
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