&& (AARCH64_HAVE_ISA (SVE2) || TARGET_SME2),
"__ARM_FEATURE_SVE_B16B16", pfile);
aarch64_def_or_undef (AARCH64_HAVE_ISA (SVE2), "__ARM_FEATURE_SVE2", pfile);
- aarch64_def_or_undef (TARGET_SVE2_AES, "__ARM_FEATURE_SVE2_AES", pfile);
+ aarch64_def_or_undef (AARCH64_HAVE_ISA (SVE2) && AARCH64_HAVE_ISA (SVE_AES),
+ "__ARM_FEATURE_SVE2_AES", pfile);
aarch64_def_or_undef (AARCH64_HAVE_ISA (SVE_BITPERM)
&& AARCH64_HAVE_ISA (SVE2),
"__ARM_FEATURE_SVE2_BITPERM", pfile);
DEF_SVE_FUNCTION (svstnt1w_scatter, store_scatter_offset_restricted, d_integer, implicit)
#undef REQUIRED_EXTENSIONS
-#define REQUIRED_EXTENSIONS nonstreaming_sve (AARCH64_FL_SVE2 \
- | AARCH64_FL_SVE_AES)
+#define REQUIRED_EXTENSIONS streaming_compatible (AARCH64_FL_SVE2 \
+ | AARCH64_FL_SVE_AES, \
+ AARCH64_FL_SSVE_AES)
DEF_SVE_FUNCTION (svaesd, binary, b_unsigned, none)
DEF_SVE_FUNCTION (svaese, binary, b_unsigned, none)
DEF_SVE_FUNCTION (svaesimc, unary, b_unsigned, none)
(match_operand:VNx16QI 1 "register_operand" "%0")
(match_operand:VNx16QI 2 "register_operand" "w"))]
CRYPTO_AES))]
- "TARGET_SVE2_AES"
+ "TARGET_SVE_AES"
"aes<aes_op>\t%0.b, %0.b, %2.b"
[(set_attr "type" "crypto_aese")]
)
(unspec:VNx16QI
[(match_operand:VNx16QI 1 "register_operand" "0")]
CRYPTO_AESMC))]
- "TARGET_SVE2_AES"
+ "TARGET_SVE_AES"
"aes<aesmc_op>\t%0.b, %0.b"
[(set_attr "type" "crypto_aesmc")]
)
(match_operand:VNx16QI 2 "register_operand" "w"))]
UNSPEC_AESE)]
UNSPEC_AESMC))]
- "TARGET_SVE2_AES && aarch64_fusion_enabled_p (AARCH64_FUSE_AES_AESMC)"
+ "TARGET_SVE_AES && aarch64_fusion_enabled_p (AARCH64_FUSE_AES_AESMC)"
"aese\t%0.b, %0.b, %2.b\;aesmc\t%0.b, %0.b"
[(set_attr "type" "crypto_aese")
(set_attr "length" "8")]
(match_operand:VNx16QI 2 "register_operand" "w"))]
UNSPEC_AESD)]
UNSPEC_AESIMC))]
- "TARGET_SVE2_AES && aarch64_fusion_enabled_p (AARCH64_FUSE_AES_AESMC)"
+ "TARGET_SVE_AES && aarch64_fusion_enabled_p (AARCH64_FUSE_AES_AESMC)"
"aesd\t%0.b, %0.b, %2.b\;aesimc\t%0.b, %0.b"
[(set_attr "type" "crypto_aese")
(set_attr "length" "8")]
/* SVE2 instructions, enabled in non-streaming mode through +sve2. */
#define TARGET_SVE2 (AARCH64_HAVE_ISA (SVE2) || TARGET_STREAMING)
-/* SVE2 AES instructions, enabled through +sve2-aes. */
-#define TARGET_SVE2_AES (AARCH64_HAVE_ISA (SVE2) \
- && AARCH64_HAVE_ISA (SVE_AES) \
- && TARGET_NON_STREAMING)
+/* SVE AES instructions, enabled through +sve-aes+sve2 for non-streaming mode
+ and +ssve-aes for streaming mode. */
+#define TARGET_SVE_AES (AARCH64_HAVE_ISA (SVE_AES) \
+ && (AARCH64_HAVE_ISA (SVE2) || TARGET_STREAMING) \
+ && (AARCH64_HAVE_ISA (SSVE_AES) \
+ || TARGET_NON_STREAMING))
/* SVE BITPERM instructions, enabled through +sve-bitperm+sve2 for non-streaming
and +ssve-bitperm for streaming. */
;; SVE integer modes that can form the input to an SVE2 PMULL[BT] instruction.
(define_mode_iterator SVE2_PMULL_PAIR_I [VNx16QI VNx4SI
- (VNx2DI "TARGET_SVE2_AES")])
+ (VNx2DI "TARGET_SVE_AES")])
;; Modes involved in extending or truncating SVE data, for 8 elements per
;; 128-bit block.
set preamble {
#include <arm_sve.h>
-#pragma GCC target "+i8mm+f32mm+f64mm+sve2+sve2-sm4+sve2-aes+sve2-sha3+sme+sme2p2+ssve-bitperm+ssve-fexpa"
+#pragma GCC target "+i8mm+f32mm+f64mm+sve2+sve2-sm4+sve2-sha3+sme+sme2p2+ssve-bitperm+ssve-fexpa+ssve-aes"
extern svbool_t &pred;
u8 = svbext (u8, u8)
u8 = svbgrp (u8, u8)
f32 = svexpa (u32)
+ u8 = svaesd (u8, u8)
+ u8 = svaese (u8, u8)
+ u8 = svaesimc (u8)
+ u8 = svaesmc (u8)
+ u64 = svpmullb_pair (u64, u64)
+ u64 = svpmullt_pair (u64, u64)
}
# This order follows the list in the SME manual.
u64 = svadrw_index (u64, u64)
u32 = svadrd_index (u32, u32)
u64 = svadrd_index (u64, u64)
- u8 = svaesd (u8, u8)
- u8 = svaese (u8, u8)
- u8 = svaesimc (u8)
- u8 = svaesmc (u8)
f32 = svbfmmla (f32, bf16, bf16)
f32 = svadda (pred, 1.0f, f32)
f32 = svmmla (f32, f32, f32)
u32 = svldnt1_gather_offset_u32 (pred, u32, 1)
pred = svmatch (pred, u8, u8)
pred = svnmatch (pred, u8, u8)
- u64 = svpmullb_pair (u64, u64)
- u64 = svpmullt_pair (u64, u64)
svprfb_gather_offset (pred, void_ptr, u64, SV_PLDL1KEEP)
svprfb_gather_offset (pred, u64, 1, SV_PLDL1KEEP)
svprfd_gather_index (pred, void_ptr, u64, SV_PLDL1KEEP)
-/* { dg-skip-if "" { *-*-* } { "-DSTREAMING_COMPATIBLE" } { "" } } */
/* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
+/* { dg-do assemble { target aarch64_asm_ssve-aes_ok } } */
+/* { dg-do compile { target { ! aarch64_asm_ssve-aes_ok } } } */
#include "test_sve_acle.h"
+#ifdef STREAMING_COMPATIBLE
+#pragma GCC target "+ssve-aes"
+#else
#pragma GCC target "+sve2-aes"
+#endif
/*
** aesd_u8_tied1:
-/* { dg-skip-if "" { *-*-* } { "-DSTREAMING_COMPATIBLE" } { "" } } */
/* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
+/* { dg-do assemble { target aarch64_asm_ssve-aes_ok } } */
+/* { dg-do compile { target { ! aarch64_asm_ssve-aes_ok } } } */
#include "test_sve_acle.h"
+#ifdef STREAMING_COMPATIBLE
+#pragma GCC target "+ssve-aes"
+#else
#pragma GCC target "+sve2-aes"
+#endif
/*
** aese_u8_tied1:
-/* { dg-skip-if "" { *-*-* } { "-DSTREAMING_COMPATIBLE" } { "" } } */
/* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
+/* { dg-do assemble { target aarch64_asm_ssve-aes_ok } } */
+/* { dg-do compile { target { ! aarch64_asm_ssve-aes_ok } } } */
#include "test_sve_acle.h"
+#ifdef STREAMING_COMPATIBLE
+#pragma GCC target "+ssve-aes"
+#else
#pragma GCC target "+sve2-aes"
+#endif
/*
** aesimc_u8_tied1:
-/* { dg-skip-if "" { *-*-* } { "-DSTREAMING_COMPATIBLE" } { "" } } */
/* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
+/* { dg-do assemble { target aarch64_asm_ssve-aes_ok } } */
+/* { dg-do compile { target { ! aarch64_asm_ssve-aes_ok } } } */
#include "test_sve_acle.h"
+#ifdef STREAMING_COMPATIBLE
+#pragma GCC target "+ssve-aes"
+#else
#pragma GCC target "+sve2-aes"
+#endif
/*
** aesmc_u8_tied1:
"sme-f8f16" "sme-f8f32"
"sme-b16b16" "sme-f16f16" "sme-i16i64" "sme" "sme2" "sme2p1" "sme2p2"
"ssve-fp8dot2" "ssve-fp8dot4" "ssve-fp8fma" "sve-bfscale" "sme-lutv2"
- "ssve-fexpa" "ssve-bitperm"
+ "ssve-fexpa" "ssve-bitperm" "ssve-aes"
}
foreach { aarch64_ext } $exts {