| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2" } */ |
| 3 |
/* { dg-final { check-function-bodies "**" "" } } */ |
| 4 |
|
| 5 |
#include <arm_sve.h> |
| 6 |
|
| 7 |
/* |
| 8 |
** f1: |
| 9 |
** ... |
| 10 |
** cntd [^\n]+ |
| 11 |
** ... |
| 12 |
** mul [^\n]+ |
| 13 |
** ret |
| 14 |
*/ |
| 15 |
uint64_t |
| 16 |
f1 (int x) |
| 17 |
{ |
| 18 |
if (x & 3) |
| 19 |
__builtin_unreachable (); |
| 20 |
x >>= 2; |
| 21 |
return (uint64_t) x * svcnth (); |
| 22 |
} |
| 23 |
|
| 24 |
/* |
| 25 |
** f2: |
| 26 |
** ... |
| 27 |
** asr [^\n]+ |
| 28 |
** ... |
| 29 |
** ret |
| 30 |
*/ |
| 31 |
uint64_t |
| 32 |
f2 (int x) |
| 33 |
{ |
| 34 |
if (x & 3) |
| 35 |
__builtin_unreachable (); |
| 36 |
x >>= 2; |
| 37 |
return (uint64_t) x * svcntw (); |
| 38 |
} |