-
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
15 changed files
with
151 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ clean: | |
|
||
%: %.cpp %.h | ||
$(CXX) $< -mlsx -mlasx -o $@ | ||
|
||
.SUFFIXES: |
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
Empty file.
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 @@ | ||
#include "common.h" | ||
|
||
v128 vfcvt_s_d(v128 a, v128 b) { | ||
v128 dst; | ||
#include "vfcvt_s_d.h" | ||
return dst; | ||
} | ||
|
||
void test() { FUZZ2(vfcvt_s_d); } |
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,7 @@ | ||
for (int i = 0; i < 4; i++) { | ||
if (i < 2) { | ||
dst.fp32[i] = b.fp64[i]; | ||
} else { | ||
dst.fp32[i] = a.fp64[i - 2]; | ||
} | ||
} |
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 @@ | ||
#include "common.h" | ||
|
||
v128 vfcvth_d_s(v128 a) { | ||
v128 dst; | ||
#include "vfcvth_d_s.h" | ||
return dst; | ||
} | ||
|
||
void test() { FUZZ1(vfcvth_d_s); } |
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.fp64[i] = a.fp32[2 + 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,9 @@ | ||
#include "common.h" | ||
|
||
v128 vfcvth_d_s(v128 a) { | ||
v128 dst; | ||
#include "vfcvth_d_s.h" | ||
return dst; | ||
} | ||
|
||
void test() { FUZZ1(vfcvth_d_s); } |
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.fp64[i] = a.fp32[i]; | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
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,65 @@ | ||
# Floating Point Conversion | ||
|
||
## __m128d __lsx_vfcvth_d_s (__m128 a) | ||
|
||
### Synopsis | ||
|
||
```c++ | ||
__m128d __lsx_vfcvth_d_s (__m128 a) | ||
#include <lsxintrin.h> | ||
Instruction: vfcvth.d.s vr, vr | ||
CPU Flags: LSX | ||
``` | ||
### Description | ||
Convert single precision floating point elements in higher half of `a` to double precision. | ||
### Operation | ||
```c++ | ||
{% include('vfcvth_d_s.h') %} | ||
``` | ||
|
||
## __m128d __lsx_vfcvtl_d_s (__m128 a) | ||
|
||
### Synopsis | ||
|
||
```c++ | ||
__m128d __lsx_vfcvtl_d_s (__m128 a) | ||
#include <lsxintrin.h> | ||
Instruction: vfcvtl.d.s vr, vr | ||
CPU Flags: LSX | ||
``` | ||
### Description | ||
Convert single precision floating point elements in lower half of `a` to double precision. | ||
### Operation | ||
```c++ | ||
{% include('vfcvtl_d_s.h') %} | ||
``` | ||
|
||
|
||
## __m128 __lsx_vfcvt_s_d (__m128d a, __m128d b) | ||
|
||
### Synopsis | ||
|
||
```c++ | ||
__m128 __lsx_vfcvt_s_d (__m128a, __m128d b) | ||
#include <lsxintrin.h> | ||
Instruction: vfcvt.s.d vr, vr, vr | ||
CPU Flags: LSX | ||
``` | ||
### Description | ||
Convert double precision floating point elements in `a` and `b` to double precision. | ||
### Operation | ||
```c++ | ||
{% include('vfcvt_s_d.h') %} | ||
``` |