Use SVE for double shufti.

Change-Id: I09e0d57bb8a2f05b613f6225dea79ae823136268
This commit is contained in:
George Wort
2021-07-13 20:39:53 +01:00
committed by Konstantinos Margaritis
parent c95a4c3dd1
commit 00fff3f53c
5 changed files with 229 additions and 183 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2015-2017, Intel Corporation
* Copyright (c) 2021, Arm Limited
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -516,7 +517,7 @@ TEST(DoubleShufti, ExecNoMatch1b) {
const u8 *rv = shuftiDoubleExec(lo1, hi1, lo2, hi2,
(u8 *)t1 + i, (u8 *)t1 + strlen(t1));
ASSERT_EQ((size_t)t1 + i + 15, (size_t)rv);
ASSERT_LE((size_t)t1 + i + 15, (size_t)rv);
}
}
@@ -560,7 +561,7 @@ TEST(DoubleShufti, ExecNoMatch2b) {
const u8 *rv = shuftiDoubleExec(lo1, hi1, lo2, hi2, (u8 *)t1 + i,
(u8 *)t1 + strlen(t1));
ASSERT_EQ((size_t)t1 + i + 15, (size_t)rv);
ASSERT_LE((size_t)t1 + i + 15, (size_t)rv);
}
}
@@ -602,7 +603,7 @@ TEST(DoubleShufti, ExecNoMatch3b) {
const u8 *rv = shuftiDoubleExec(lo1, hi1, lo2, hi2,
(u8 *)t1 + i, (u8 *)t1 + strlen(t1));
ASSERT_EQ((size_t)t1 + i + 15, (size_t)rv);
ASSERT_LE((size_t)t1 + i + 15, (size_t)rv);
}
}