Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/xar_v2di_nonsve.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 #pragma GCC target "+sve2+sha3"
5
6 typedef unsigned long long __attribute__ ((vector_size (16))) v2di;
7
8 /* Both +sve2 and +sha3 have V2DImode XAR instructions, but we should
9 prefer the Advanced SIMD one when both are available. */
10 v2di
11 xar_v2di (v2di a, v2di b) {
12 v2di c = a ^ b;
13 return (c << 22) ^ (c >> 42);
14 }
15 /* { dg-final { scan-assembler {\txar\tv0.2d, v[0-9]+.2d, v[0-9]+.2d, #?42} } } */
16