diff options
author | Andrzej Janik <[email protected]> | 2021-01-26 21:05:09 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-26 21:05:09 +0100 |
commit | 972f612562dc534ad605bfc5a00bc908ddd8b3de (patch) | |
tree | 7e4b764357965ab52892dbd79299afa308265710 /ptx/src/test/spirv_run/setp_leu.ptx | |
parent | 3e2e73ac33273fc23a6183b1e5bc0b2f754fa4fb (diff) | |
download | ZLUDA-972f612562dc534ad605bfc5a00bc908ddd8b3de.tar.gz ZLUDA-972f612562dc534ad605bfc5a00bc908ddd8b3de.zip |
Fix signed integer conversion (#36)
This fixes the last remaining bug preventing end-to-end GeekBench run, so also update Geekbench results in README
Diffstat (limited to 'ptx/src/test/spirv_run/setp_leu.ptx')
-rw-r--r-- | ptx/src/test/spirv_run/setp_leu.ptx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ptx/src/test/spirv_run/setp_leu.ptx b/ptx/src/test/spirv_run/setp_leu.ptx new file mode 100644 index 0000000..be7538a --- /dev/null +++ b/ptx/src/test/spirv_run/setp_leu.ptx @@ -0,0 +1,27 @@ +.version 6.5
+.target sm_30
+.address_size 64
+
+.visible .entry setp_leu(
+ .param .u64 input,
+ .param .u64 output
+)
+{
+ .reg .u64 in_addr;
+ .reg .u64 out_addr;
+ .reg .f32 r1;
+ .reg .f32 r2;
+ .reg .f32 r3;
+ .reg .pred pred;
+
+ ld.param.u64 in_addr, [input];
+ ld.param.u64 out_addr, [output];
+
+ ld.f32 r1, [in_addr];
+ ld.f32 r2, [in_addr + 4];
+ setp.leu.ftz.f32 pred, r1, r2;
+ @pred mov.f32 r3, r1;
+ @!pred mov.f32 r3, r2;
+ st.f32 [out_addr], r3;
+ ret;
+}
|