diff options
author | Andrzej Janik <[email protected]> | 2020-11-06 00:56:45 +0100 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2020-11-06 00:56:45 +0100 |
commit | ac6265f257654180f6661c406a025313190448c4 (patch) | |
tree | df84117141e484c0c9da03a94aae4b5018c24607 /ptx/src/test/spirv_run/mod.rs | |
parent | d7bf1acf84faa8f6cb1d5edb6c4d9eb0f05a5ae0 (diff) | |
download | ZLUDA-ac6265f257654180f6661c406a025313190448c4.tar.gz ZLUDA-ac6265f257654180f6661c406a025313190448c4.zip |
Implement instructions bfe, rem, xor
Diffstat (limited to 'ptx/src/test/spirv_run/mod.rs')
-rw-r--r-- | ptx/src/test/spirv_run/mod.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ptx/src/test/spirv_run/mod.rs b/ptx/src/test/spirv_run/mod.rs index a7ef75b..5bbe45a 100644 --- a/ptx/src/test/spirv_run/mod.rs +++ b/ptx/src/test/spirv_run/mod.rs @@ -116,6 +116,20 @@ test_ptx!( [0b11000111_01011100_10101110_11111011u32],
[0b11011111_01110101_00111010_11100011u32]
);
+test_ptx!(
+ xor,
+ [
+ 0b01010010_00011010_01000000_00001101u32,
+ 0b11100110_10011011_00001100_00100011u32
+ ],
+ [0b10110100100000010100110000101110u32]
+);
+test_ptx!(rem, [21692i32, 13i32], [8i32]);
+test_ptx!(
+ bfe,
+ [0b11111000_11000001_00100010_10100000u32, 16u32, 8u32],
+ [0b11000001u32]
+);
struct DisplayError<T: Debug> {
err: T,
|