view gcc/testsuite/gcc.target/powerpc/vec-clrl-0.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-mdejagnu-cpu=future" } */

#include <altivec.h>

extern void abort (void);

/* Vector string clear left-most bytes of unsigned char.  */
vector unsigned char
clrl (vector unsigned char arg, int n)
{
  return vec_clrl (arg, n);
}

/* { dg-final { scan-assembler {\mvclrlb\M} { target be } } } */
/* { dg-final { scan-assembler {\mvclrrb\M} { target le } } } */