aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/lib
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-03-01 23:01:53 +0100
committerAndrzej Janik <[email protected]>2021-03-01 23:01:53 +0100
commit178ec59af610a35e50c515d4b1e893e9ea81bbd9 (patch)
tree2e329a067857441e221e40c006fb219262304ee6 /ptx/lib
parentd3cd2dc8b4695eee12189c4eb9d465f538878a29 (diff)
downloadZLUDA-178ec59af610a35e50c515d4b1e893e9ea81bbd9.tar.gz
ZLUDA-178ec59af610a35e50c515d4b1e893e9ea81bbd9.zip
Implement bfi instruction
Diffstat (limited to 'ptx/lib')
-rw-r--r--ptx/lib/zluda_ptx_impl.cl8
-rw-r--r--ptx/lib/zluda_ptx_impl.spvbin49500 -> 50100 bytes
2 files changed, 8 insertions, 0 deletions
diff --git a/ptx/lib/zluda_ptx_impl.cl b/ptx/lib/zluda_ptx_impl.cl
index 94d02ec..a878ddd 100644
--- a/ptx/lib/zluda_ptx_impl.cl
+++ b/ptx/lib/zluda_ptx_impl.cl
@@ -136,6 +136,14 @@ long FUNC(bfe_s64)(long base, uint pos, uint len) {
return intel_sbfe(base, pos, len);
}
+uint FUNC(bfi_b32)(uint base, uint insert, uint offset, uint count) {
+ return intel_bfi(base, insert, offset, count);
+}
+
+ulong FUNC(bfi_b64)(ulong base, ulong insert, uint offset, uint count) {
+ return intel_bfi(base, insert, offset, count);
+}
+
void FUNC(__assertfail)(
__private ulong* message,
__private ulong* file,
diff --git a/ptx/lib/zluda_ptx_impl.spv b/ptx/lib/zluda_ptx_impl.spv
index 731966e..8a2d697 100644
--- a/ptx/lib/zluda_ptx_impl.spv
+++ b/ptx/lib/zluda_ptx_impl.spv
Binary files differ