mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
add x86 vsh* implementations
This commit is contained in:
parent
eebd6c97bc
commit
8b7ba89cb5
File diff suppressed because it is too large
Load Diff
@ -920,7 +920,7 @@ TEST(SuperVectorUtilsTest,LShift64_512c){
|
||||
u64a vec[8] = {32, 64, 128, 256, 512, 512, 256, 1024};
|
||||
auto SP = SuperVector<64>::loadu(vec);
|
||||
for(int s = 0; s<64; s++) {
|
||||
auto SP_after_shift = SP.lshift64(s);
|
||||
auto SP_after_shift = SP.vshl_64(s);
|
||||
for (int i=0; i<8; i++) {
|
||||
ASSERT_EQ(SP_after_shift.u.u64[i], vec[i] << s);
|
||||
}
|
||||
@ -931,7 +931,7 @@ TEST(SuperVectorUtilsTest,RShift64_512c){
|
||||
u64a vec[8] = {32, 64, 128, 256, 512, 512, 256, 1024};
|
||||
auto SP = SuperVector<64>::loadu(vec);
|
||||
for(int s = 0; s<64; s++) {
|
||||
auto SP_after_shift = SP.rshift64(s);
|
||||
auto SP_after_shift = SP.vshr_64(s);
|
||||
for (int i=0; i<8; i++) {
|
||||
ASSERT_EQ(SP_after_shift.u.u64[i], vec[i] >> s);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user