| 1 |
|
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-march=armv8-a+sha2" } */ |
| 4 |
|
| 5 |
#include "arm_neon.h" |
| 6 |
|
| 7 |
uint32x4_t |
| 8 |
test_vsha256hq_u32 (uint32x4_t hash_abcd, uint32x4_t hash_efgh, uint32x4_t wk) |
| 9 |
{ |
| 10 |
return vsha256hq_u32 (hash_abcd, hash_efgh, wk); |
| 11 |
} |
| 12 |
|
| 13 |
/* { dg-final { scan-assembler-times "sha256h\\tq" 1 } } */ |
| 14 |
|
| 15 |
uint32x4_t |
| 16 |
test_vsha256h2q_u32 (uint32x4_t hash_efgh, uint32x4_t hash_abcd, uint32x4_t wk) |
| 17 |
{ |
| 18 |
return vsha256h2q_u32 (hash_efgh, hash_abcd, wk); |
| 19 |
} |
| 20 |
|
| 21 |
/* { dg-final { scan-assembler-times "sha256h2\\tq" 1 } } */ |
| 22 |
|
| 23 |
uint32x4_t |
| 24 |
test_vsha256su0q_u32 (uint32x4_t w0_3, uint32x4_t w4_7) |
| 25 |
{ |
| 26 |
return vsha256su0q_u32 (w0_3, w4_7); |
| 27 |
} |
| 28 |
|
| 29 |
/* { dg-final { scan-assembler-times "sha256su0\\tv" 1 } } */ |
| 30 |
|
| 31 |
uint32x4_t |
| 32 |
test_vsha256su1q_u32 (uint32x4_t tw0_3, uint32x4_t w8_11, uint32x4_t w12_15) |
| 33 |
{ |
| 34 |
return vsha256su1q_u32 (tw0_3, w8_11, w12_15); |
| 35 |
} |
| 36 |
|
| 37 |
/* { dg-final { scan-assembler-times "sha256su1\\tv" 1 } } */ |
| 38 |
|
| 39 |
|