-
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
13 changed files
with
112 additions
and
128 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
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,11 @@ | ||
#include "common.h" | ||
|
||
v128 vand_v(v128 a, v128 b) { | ||
v128 dst; | ||
#include "vand_v.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vand_v); | ||
} |
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 < 2; i++) { | ||
dst.dword[i] = a.dword[i] & b.dword[i]; | ||
} |
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 vandi_b(v128 a, int imm) { | ||
v128 dst; | ||
#include "vandi_b.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ1(vandi_b, 0x00); | ||
FUZZ1(vandi_b, 0x04); | ||
FUZZ1(vandi_b, 0x08); | ||
FUZZ1(vandi_b, 0x10); | ||
FUZZ1(vandi_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] & 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "common.h" | ||
|
||
v128 vandn_v(v128 a, v128 b) { | ||
v128 dst; | ||
#include "vandn_v.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vandn_v); | ||
} |
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 < 2; i++) { | ||
dst.dword[i] = b.dword[i] & (~a.dword[i]); | ||
} |
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
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
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,64 @@ | ||
# Bitwise Logical | ||
|
||
## __m128i __lsx_vandi_b (__m128i a, imm0_255 imm) | ||
|
||
### Synopsis | ||
|
||
```c++ | ||
__m128i __lsx_vandi_b (__m128i a, imm0_255 imm) | ||
#include <lsxintrin.h> | ||
Instruction: vandi.b vr, vr, imm | ||
CPU Flags: LSX | ||
``` | ||
### Description | ||
Compute bitwise AND between 8-bit elements in `a` and `imm`. | ||
### Operation | ||
```c++ | ||
{% include 'vandi_b.h' %} | ||
``` | ||
|
||
## __m128i __lsx_vandn_v (__m128i a, __m128i b) | ||
|
||
### Synopsis | ||
|
||
```c++ | ||
__m128i __lsx_vandn_v (__m128i a, __m128i b) | ||
#include <lsxintrin.h> | ||
Instruction: vandn.v vr, vr, vr | ||
CPU Flags: LSX | ||
``` | ||
### Description | ||
Compute bitwise ANDN between elements in `a` and `b`. | ||
### Operation | ||
```c++ | ||
{% include 'vandn_v.h' %} | ||
``` | ||
|
||
## __m128i __lsx_vand_v (__m128i a, __m128i b) | ||
|
||
### Synopsis | ||
|
||
```c++ | ||
__m128i __lsx_vand_v (__m128i a, __m128i b) | ||
#include <lsxintrin.h> | ||
Instruction: vand.v vr, vr, vr | ||
CPU Flags: LSX | ||
``` | ||
### Description | ||
Compute bitwise AND between elements in `a` and `b`. | ||
### Operation | ||
```c++ | ||
{% include 'vand_v.h' %} | ||
``` |