aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/test/spirv_run/mod.rs
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2020-11-01 14:34:03 +0100
committerAndrzej Janik <[email protected]>2020-11-01 14:34:03 +0100
commitb7d61baf37be52c7b2e5ea26be045470642f9a61 (patch)
tree6503c9ed6c65b98a588a727ef7600842b975b07b /ptx/src/test/spirv_run/mod.rs
parenta82eb2081717c1fb48e140176fec0e5b5974a432 (diff)
downloadZLUDA-b7d61baf37be52c7b2e5ea26be045470642f9a61.tar.gz
ZLUDA-b7d61baf37be52c7b2e5ea26be045470642f9a61.zip
Implement div, sqrt, rsqrt and more of setp
Diffstat (limited to 'ptx/src/test/spirv_run/mod.rs')
-rw-r--r--ptx/src/test/spirv_run/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/ptx/src/test/spirv_run/mod.rs b/ptx/src/test/spirv_run/mod.rs
index 40a9d64..4e9d39f 100644
--- a/ptx/src/test/spirv_run/mod.rs
+++ b/ptx/src/test/spirv_run/mod.rs
@@ -97,9 +97,13 @@ test_ptx!(and, [6u32, 3u32], [2u32]);
test_ptx!(selp, [100u16, 200u16], [200u16]);
test_ptx!(fma, [2f32, 3f32, 5f32], [11f32]);
test_ptx!(shared_variable, [513u64], [513u64]);
+test_ptx!(shared_ptr_32, [513u64], [513u64]);
test_ptx!(atom_cas, [91u32, 91u32], [91u32, 100u32]);
test_ptx!(atom_inc, [100u32], [100u32, 101u32, 0u32]);
test_ptx!(atom_add, [2u32, 4u32], [2u32, 6u32]);
+test_ptx!(div_approx, [1f32, 2f32], [0.5f32]);
+test_ptx!(sqrt, [0.25f32], [0.5f32]);
+test_ptx!(rsqrt, [0.25f64], [2f64]);
struct DisplayError<T: Debug> {
err: T,