diff options
author | Alan Modra <amodra@bigpond.net.au> | 2006-01-20 22:20:28 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2006-01-21 08:50:28 +1030 |
commit | 72e9337dd670f8cd839a2c2f19c6907a67d8e68c (patch) | |
tree | cacbceced5896f651d1d96007c0ed0ea9e81d626 | |
parent | 971dfb9b990c519338d5c497be7924f102a09a11 (diff) | |
download | gcc-72e9337dd670f8cd839a2c2f19c6907a67d8e68c.zip gcc-72e9337dd670f8cd839a2c2f19c6907a67d8e68c.tar.gz gcc-72e9337dd670f8cd839a2c2f19c6907a67d8e68c.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vmx/1b-01.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vmx/1c-02.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vmx/gcc-bug-4.c | 2 |
4 files changed, 11 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3077f68..b53833b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +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> PR testsuite/24962 diff --git a/gcc/testsuite/gcc.dg/vmx/1b-01.c b/gcc/testsuite/gcc.dg/vmx/1b-01.c index 425b0262..8cdacb6 100644 --- a/gcc/testsuite/gcc.dg/vmx/1b-01.c +++ b/gcc/testsuite/gcc.dg/vmx/1b-01.c @@ -5,7 +5,7 @@ vector unsigned char a; static void test() { check(sizeof(a) == 16, "sizeof(a)"); - check(((int)&a & 15) == 0, "alignof(a)"); - check((int)&a != 0, "&a"); + check(((long)&a & 15) == 0, "alignof(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)"); } diff --git a/gcc/testsuite/gcc.dg/vmx/1c-02.c b/gcc/testsuite/gcc.dg/vmx/1c-02.c index ec591ed..be6adf6 100644 --- a/gcc/testsuite/gcc.dg/vmx/1c-02.c +++ b/gcc/testsuite/gcc.dg/vmx/1c-02.c @@ -27,8 +27,8 @@ union { char b; vector pixel a; } p16u; static void test() { - check((int)&u8.a - (int)&u8 == 16, "u8.a"); - check((int)&u8.e - (int)&u8 == 32, "u8.e"); + check((long)&u8.a - (long)&u8 == 16, "u8.a"); + check((long)&u8.e - (long)&u8 == 32, "u8.e"); check(sizeof(u8) == 48, "sizeof(u8)"); check(sizeof(u8u) == 16, "sizeof(u8u)"); } diff --git a/gcc/testsuite/gcc.dg/vmx/gcc-bug-4.c b/gcc/testsuite/gcc.dg/vmx/gcc-bug-4.c index f76fbdc..beb920f 100644 --- a/gcc/testsuite/gcc.dg/vmx/gcc-bug-4.c +++ b/gcc/testsuite/gcc.dg/vmx/gcc-bug-4.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ #include <altivec.h> extern vector unsigned int gn00111; -int f() { return (int)&gn00111; } +long f() { return (long)&gn00111; } |