aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/test/spirv_run/block.ptx
diff options
context:
space:
mode:
Diffstat (limited to 'ptx/src/test/spirv_run/block.ptx')
-rw-r--r--ptx/src/test/spirv_run/block.ptx26
1 files changed, 26 insertions, 0 deletions
diff --git a/ptx/src/test/spirv_run/block.ptx b/ptx/src/test/spirv_run/block.ptx
new file mode 100644
index 0000000..03c552c
--- /dev/null
+++ b/ptx/src/test/spirv_run/block.ptx
@@ -0,0 +1,26 @@
+.version 6.5
+.target sm_30
+.address_size 64
+
+.visible .entry block(
+ .param .u64 input,
+ .param .u64 output
+)
+{
+ .reg .u64 in_addr;
+ .reg .u64 out_addr;
+ .reg .u64 temp;
+ .reg .u64 temp2;
+
+ ld.param.u64 in_addr, [input];
+ ld.param.u64 out_addr, [output];
+
+ ld.u64 temp, [in_addr];
+ add.u64 temp2, temp, 1;
+ {
+ .reg .u64 temp2;
+ add.u64 temp2, temp2, 1;
+ }
+ st.u64 [out_addr], temp2;
+ ret;
+}