Commit 72e9337d by Alan Modra Committed by Alan Modra

1b-01.c: Warning fix.

	* gcc.dg/vmx/1b-01.c: Warning fix.
	* gcc.dg/vmx/1c-02.c: Likewise.
	* gcc.dg/vmx/gcc-bug-4.c: Likewise.

From-SVN: r110044
parent 971dfb9b
2006-01-21 Alan Modra <amodra@bigpond.net.au>
* gcc.dg/vmx/1b-01.c: Warning fix.
* gcc.dg/vmx/1c-02.c: Likewise.
* gcc.dg/vmx/gcc-bug-4.c: Likewise.
2006-01-20 Steve Ellcey <sje@cup.hp.com> 2006-01-20 Steve Ellcey <sje@cup.hp.com>
PR testsuite/24962 PR testsuite/24962
...@@ -5,7 +5,7 @@ vector unsigned char a; ...@@ -5,7 +5,7 @@ vector unsigned char a;
static void test() static void test()
{ {
check(sizeof(a) == 16, "sizeof(a)"); check(sizeof(a) == 16, "sizeof(a)");
check(((int)&a & 15) == 0, "alignof(a)"); check(((long)&a & 15) == 0, "alignof(a)");
check((int)&a != 0, "&a"); check((long)&a != 0, "&a");
check(vec_all_eq(a,((vector unsigned char){0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0})), "value(a)"); check(vec_all_eq(a,((vector unsigned char){0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0})), "value(a)");
} }
...@@ -27,8 +27,8 @@ union { char b; vector pixel a; } p16u; ...@@ -27,8 +27,8 @@ union { char b; vector pixel a; } p16u;
static void test() static void test()
{ {
check((int)&u8.a - (int)&u8 == 16, "u8.a"); check((long)&u8.a - (long)&u8 == 16, "u8.a");
check((int)&u8.e - (int)&u8 == 32, "u8.e"); check((long)&u8.e - (long)&u8 == 32, "u8.e");
check(sizeof(u8) == 48, "sizeof(u8)"); check(sizeof(u8) == 48, "sizeof(u8)");
check(sizeof(u8u) == 16, "sizeof(u8u)"); check(sizeof(u8u) == 16, "sizeof(u8u)");
} }
/* { dg-do compile } */ /* { dg-do compile } */
#include <altivec.h> #include <altivec.h>
extern vector unsigned int gn00111; extern vector unsigned int gn00111;
int f() { return (int)&gn00111; } long f() { return (long)&gn00111; }
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