ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/powerpc/vec-clrr-0.c

17 lines
404 B
C
Raw Normal View History

2024-04-01 15:19:46 +00:00
/* { dg-do compile } */
/* { dg-options "-mdejagnu-cpu=power10" } */
#include <altivec.h>
extern void abort (void);
/* Vector string clear right-most bytes of unsigned char. */
vector unsigned char
clrr (vector unsigned char arg, int n)
{
return vec_clrr (arg, n);
}
/* { dg-final { scan-assembler {\mvclrrb\M} { target be } } } */
/* { dg-final { scan-assembler {\mvclrlb\M} { target le } } } */