-
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
29 changed files
with
339 additions
and
6 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
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 vsrarni_b_h(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vsrarni_b_h.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vsrarni_b_h, 0); | ||
FUZZ2(vsrarni_b_h, 7); | ||
FUZZ2(vsrarni_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,17 @@ | ||
for (int i = 0; i < 16; i++) { | ||
if (i < 8) { | ||
if (imm == 0) { | ||
dst.byte[i] = (s8)(s16)b.half[i]; | ||
} else { | ||
dst.byte[i] = | ||
(s8)(((s16)b.half[i] >> imm) + (((s16)b.half[i] >> (imm - 1)) & 0x1)); | ||
} | ||
} else { | ||
if (imm == 0) { | ||
dst.byte[i] = (s8)(s16)a.half[i - 8]; | ||
} else { | ||
dst.byte[i] = (u8)(((s16)a.half[i - 8] >> imm) + | ||
(((s16)a.half[i - 8] >> (imm - 1)) & 0x1)); | ||
} | ||
} | ||
} |
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 vsrarni_d_q(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vsrarni_d_q.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vsrarni_d_q, 0); | ||
FUZZ2(vsrarni_d_q, 7); | ||
FUZZ2(vsrarni_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,17 @@ | ||
for (int i = 0; i < 2; i++) { | ||
if (i < 1) { | ||
if (imm == 0) { | ||
dst.dword[i] = (s64)(s128)b.qword[i]; | ||
} else { | ||
dst.dword[i] = (s64)(((s128)b.qword[i] >> imm) + | ||
(((s128)b.qword[i] >> (imm - 1)) & 0x1)); | ||
} | ||
} else { | ||
if (imm == 0) { | ||
dst.dword[i] = (s64)(s128)a.qword[i - 1]; | ||
} else { | ||
dst.dword[i] = (u64)(((s128)a.qword[i - 1] >> imm) + | ||
(((s128)a.qword[i - 1] >> (imm - 1)) & 0x1)); | ||
} | ||
} | ||
} |
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 vsrarni_h_w(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vsrarni_h_w.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vsrarni_h_w, 0); | ||
FUZZ2(vsrarni_h_w, 7); | ||
FUZZ2(vsrarni_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,17 @@ | ||
for (int i = 0; i < 8; i++) { | ||
if (i < 4) { | ||
if (imm == 0) { | ||
dst.half[i] = (s16)(s32)b.word[i]; | ||
} else { | ||
dst.half[i] = (s16)(((s32)b.word[i] >> imm) + | ||
(((s32)b.word[i] >> (imm - 1)) & 0x1)); | ||
} | ||
} else { | ||
if (imm == 0) { | ||
dst.half[i] = (s16)(s32)a.word[i - 4]; | ||
} else { | ||
dst.half[i] = (u16)(((s32)a.word[i - 4] >> imm) + | ||
(((s32)a.word[i - 4] >> (imm - 1)) & 0x1)); | ||
} | ||
} | ||
} |
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 vsrarni_w_d(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vsrarni_w_d.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vsrarni_w_d, 0); | ||
FUZZ2(vsrarni_w_d, 7); | ||
FUZZ2(vsrarni_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,17 @@ | ||
for (int i = 0; i < 4; i++) { | ||
if (i < 2) { | ||
if (imm == 0) { | ||
dst.word[i] = (s32)(s64)b.dword[i]; | ||
} else { | ||
dst.word[i] = (s32)(((s64)b.dword[i] >> imm) + | ||
(((s64)b.dword[i] >> (imm - 1)) & 0x1)); | ||
} | ||
} else { | ||
if (imm == 0) { | ||
dst.word[i] = (s32)(s64)a.dword[i - 2]; | ||
} else { | ||
dst.word[i] = (u32)(((s64)a.dword[i - 2] >> imm) + | ||
(((s64)a.dword[i - 2] >> (imm - 1)) & 0x1)); | ||
} | ||
} | ||
} |
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,13 @@ | ||
#include "common.h" | ||
|
||
v128 vsrlrni_b_h(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vsrlrni_b_h.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vsrlrni_b_h, 0); | ||
FUZZ2(vsrlrni_b_h, 7); | ||
FUZZ2(vsrlrni_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,17 @@ | ||
for (int i = 0; i < 16; i++) { | ||
if (i < 8) { | ||
if (imm == 0) { | ||
dst.byte[i] = (u8)(u16)b.half[i]; | ||
} else { | ||
dst.byte[i] = | ||
(u8)(((u16)b.half[i] >> imm) + (((u16)b.half[i] >> (imm - 1)) & 0x1)); | ||
} | ||
} else { | ||
if (imm == 0) { | ||
dst.byte[i] = (u8)(u16)a.half[i - 8]; | ||
} else { | ||
dst.byte[i] = (u8)(((u16)a.half[i - 8] >> imm) + | ||
(((u16)a.half[i - 8] >> (imm - 1)) & 0x1)); | ||
} | ||
} | ||
} |
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 vsrlrni_d_q(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vsrlrni_d_q.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vsrlrni_d_q, 0); | ||
FUZZ2(vsrlrni_d_q, 7); | ||
FUZZ2(vsrlrni_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,17 @@ | ||
for (int i = 0; i < 2; i++) { | ||
if (i < 1) { | ||
if (imm == 0) { | ||
dst.dword[i] = (u64)(u128)b.qword[i]; | ||
} else { | ||
dst.dword[i] = (u64)(((u128)b.qword[i] >> imm) + | ||
(((u128)b.qword[i] >> (imm - 1)) & 0x1)); | ||
} | ||
} else { | ||
if (imm == 0) { | ||
dst.dword[i] = (u64)(u128)a.qword[i - 1]; | ||
} else { | ||
dst.dword[i] = (u64)(((u128)a.qword[i - 1] >> imm) + | ||
(((u128)a.qword[i - 1] >> (imm - 1)) & 0x1)); | ||
} | ||
} | ||
} |
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 vsrlrni_h_w(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vsrlrni_h_w.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vsrlrni_h_w, 0); | ||
FUZZ2(vsrlrni_h_w, 7); | ||
FUZZ2(vsrlrni_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,17 @@ | ||
for (int i = 0; i < 8; i++) { | ||
if (i < 4) { | ||
if (imm == 0) { | ||
dst.half[i] = (u16)(u32)b.word[i]; | ||
} else { | ||
dst.half[i] = (u16)(((u32)b.word[i] >> imm) + | ||
(((u32)b.word[i] >> (imm - 1)) & 0x1)); | ||
} | ||
} else { | ||
if (imm == 0) { | ||
dst.half[i] = (u16)(u32)a.word[i - 4]; | ||
} else { | ||
dst.half[i] = (u16)(((u32)a.word[i - 4] >> imm) + | ||
(((u32)a.word[i - 4] >> (imm - 1)) & 0x1)); | ||
} | ||
} | ||
} |
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 vsrlrni_w_d(v128 a, v128 b, int imm) { | ||
v128 dst; | ||
#include "vsrlrni_w_d.h" | ||
return dst; | ||
} | ||
|
||
void test() { | ||
FUZZ2(vsrlrni_w_d, 0); | ||
FUZZ2(vsrlrni_w_d, 7); | ||
FUZZ2(vsrlrni_w_d, 15); | ||
} |
Oops, something went wrong.