MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / xmmslice.d
blob6cf0e238f29bd6c2afaf5d0fdd59730f8d1372ad
2 /* REQUIRED_ARGS: -mcpu=avx
3 DISABLED: win32 freebsd32 linux32 osx32
4 TEST_OUTPUT:
5 ---
6 fail_compilation/xmmslice.d(110): Error: `__vector(int[4])` cannot be sliced with `[]`
7 ---
8 */
10 #line 100
12 import core.simd;
14 int4 testz4()
16 return [0,0,0,0];
19 void test()
21 assert(testz4()[] == [0,0,0,0]);