| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -mcpu=thunderx+nofp -march=armv8-a" } */ |
| 3 |
/* { dg-prune-output "warning: switch .* conflicts" } */ |
| 4 |
|
| 5 |
#include "arm_neon.h" |
| 6 |
|
| 7 |
/* Unless we do something about re-laying out the SIMD builtin types |
| 8 |
this testcase ICEs during expansion of the crypto builtin. */ |
| 9 |
|
| 10 |
__attribute__ ((target ("cpu=cortex-a57+sha2"))) |
| 11 |
uint32x4_t |
| 12 |
test_vsha1cq_u32 (uint32x4_t hash_abcd, uint32_t hash_e, uint32x4_t wk) |
| 13 |
{ |
| 14 |
return vsha1cq_u32 (hash_abcd, hash_e, wk); |
| 15 |
} |
| 16 |
|
| 17 |
/* This one should be compiled for thunderx with no fp. */ |
| 18 |
int |
| 19 |
foo (int a) |
| 20 |
{ |
| 21 |
return a + 5; |
| 22 |
} |