aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/test/spirv_run/s64_min.ptx
diff options
context:
space:
mode:
Diffstat (limited to 'ptx/src/test/spirv_run/s64_min.ptx')
-rw-r--r--ptx/src/test/spirv_run/s64_min.ptx17
1 files changed, 17 insertions, 0 deletions
diff --git a/ptx/src/test/spirv_run/s64_min.ptx b/ptx/src/test/spirv_run/s64_min.ptx
new file mode 100644
index 0000000..fd4505b
--- /dev/null
+++ b/ptx/src/test/spirv_run/s64_min.ptx
@@ -0,0 +1,17 @@
+.version 6.5
+.target sm_30
+.address_size 64
+
+.visible .entry s64_min(
+ .param .u64 input,
+ .param .u64 output
+)
+{
+ .reg .u64 out_addr;
+ .reg .s64 min;
+
+ ld.param.u64 out_addr, [output];
+ mov.s64 min, -9223372036854775808;
+ st.s64 [out_addr], min;
+ ret;
+}