Skip to content

Commit

Permalink
Add initial vaddwev
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Dec 12, 2023
1 parent afa2ff2 commit 295fa6f
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/vaddwev_h_b.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "common.h"

v128 vaddwev_h_b(v128 a, v128 b) {
v128 dst;
#include "vaddwev_h_b.h"
return dst;
}

void test() { FUZZ2(vaddwev_h_b); }
3 changes: 3 additions & 0 deletions code/vaddwev_h_b.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
for (int i = 0;i < 8;i++) {
dst.half[i] = (s16)(s8)a.byte[2 * i] + (s16)(s8)b.byte[2 * i];
}
9 changes: 9 additions & 0 deletions code/vaddwev_h_bu.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "common.h"

v128 vaddwev_h_bu(v128 a, v128 b) {
v128 dst;
#include "vaddwev_h_bu.h"
return dst;
}

void test() { FUZZ2(vaddwev_h_bu); }
3 changes: 3 additions & 0 deletions code/vaddwev_h_bu.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
for (int i = 0;i < 8;i++) {
dst.half[i] = (u16)(u8)a.byte[2 * i] + (u16)(u8)b.byte[2 * i];
}
9 changes: 9 additions & 0 deletions code/vaddwev_h_bu_b.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "common.h"

v128 vaddwev_h_bu_b(v128 a, v128 b) {
v128 dst;
#include "vaddwev_h_bu_b.h"
return dst;
}

void test() { FUZZ2(vaddwev_h_bu_b); }
3 changes: 3 additions & 0 deletions code/vaddwev_h_bu_b.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
for (int i = 0;i < 8;i++) {
dst.half[i] = (u16)(u8)a.byte[2 * i] + (s16)(s8)b.byte[2 * i];
}

0 comments on commit 295fa6f

Please sign in to comment.