Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.target/aarch64/sve/dup_sel_2.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -msve-vector-bits=256" } */ #include <stdint.h> typedef int32_t vnx4si __attribute__((vector_size(32))); void foo (int32_t val) { register vnx4si x asm ("z0"); register vnx4si y asm ("z1"); asm volatile ("" : "=w" (y)); val += 1; vnx4si z = { val, val, val, val, val, val, val, val }; x = (vnx4si) { -1, 0, 0, -1, 0, -1, 0, -1 } ? z : y; asm volatile ("" :: "w" (x)); } /* { dg-final { scan-assembler {\tmovprfx\tz0, z1\n\tmov\tz0\.s, p[0-7]/m, w[0-9]+\n} } } */