diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-07-12 16:50:41 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2018-07-12 16:50:41 +0000 |
commit | 1ed159550621e4b1cf35ab868e0a7d51e2837724 (patch) | |
tree | 9bad8e165e1df1b26197b4700f9f51566152a405 /gcc/testsuite/gcc.target/i386/pr85193.c | |
parent | c1e7aa1d88a3110f71b740fc8ea11f3274cae433 (diff) | |
parent | f7d3a6a6300a4c330afca4d8772ac80ab09ac21c (diff) |
svn merge -r258208:262569 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branchredhat/gcc-7-branch
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/redhat/gcc-7-branch@262599 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/pr85193.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr85193.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr85193.c b/gcc/testsuite/gcc.target/i386/pr85193.c new file mode 100644 index 00000000000..98e3dafc7ae --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr85193.c @@ -0,0 +1,17 @@ +/* { dg-do compile } */ +/* { dg-options "-Wno-psabi -O2 -fno-tree-ccp -fno-tree-fre -mno-sse" } */ + +typedef unsigned char U __attribute__((vector_size(16))); +typedef unsigned int V __attribute__((vector_size(16))); +typedef unsigned long long W __attribute__((vector_size(16))); + +extern void bar(U, U); + +V v; + +void +foo(U f) +{ + f[0] = f[0] << (unsigned char)~v[0] | f[~((W)(U){0, 0, 0, 0, 0, 0, 0, 0, 5})[1] & 5] >> (-(unsigned char)~v[0] & 7); + bar(f, (U){}); +} |