Danila Kutenin
4b83ea1c78
Fix formatting of a couple files
2022-06-26 22:59:58 +00:00
Danila Kutenin
eb7b0bb50c
Optimize vectorscan for aarch64 by using shrn instruction
...
This optimization is based on the thread
https://twitter.com/Danlark1/status/1539344279268691970 and uses
shift right and narrow by 4 instruction https://developer.arm.com/documentation/ddi0596/2020-12/SIMD-FP-Instructions/SHRN--SHRN2--Shift-Right-Narrow--immediate--
To achieve that, I needed to redesign a little movemask into comparemask
and have an additional step towards mask iteration. Our benchmarks
showed 10-15% improvement on average for long matches.
2022-06-26 22:55:45 +00:00
Daniel Kutenin
2360314f9d
Optimized and correct version of movemask128 for ARM
...
Closes #99
https://gcc.godbolt.org/z/cTjKqzcvn
Previous version was not correct because movemask thought of having bytes 0xFF. We can fully match the semantics + do it faster with USRA instructions.
Re-submission to a develop branch
2022-04-18 13:37:53 +01:00
Danila Kutenin
faca38e058
Fix a couple of tests
2022-02-18 19:31:03 +00:00
Danila Kutenin
a526f6bb6b
Fix all ASAN issues in vectorscan
2022-02-18 17:14:51 +00:00
BigRedEye
89bc7af867
fix: Mark operator bool explicit
2022-02-08 00:22:23 +03:00
Konstantinos Margaritis
bacb015db7
Minor changes to enable compilation on Mac M1
2021-12-11 15:43:55 +02:00
Konstantinos Margaritis
242a460115
minor fixes
2021-12-07 08:49:59 +00:00
Konstantinos Margaritis
b6ddf2b41c
fix clang-release-arm compilation
2021-12-07 08:43:52 +00:00
Konstantinos Margaritis
f4ccc40c58
fix wrong castings for NEON
2021-12-06 21:35:51 +00:00
Konstantinos Margaritis
ef2bc5cfbc
fix compilation with clang and some incomplete/wrong implementations for arm this time
2021-12-06 18:22:58 +00:00
Konstantinos Margaritis
c68e46489b
fix build failures with clang on x86, make sure compilation works on other Power as well
2021-12-03 16:24:58 +02:00
Konstantinos Margaritis
d86e6bed69
fix build with clang, in particular VSX uses long long instead of int64_t, gcc allows this, clang does not
2021-12-02 18:01:00 +02:00
Konstantinos Margaritis
65bd33ffff
use same definition of the union for all types
2021-12-02 18:00:02 +02:00
Konstantinos Margaritis
8520cbc524
fix misompilations with clang++, as it is more strict
2021-12-01 23:22:15 +02:00
Konstantinos Margaritis
896d28845c
bump base requirements to SSE4.2
2021-12-01 23:20:02 +02:00
Konstantinos Margaritis
cc1a8dd47e
fix SVE2 build after the changes
2021-11-25 18:48:24 +02:00
Konstantinos Margaritis
7862af63ec
fix unit-internal release builds using __builtin_constant_p() as well
2021-11-25 15:09:01 +02:00
Konstantinos Margaritis
959fea25f7
use __builtin_constant_p() instead for arm as well
2021-11-25 06:20:53 +00:00
Apostolos Tapsas
e655d76a01
*fix palignr implementation for VSX Release mode
...
*add unit test for palignr
*enable unit test building for Release mode
2021-11-24 15:03:49 +00:00
Apostolos Tapsas
8a6c3f81e4
Removed accidentaly included header file
2021-11-24 12:11:21 +00:00
Apostolos Tapsas
bc2dcc317d
found and solved very hard to track bug of intrinsic function palignr, that manifested only in Release builds and not Debug builds in a particular number of tests
2021-11-24 11:18:18 +00:00
Apostolos Tapsas
df03302062
WIP:tracking last bugs in failing tests for release build
2021-11-16 15:24:22 +00:00
Apostolos Tapsas
aac39f3208
vermicelli and match implementations for ppc64el added
2021-11-13 19:36:46 +00:00
apostolos
2136580d50
resolving conficts after merging
2021-11-13 18:58:22 +02:00
Konstantinos Margaritis
a69fe428e3
add len parameter to arm matchers as well
2021-11-08 19:45:36 +00:00
Konstantinos Margaritis
3fd710706a
split vermicelli block implementations per arch
2021-11-08 19:45:21 +00:00
Apostolos Tapsas
5611771a1a
simd_utils functions fixed
2021-11-08 14:22:58 +00:00
Apostolos Tapsas
5b18538373
SuperVector constructors as well as andnot implementation fixed
2021-11-05 13:34:48 +00:00
Konstantinos Margaritis
6317e24a82
add len parameter and mask, fixes corner cases on AVX512
2021-11-05 14:30:22 +02:00
Konstantinos Margaritis
694e2faf7f
remove vermicelli.h and replace it with vermicelli.hpp
2021-11-02 22:30:53 +02:00
Konstantinos Margaritis
80286f38cb
refactor vermicelliDoubleMaskedExec()
2021-11-02 22:30:21 +02:00
Konstantinos Margaritis
4db360c7b6
complete refactoring and unification of Vermicelli functions
2021-11-01 16:28:50 +00:00
Konstantinos Margaritis
94b467dc12
remove unneeded header
2021-11-01 16:28:50 +00:00
Konstantinos Margaritis
0d886f7800
add new include file
2021-11-01 16:28:50 +00:00
Konstantinos Margaritis
54245bc5ac
renamed matcher functions, added new ones for Vermicelli
2021-11-01 16:28:50 +00:00
Konstantinos Margaritis
1c1a06aaae
nits
2021-11-01 16:05:43 +00:00
Konstantinos Margaritis
9e69273807
move casemask helper functions to separate header
2021-11-01 16:05:43 +00:00
Konstantinos Margaritis
d6fe28afc8
added refactored vermicelli_simd.cpp implementation
2021-11-01 16:05:43 +00:00
Konstantinos Margaritis
5e59b36634
add arm vector types in union, avoid -flax-conversions, fix castings
2021-11-01 16:52:17 +02:00
apostolos
3a4d8afb48
prints commants and formating fixes
2021-11-01 10:09:15 +02:00
apostolos
d06839ad8b
Special case for Shuffle test added as well as comments for respectives implementations
2021-10-26 11:48:33 +03:00
Apostolos Tapsas
4f53ec6b08
Shuffle simd and SuperVector implementetions as well as their test realy fixed
2021-10-25 09:19:30 +03:00
Apostolos Tapsas
789f723814
SuperVector shuffle implementation and test function optimized
2021-10-22 11:55:39 +00:00
apostolos
1ae618ecab
print functions missing keywords replaced
2021-10-22 12:38:16 +03:00
apostolos
ddebbeeb11
print functions keyword renamed
2021-10-22 12:36:07 +03:00
apostolos
ea5add7d4f
test for movemask and shuffle cases added
2021-10-22 11:17:43 +03:00
Apostolos Tapsas
e3589f53a7
expand128 bugs fixed
2021-10-22 07:05:55 +00:00
apostolos
b5e50c6b46
expand128 implementation was changed to be like arm's
2021-10-22 09:46:04 +03:00
Apostolos Tapsas
7978b3f054
WIP: simd & bitutils files finctions fixes
2021-10-21 13:34:02 +00:00