diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2013-08-14 18:36:52 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2013-08-14 19:36:52 +0100 |
commit | c466cffbaa504b542e6bb367ec59957e7f618120 (patch) | |
tree | 5b9cdc74a8c42283245b80bbde0e9eea2a9824c9 /gcc/testsuite/c-c++-common/scal-to-vec1.c | |
parent | d36591c2814ab4845f9b7b0cfcbc6090e1a644a3 (diff) | |
download | gcc-c466cffbaa504b542e6bb367ec59957e7f618120.zip gcc-c466cffbaa504b542e6bb367ec59957e7f618120.tar.gz gcc-c466cffbaa504b542e6bb367ec59957e7f618120.tar.bz2 |
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
Diffstat (limited to 'gcc/testsuite/c-c++-common/scal-to-vec1.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/scal-to-vec1.c | 8 |
1 files changed, 4 insertions, 4 deletions
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" } */ |