| 1 |
/* { dg-do compile { target { aarch64*-*-* } } } */ |
| 2 |
/* { dg-options "-O2" } */ |
| 3 |
|
| 4 |
#include "arm_neon.h" |
| 5 |
|
| 6 |
int32x2_t |
| 7 |
foo (int a) |
| 8 |
{ |
| 9 |
int32x2_t arg1; |
| 10 |
int32x2_t arg2; |
| 11 |
int32x2_t result; |
| 12 |
arg1 = vcreate_s32 (UINT64_C (0x0000ffffffffffff)); |
| 13 |
arg2 = vcreate_s32 (UINT64_C (0x16497fffffffffff)); |
| 14 |
/* The correct line number is in the preamble to the error message, |
| 15 |
not in the final line (which is all that dg-error inspects). Hence, |
| 16 |
we have to tell dg-error to ignore the line number. */ |
| 17 |
result = vrsra_n_s32 (arg1, arg2, a); |
| 18 |
/* { dg-error "must be a constant immediate" "" { target *-*-* } 0 } */ |
| 19 |
return result; |
| 20 |
} |