diff options
author | Andrzej Janik <[email protected]> | 2021-03-01 23:01:53 +0100 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-03-01 23:01:53 +0100 |
commit | 178ec59af610a35e50c515d4b1e893e9ea81bbd9 (patch) | |
tree | 2e329a067857441e221e40c006fb219262304ee6 /ptx/lib | |
parent | d3cd2dc8b4695eee12189c4eb9d465f538878a29 (diff) | |
download | ZLUDA-178ec59af610a35e50c515d4b1e893e9ea81bbd9.tar.gz ZLUDA-178ec59af610a35e50c515d4b1e893e9ea81bbd9.zip |
Implement bfi instruction
Diffstat (limited to 'ptx/lib')
-rw-r--r-- | ptx/lib/zluda_ptx_impl.cl | 8 | ||||
-rw-r--r-- | ptx/lib/zluda_ptx_impl.spv | bin | 49500 -> 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 Binary files differindex 731966e..8a2d697 100644 --- a/ptx/lib/zluda_ptx_impl.spv +++ b/ptx/lib/zluda_ptx_impl.spv |