-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add vext2xv testcases, try to fix xvshuf
- Loading branch information
Showing
10 changed files
with
69 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "common.h" | ||
|
||
v256 vext2xv_d_b(v256 a) { | ||
v256 dst; | ||
#include "vext2xv_d_b.h" | ||
return dst; | ||
} | ||
|
||
void test() { XFUZZ1(vext2xv_d_b); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "common.h" | ||
|
||
v256 vext2xv_d_h(v256 a) { | ||
v256 dst; | ||
#include "vext2xv_d_h.h" | ||
return dst; | ||
} | ||
|
||
void test() { XFUZZ1(vext2xv_d_h); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "common.h" | ||
|
||
v256 vext2xv_du_bu(v256 a) { | ||
v256 dst; | ||
#include "vext2xv_du_bu.h" | ||
return dst; | ||
} | ||
|
||
void test() { XFUZZ1(vext2xv_du_bu); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "common.h" | ||
|
||
v256 vext2xv_du_hu(v256 a) { | ||
v256 dst; | ||
#include "vext2xv_du_hu.h" | ||
return dst; | ||
} | ||
|
||
void test() { XFUZZ1(vext2xv_du_hu); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "common.h" | ||
|
||
v256 vext2xv_w_b(v256 a) { | ||
v256 dst; | ||
#include "vext2xv_w_b.h" | ||
return dst; | ||
} | ||
|
||
void test() { XFUZZ1(vext2xv_w_b); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "common.h" | ||
|
||
v256 vext2xv_wu_bu(v256 a) { | ||
v256 dst; | ||
#include "vext2xv_wu_bu.h" | ||
return dst; | ||
} | ||
|
||
void test() { XFUZZ1(vext2xv_wu_bu); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ for (int i = 0; i < 8; i++) { | |
} else { | ||
dst.half[i] = b.half[a.half[i] % 8]; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
for (int i = 0; i < 32; i++) { | ||
if ((c.byte[i] % 64) < 32) { | ||
dst.byte[i] = b.byte[c.byte[i] % 32]; | ||
if (c.byte[i] >= 64) { | ||
dst.byte[i] = 0; | ||
} else if ((c.byte[i] % 32) < 16) { | ||
dst.byte[i] = b.byte[(c.byte[i] % 32) + ((i >= 16) ? 16 : 0)]; | ||
} else { | ||
dst.byte[i] = a.byte[c.byte[i] % 32]; | ||
dst.byte[i] = a.byte[(c.byte[i] % 32) + ((i >= 16) ? 0 : -16)]; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
for (int i = 0; i < 16; i++) { | ||
if ((a.half[i] % 32) < 16) { | ||
dst.half[i] = c.half[a.half[i] % 16]; | ||
if ((c.half[i] % 256) >= 64) { | ||
dst.half[i] = 0; | ||
} else if ((c.half[i] % 16) < 8) { | ||
dst.half[i] = b.half[(c.half[i] % 16) + ((i >= 8) ? 8 : 0)]; | ||
} else { | ||
dst.half[i] = b.half[a.half[i] % 16]; | ||
dst.half[i] = a.half[(c.half[i] % 16) + ((i >= 8) ? 0 : -8)]; | ||
} | ||
} | ||
} |