From: Joern Rennecke Date: Wed, 14 Aug 2013 18:36:52 +0000 (+0000) Subject: re PR testsuite/52641 (Test cases fail for 16-bit int targets) X-Git-Tag: upstream/12.2.0~68384 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c466cffbaa504b542e6bb367ec59957e7f618120;p=platform%2Fupstream%2Fgcc.git re PR testsuite/52641 (Test cases fail for 16-bit int targets) PR testsuite/52641 * c-c++-common/scal-to-vec1.c: Add !int16 and large_double conditions to tests that assume int/double are larger than short/float. From-SVN: r201742 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 171b65a..60ab9dd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -60,6 +60,10 @@ Expect l to be optimized away. * gcc.dg/strlenopt-13.c [avr-*-*]: Likewise. + PR testsuite/52641 + * c-c++-common/scal-to-vec1.c: Add !int16 and large_double conditions + to tests that assume int/double are larger than short/float. + 2013-08-14 Janis Johnson * gcc.target/arm/pr19599.c: Skip for -mthumb. diff --git a/gcc/testsuite/c-c++-common/scal-to-vec1.c b/gcc/testsuite/c-c++-common/scal-to-vec1.c index beb450d..52cc2e3 100644 --- a/gcc/testsuite/c-c++-common/scal-to-vec1.c +++ b/gcc/testsuite/c-c++-common/scal-to-vec1.c @@ -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" } */