This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: testsuite patches (10/14): Add missing test conditions in c-c++-common/scal-to-vec1.c


Ok.

On Jul 19, 2013, at 11:28 PM, Joern Rennecke <joern.rennecke@embecosm.com> wrote:
> Tested for avr with --target_board=atmega128-sim and native on i686-pc-linuc-gnu.
> 
> 2013-07-05  Joern Rennecke <joern.rennecke@embecosm.com>
> 
> 	* c-c++-common/scal-to-vec1.c: Add !int16 and large_double conditions
> 	to tests that assume int/double are larger than short/float.
> 
> Index: c-c++-common/scal-to-vec1.c
> ===================================================================
> --- c-c++-common/scal-to-vec1.c	(revision 201032)
> +++ c-c++-common/scal-to-vec1.c	(working copy)
> @@ -26,13 +26,13 @@ int main (int argc, char *argv[]) {
>     int     i = 12;
>     double  d = 3.;
> 
> -    v1 = i + v0;        /* { dg-error "conversion of scalar \[^\\n\]* to vector" } */
> +    v1 = i + v0;        /* { dg-error "conversion of scalar \[^\\n\]* to vector" "scalar to vector" { target { ! int16 } } } */
>     v1 = 99999 + v0;    /* { dg-error "conversion of scalar \[^\\n\]* to vector" } */
> 
> -    f1 = d + f0;        /* { dg-error "conversion of scalar \[^\\n\]* to vector" } */
> -    f1 = 1.3 + f0;      /* { dg-error "conversion of scalar \[^\\n\]* to vector" } */
> +    f1 = d + f0;        /* { dg-error "conversion of scalar \[^\\n\]* to vector" "scalar to vector" { target { large_double } } } */
> +    f1 = 1.3 + f0;      /* { dg-error "conversion of scalar \[^\\n\]* to vector" "scalar to vector" { target { large_double } } } */
>     f1 = sll + f0;      /* { dg-error "conversion of scalar \[^\\n\]* to vector" } */
> -    f1 = ((int)998769576) + f0; /* { dg-error "conversion of scalar \[^\\n\]* to vector" } */
> +    f1 = ((int)998769576) + f0; /* { dg-error "conversion of scalar \[^\\n\]* to vector" "scalar to vector" { target { ! int16 } } } */
> 
>     /* convert.c should take care of this.  */
>     i1 = sfl + i0;      /* { dg-error "can't convert value to a vector|invalid operands" } */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]