| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -march=armv8.2-a+sve" } */ |
| 3 |
|
| 4 |
/* Check that we avoid an explicit sxth in favour of smov. */ |
| 5 |
|
| 6 |
#include <arm_sve.h> |
| 7 |
|
| 8 |
int foo(svint16_t a) { |
| 9 |
return svminv_s16(svptrue_b16(), a); |
| 10 |
} |
| 11 |
|
| 12 |
/* { dg-final { scan-assembler-not "sxth" } } */ |