From: Uros Bizjak Date: Mon, 27 Aug 2007 12:58:44 +0000 (+0200) Subject: unsigned-long-compare.c: Remove target selector. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=107d76762a6f541f673fa79e7a4cecef22a85c2a;p=gcc.git unsigned-long-compare.c: Remove target selector. * gcc.dg/unsigned-long-compare.c: Remove target selector. From-SVN: r127831 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e1230bccc88..d48907ce4fb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,11 +1,14 @@ -2007-08-23 Uros Bizjak +2007-08-27 Uros Bizjak + + * gcc.dg/unsigned-long-compare.c: Remove target selector. + +2007-08-27 Uros Bizjak * gcc.dg/arm-eabi1.c, gcc.dg/symbian1.c, cc.dg/symbian2.c, gcc.dg/symbian3.c, gcc.dg/symbian4.c, gcc.dg/symbian5.c, gcc.dg/20051215-1.c: Move to gcc.target/arm directory. * gcc.dg/const-compare.c, gcc.dg/non-lazy-ptr-test.c, - gcc.dg/unsigned-long-compare.c, gcc.dg/rs6000-leaf.c: Move to - gcc.target/powerpc directory. + gcc.dg/rs6000-leaf.c: Move to gcc.target/powerpc directory. * gcc.dg/m68k-pic-1.c, gcc.dg/m68k-slp-ice.c: Move to gcc.target/m68k directory. * gcc.dg/i386-darwin-fpmath.c: Move to gcc.target/i386 directory. @@ -24,8 +27,8 @@ gcc.dg/sh4a-fsrra.c, gcc.dg/sh4a-memmovua.c, gcc.dg/sh4a-sin.c, gcc.dg/sh4a-sincosf.c, gcc.dg/sh4a-sinf.c gcc.dg/sh-relax.c, gcc.dg/sh-relax-vxworks.c: Move to gcc.target/sh directory. - -2007-08-23 Uros Bizjak + +2007-08-27 Uros Bizjak * gcc.target/i386/pow-1.c: Fix scan-assembler-not. * gcc.target/i386/asm-3.c: Skip -fpic ilp32 targets only. @@ -35,7 +38,7 @@ * gcc.target/i386/20011119-1.c: Ditto. * gcc.target/i386/tailcall-1.c: Ditto. Check ilp32 targets only. * gcc.target/i386/fastcall-1.c: Fix target selector. - + 2007-08-26 Jerry DeLisle PR fortran/33055 diff --git a/gcc/testsuite/gcc.dg/unsigned-long-compare.c b/gcc/testsuite/gcc.dg/unsigned-long-compare.c new file mode 100644 index 00000000000..74e7638f1ce --- /dev/null +++ b/gcc/testsuite/gcc.dg/unsigned-long-compare.c @@ -0,0 +1,24 @@ +/* Copyright (C) 2006 Free Software Foundation, Inc. */ +/* Contributed by Carlos O'Donell on 2006-01-30 */ + +/* Test a division corner case where the expression simplifies + to a comparison, and the optab expansion is wrong. The optab + expansion emits a function whose return is unbiased and needs + adjustment. */ +/* Origin: Carlos O'Donell */ +/* { dg-do run } */ +/* { dg-options "" } */ +#include + +#define BIG_CONSTANT 0xFFFFFFFF80000000ULL + +int main (void) +{ + unsigned long long OneULL = 1ULL; + unsigned long long result; + + result = OneULL / BIG_CONSTANT; + if (result) + abort (); + exit (0); +} diff --git a/gcc/testsuite/gcc.target/powerpc/unsigned-long-compare.c b/gcc/testsuite/gcc.target/powerpc/unsigned-long-compare.c deleted file mode 100644 index 1c5c69cf038..00000000000 --- a/gcc/testsuite/gcc.target/powerpc/unsigned-long-compare.c +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (C) 2006 Free Software Foundation, Inc. */ -/* Contributed by Carlos O'Donell on 2006-01-30 */ - -/* Test a division corner case where the expression simplifies - to a comparison, and the optab expansion is wrong. The optab - expansion emits a function whose return is unbiased and needs - adjustment. */ -/* Origin: Carlos O'Donell */ -/* { dg-do run { target arm-*-*eabi* } } */ -/* { dg-options "" } */ -#include - -#define BIG_CONSTANT 0xFFFFFFFF80000000ULL - -int main (void) -{ - unsigned long long OneULL = 1ULL; - unsigned long long result; - - result = OneULL / BIG_CONSTANT; - if (result) - abort (); - exit (0); -}