From 72e9337dd670f8cd839a2c2f19c6907a67d8e68c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 20 Jan 2006 22:20:28 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/vmx/1b-01.c | 4 ++-- gcc/testsuite/gcc.dg/vmx/1c-02.c | 4 ++-- 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 3077f6845f9..b53833bfdf3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2006-01-21 Alan Modra + + * 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 PR testsuite/24962 diff --git a/gcc/testsuite/gcc.dg/vmx/1b-01.c b/gcc/testsuite/gcc.dg/vmx/1b-01.c index 425b0262c60..8cdacb640f1 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 ec591ed596d..be6adf647fa 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 f76fbdc6e00..beb920f2ced 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 extern vector unsigned int gn00111; -int f() { return (int)&gn00111; } +long f() { return (long)&gn00111; }