Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/g++.target/i386/pr93828.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcc/testsuite/g++.target/i386/pr93828.C Mon May 25 07:50:57 2020 +0900 @@ -0,0 +1,17 @@ +// { dg-do run { target { ! ia32 } } } +// { dg-require-effective-target c++11 } +// { dg-options "-O2 -march=k8" } + +using float2[[gnu::vector_size (8)]] = float; +using int2[[gnu::vector_size (8)]] = int; +float2 y = { 2, 2 }; + +int +main () +{ + const auto k = y == float2 { 2, 2 }; + if (k[1] == 0) + __builtin_abort (); + const auto a = k & int2 { 2, 2 }; + return a[0] - 2; +}