-
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
37 changed files
with
436 additions
and
19 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
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,13 @@ | ||
#include "common.h" | ||
|
||
v128 vssrani_b_h(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vssrani_b_h.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vssrani_b_h, 0); | ||
FUZZ2(vssrani_b_h, 7); | ||
FUZZ2(vssrani_b_h, 15); | ||
} |
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 @@ | ||
for (int i = 0; i < 16; i++) { | ||
if (i < 8) { | ||
s16 temp = (s16)b.half[i] >> imm; | ||
dst.byte[i] = clamp<s16>(temp, -128, 127); | ||
} else { | ||
s16 temp = (s16)a.half[i - 8] >> imm; | ||
dst.byte[i] = clamp<s16>(temp, -128, 127); | ||
} | ||
} |
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,13 @@ | ||
#include "common.h" | ||
|
||
v128 vssrani_bu_h(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vssrani_bu_h.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vssrani_bu_h, 0); | ||
FUZZ2(vssrani_bu_h, 7); | ||
FUZZ2(vssrani_bu_h, 15); | ||
} |
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 @@ | ||
for (int i = 0; i < 16; i++) { | ||
if (i < 8) { | ||
s16 temp = (s16)b.half[i] >> imm; | ||
dst.byte[i] = clamp<s16>(temp, 0, 255); | ||
} else { | ||
s16 temp = (s16)a.half[i - 8] >> imm; | ||
dst.byte[i] = clamp<s16>(temp, 0, 255); | ||
} | ||
} |
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,13 @@ | ||
#include "common.h" | ||
|
||
v128 vssrani_d_q(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vssrani_d_q.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vssrani_d_q, 0); | ||
FUZZ2(vssrani_d_q, 7); | ||
FUZZ2(vssrani_d_q, 15); | ||
} |
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 @@ | ||
for (int i = 0; i < 2; i++) { | ||
if (i < 1) { | ||
s128 temp = (s128)b.qword[i] >> imm; | ||
dst.dword[i] = clamp<s128>(temp, -9223372036854775808, 9223372036854775807); | ||
} else { | ||
s128 temp = (s128)a.qword[i - 1] >> imm; | ||
dst.dword[i] = clamp<s128>(temp, -9223372036854775808, 9223372036854775807); | ||
} | ||
} |
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,13 @@ | ||
#include "common.h" | ||
|
||
v128 vssrani_du_q(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vssrani_du_q.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vssrani_du_q, 0); | ||
FUZZ2(vssrani_du_q, 7); | ||
FUZZ2(vssrani_du_q, 15); | ||
} |
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 @@ | ||
for (int i = 0; i < 2; i++) { | ||
if (i < 1) { | ||
s128 temp = (s128)b.qword[i] >> imm; | ||
dst.dword[i] = clamp<s128>(temp, 0, 18446744073709551615); | ||
} else { | ||
s128 temp = (s128)a.qword[i - 1] >> imm; | ||
dst.dword[i] = clamp<s128>(temp, 0, 18446744073709551615); | ||
} | ||
} |
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,13 @@ | ||
#include "common.h" | ||
|
||
v128 vssrani_h_w(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vssrani_h_w.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vssrani_h_w, 0); | ||
FUZZ2(vssrani_h_w, 7); | ||
FUZZ2(vssrani_h_w, 15); | ||
} |
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 @@ | ||
for (int i = 0; i < 8; i++) { | ||
if (i < 4) { | ||
s32 temp = (s32)b.word[i] >> imm; | ||
dst.half[i] = clamp<s32>(temp, -32768, 32767); | ||
} else { | ||
s32 temp = (s32)a.word[i - 4] >> imm; | ||
dst.half[i] = clamp<s32>(temp, -32768, 32767); | ||
} | ||
} |
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,13 @@ | ||
#include "common.h" | ||
|
||
v128 vssrani_hu_w(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vssrani_hu_w.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vssrani_hu_w, 0); | ||
FUZZ2(vssrani_hu_w, 7); | ||
FUZZ2(vssrani_hu_w, 15); | ||
} |
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 @@ | ||
for (int i = 0; i < 8; i++) { | ||
if (i < 4) { | ||
s32 temp = (s32)b.word[i] >> imm; | ||
dst.half[i] = clamp<s32>(temp, 0, 65535); | ||
} else { | ||
s32 temp = (s32)a.word[i - 4] >> imm; | ||
dst.half[i] = clamp<s32>(temp, 0, 65535); | ||
} | ||
} |
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,13 @@ | ||
#include "common.h" | ||
|
||
v128 vssrani_w_d(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vssrani_w_d.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vssrani_w_d, 0); | ||
FUZZ2(vssrani_w_d, 7); | ||
FUZZ2(vssrani_w_d, 15); | ||
} |
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 @@ | ||
for (int i = 0; i < 4; i++) { | ||
if (i < 2) { | ||
s64 temp = (s64)b.dword[i] >> imm; | ||
dst.word[i] = clamp<s64>(temp, -2147483648, 2147483647); | ||
} else { | ||
s64 temp = (s64)a.dword[i - 2] >> imm; | ||
dst.word[i] = clamp<s64>(temp, -2147483648, 2147483647); | ||
} | ||
} |
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,13 @@ | ||
#include "common.h" | ||
|
||
v128 vssrani_wu_d(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vssrani_wu_d.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vssrani_wu_d, 0); | ||
FUZZ2(vssrani_wu_d, 7); | ||
FUZZ2(vssrani_wu_d, 15); | ||
} |
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 @@ | ||
for (int i = 0; i < 4; i++) { | ||
if (i < 2) { | ||
s64 temp = (s64)b.dword[i] >> imm; | ||
dst.word[i] = clamp<s64>(temp, 0, 4294967295); | ||
} else { | ||
s64 temp = (s64)a.dword[i - 2] >> imm; | ||
dst.word[i] = clamp<s64>(temp, 0, 4294967295); | ||
} | ||
} |
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,13 @@ | ||
#include "common.h" | ||
|
||
v128 vssrlni_b_h(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vssrlni_b_h.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vssrlni_b_h, 0); | ||
FUZZ2(vssrlni_b_h, 7); | ||
FUZZ2(vssrlni_b_h, 15); | ||
} |
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 @@ | ||
for (int i = 0; i < 16; i++) { | ||
if (i < 8) { | ||
u16 temp = (u16)b.half[i] >> imm; | ||
dst.byte[i] = clamp<u16>(temp, 0, 127); | ||
} else { | ||
u16 temp = (u16)a.half[i - 8] >> imm; | ||
dst.byte[i] = clamp<u16>(temp, 0, 127); | ||
} | ||
} |
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,13 @@ | ||
#include "common.h" | ||
|
||
v128 vssrlni_bu_h(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vssrlni_bu_h.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vssrlni_bu_h, 0); | ||
FUZZ2(vssrlni_bu_h, 7); | ||
FUZZ2(vssrlni_bu_h, 15); | ||
} |
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 @@ | ||
for (int i = 0; i < 16; i++) { | ||
if (i < 8) { | ||
u16 temp = (u16)b.half[i] >> imm; | ||
dst.byte[i] = clamp<u16>(temp, 0, 255); | ||
} else { | ||
u16 temp = (u16)a.half[i - 8] >> imm; | ||
dst.byte[i] = clamp<u16>(temp, 0, 255); | ||
} | ||
} |
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,13 @@ | ||
#include "common.h" | ||
|
||
v128 vssrlni_d_q(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vssrlni_d_q.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vssrlni_d_q, 0); | ||
FUZZ2(vssrlni_d_q, 7); | ||
FUZZ2(vssrlni_d_q, 15); | ||
} |
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 @@ | ||
for (int i = 0; i < 2; i++) { | ||
if (i < 1) { | ||
u128 temp = (u128)b.qword[i] >> imm; | ||
dst.dword[i] = clamp<u128>(temp, 0, 9223372036854775807); | ||
} else { | ||
u128 temp = (u128)a.qword[i - 1] >> imm; | ||
dst.dword[i] = clamp<u128>(temp, 0, 9223372036854775807); | ||
} | ||
} |
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,13 @@ | ||
#include "common.h" | ||
|
||
v128 vssrlni_du_q(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vssrlni_du_q.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vssrlni_du_q, 0); | ||
FUZZ2(vssrlni_du_q, 7); | ||
FUZZ2(vssrlni_du_q, 15); | ||
} |
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 @@ | ||
for (int i = 0; i < 2; i++) { | ||
if (i < 1) { | ||
u128 temp = (u128)b.qword[i] >> imm; | ||
dst.dword[i] = clamp<u128>(temp, 0, 18446744073709551615); | ||
} else { | ||
u128 temp = (u128)a.qword[i - 1] >> imm; | ||
dst.dword[i] = clamp<u128>(temp, 0, 18446744073709551615); | ||
} | ||
} |
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,13 @@ | ||
#include "common.h" | ||
|
||
v128 vssrlni_h_w(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vssrlni_h_w.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vssrlni_h_w, 0); | ||
FUZZ2(vssrlni_h_w, 7); | ||
FUZZ2(vssrlni_h_w, 15); | ||
} |
Oops, something went wrong.