1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --extra_scrub
2 ; RUN: llc -mtriple=aarch64 -mattr=+sha3 < %s | FileCheck --check-prefix=SHA3 %s
3 ; RUN: llc -mtriple=aarch64 -mattr=-sha3 < %s | FileCheck --check-prefix=NOSHA3 %s
5 define <2 x i64> @bcax_64x2(<2 x i64> %0, <2 x i64> %1, <2 x i64> %2) {
6 ; SHA3-LABEL: bcax_64x2:
8 ; SHA3-NEXT: bcax v0.16b, v2.16b, v0.16b, v1.16b
11 ; NOSHA3-LABEL: bcax_64x2:
13 ; NOSHA3-NEXT: bic v0.16b, v0.16b, v1.16b
14 ; NOSHA3-NEXT: eor v0.16b, v0.16b, v2.16b
16 %4 = xor <2 x i64> %1, <i64 -1, i64 -1>
17 %5 = and <2 x i64> %4, %0
18 %6 = xor <2 x i64> %5, %2
22 define <4 x i32> @bcax_32x4(<4 x i32> %0, <4 x i32> %1, <4 x i32> %2) {
23 ; SHA3-LABEL: bcax_32x4:
25 ; SHA3-NEXT: bcax v0.16b, v2.16b, v0.16b, v1.16b
28 ; NOSHA3-LABEL: bcax_32x4:
30 ; NOSHA3-NEXT: bic v0.16b, v0.16b, v1.16b
31 ; NOSHA3-NEXT: eor v0.16b, v0.16b, v2.16b
33 %4 = xor <4 x i32> %1, <i32 -1, i32 -1, i32 -1, i32 -1>
34 %5 = and <4 x i32> %4, %0
35 %6 = xor <4 x i32> %5, %2
39 define <8 x i16> @bcax_16x8(<8 x i16> %0, <8 x i16> %1, <8 x i16> %2) {
40 ; SHA3-LABEL: bcax_16x8:
42 ; SHA3-NEXT: bcax v0.16b, v2.16b, v0.16b, v1.16b
45 ; NOSHA3-LABEL: bcax_16x8:
47 ; NOSHA3-NEXT: bic v0.16b, v0.16b, v1.16b
48 ; NOSHA3-NEXT: eor v0.16b, v0.16b, v2.16b
50 %4 = xor <8 x i16> %1, <i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1>
51 %5 = and <8 x i16> %4, %0
52 %6 = xor <8 x i16> %5, %2
56 define <16 x i8> @bcax_8x16(<16 x i8> %0, <16 x i8> %1, <16 x i8> %2) {
57 ; SHA3-LABEL: bcax_8x16:
59 ; SHA3-NEXT: bcax v0.16b, v2.16b, v0.16b, v1.16b
62 ; NOSHA3-LABEL: bcax_8x16:
64 ; NOSHA3-NEXT: bic v0.16b, v0.16b, v1.16b
65 ; NOSHA3-NEXT: eor v0.16b, v0.16b, v2.16b
67 %4 = xor <16 x i8> %1, <i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1>
68 %5 = and <16 x i8> %4, %0
69 %6 = xor <16 x i8> %5, %2