@@ -10,7 +10,7 @@
#endif
#pragma GCC push_options
-#pragma GCC target ("arch=armv8-a+crc")
+#pragma GCC target ("arch=armv8-a+simd+crc")
#ifndef __ARM_FEATURE_CRC32
# error "__ARM_FEATURE_CRC32 is not defined in push 1."
#endif
@@ -41,7 +41,7 @@ void test_crc_unknown_ok_attr_1 ()
# error "__ARM_FEATURE_CRC32 is defined after attribute set 1."
#endif
-__attribute__((target("arch=armv8-a+crc")))
+__attribute__((target("arch=armv8-a+simd+crc")))
void test_crc_unknown_ok_attr_2 ()
{
__crc32b (0, 0);
@@ -51,4 +51,4 @@ void test_crc_unknown_ok_attr_2 ()
# error "__ARM_FEATURE_CRC32 is defined after attribute set 2."
#endif
-#pragma GCC reset_options
\ No newline at end of file
+#pragma GCC reset_options
@@ -8,7 +8,7 @@
extern uint32_t bar();
-__attribute__((target("arch=armv8-a+crc"))) uint32_t crc32cw(uint32_t crc, uint32_t val)
+__attribute__((target("arch=armv8-a+simd+crc"))) uint32_t crc32cw(uint32_t crc, uint32_t val)
{
uint32_t res;
asm("crc32cw %0, %1, %2" : "=r"(res) : "r"(crc), "r"(val));
@@ -9,7 +9,7 @@
extern uint32_t bar();
#pragma GCC push_options
-#pragma GCC target("arch=armv8-a+crc")
+#pragma GCC target("arch=armv8-a+simd+crc")
uint32_t crc32cw(uint32_t crc, uint32_t val)
{
uint32_t res;