diff options
author | Andrzej Janik <[email protected]> | 2020-08-05 23:50:20 +0200 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2020-08-05 23:50:20 +0200 |
commit | d47cd1e133995a08af15edd23c476ebf6d5cabf8 (patch) | |
tree | eb76fa80dbd3e05161655dcbb52dce48dce166d0 /ptx/src/test/spirv_run/cvta.ptx | |
parent | 7b407d1c44535c2aef2c1ca0eb1fbbb58a1513d2 (diff) | |
download | ZLUDA-d47cd1e133995a08af15edd23c476ebf6d5cabf8.tar.gz ZLUDA-d47cd1e133995a08af15edd23c476ebf6d5cabf8.zip |
Add support for cvta and global ld/st
Diffstat (limited to 'ptx/src/test/spirv_run/cvta.ptx')
-rw-r--r-- | ptx/src/test/spirv_run/cvta.ptx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ptx/src/test/spirv_run/cvta.ptx b/ptx/src/test/spirv_run/cvta.ptx new file mode 100644 index 0000000..c24c959 --- /dev/null +++ b/ptx/src/test/spirv_run/cvta.ptx @@ -0,0 +1,23 @@ +.version 6.5
+.target sm_30
+.address_size 64
+
+.visible .entry cvta(
+ .param .u64 input,
+ .param .u64 output
+)
+{
+ .reg .u64 in_addr;
+ .reg .u64 out_addr;
+ .reg .f32 temp;
+
+ ld.param.u64 in_addr, [input];
+ ld.param.u64 out_addr, [output];
+
+ cvta.to.global.u64 in_addr, in_addr;
+ cvta.to.global.u64 out_addr, out_addr;
+
+ ld.global.f32 temp, [in_addr];
+ st.global.f32 [out_addr], temp;
+ ret;
+}
\ No newline at end of file |