-
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.
- Loading branch information
Showing
4 changed files
with
39 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -390,8 +390,6 @@ Vector Multiplication High | |
|
||
### vshuf4i.b/h/w/d | ||
|
||
### vbitseli.b | ||
|
||
### vori.b | ||
|
||
### vxori.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,15 @@ | ||
#include "common.h" | ||
|
||
v128 vbitseli_b(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vbitseli_b.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vbitseli_b, 0x00); | ||
FUZZ2(vbitseli_b, 0x01); | ||
FUZZ2(vbitseli_b, 0x01); | ||
FUZZ2(vbitseli_b, 0x80); | ||
FUZZ2(vbitseli_b, 0xFF); | ||
} |
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,3 @@ | ||
for (int i = 0; i < 16; i++) { | ||
dst.byte[i] = (~a.byte[i] & b.byte[i]) | (a.byte[i] & (u8)imm); | ||
} |
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