Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.target/aarch64/sve/acle/general/whilele_1.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2" } */ #include <arm_sve.h> void test1 (int32_t x, int32_t y, int *any, svbool_t *ptr) { svbool_t res = svwhilele_b8 (x, y); *any = svptest_last (svptrue_b8 (), res); *ptr = res; } int test2 (int32_t x, int32_t y) { svbool_t res = svwhilele_b8 (x, y); return svptest_last (svptrue_b8 (), res); } /* { dg-final { scan-assembler-times {\twhilele\t} 2 } } */ /* { dg-final { scan-assembler-not {\tptrue\t} } } */ /* { dg-final { scan-assembler-not {\tptest\t} } } */