altivec-consts.c (vspltisb): Use int val.
* gcc.target/powerpc/altivec-consts.c (vspltisb): Use int val. (vspltish, vspltisw): Likewise. From-SVN: r107398
This commit is contained in:
parent
4cc233c411
commit
638c5a49da
|
@ -1,3 +1,8 @@
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue