Tests for vpkswus, vpkuwus.

This commit is contained in:
gibbed 2015-08-16 05:15:35 -05:00
parent 95d9344985
commit d7c0837f40
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
test_vpkswus_0:
# {-1, -32768, 0, 32767}
#_ REGISTER_IN v3 [FFFFFFFF, FFFF8000, 00000000, 00007FFF]
# {-2, -32769, 1, 32768}
#_ REGISTER_IN v4 [FFFFFFFE, FFFF7FFF, 00000001, 00008000]
vpkswus v5, v3, v4
blr
#_ REGISTER_OUT v3 [FFFFFFFF, FFFF8000, 00000000, 00007FFF]
#_ REGISTER_OUT v4 [FFFFFFFE, FFFF7FFF, 00000001, 00008000]
# {0, 0, 0, 32767, 0, 0, 1, 32768}
#_ REGISTER_OUT v5 [00000000, 00007FFF, 00000000, 00018000]

View File

@ -0,0 +1,11 @@
test_vpkuwus_0:
# {0, 65536, 1, 65537}
#_ REGISTER_IN v3 [00000000, 00010000, 00000001, 00010001]
# {2, 65538, 3, 65539}
#_ REGISTER_IN v4 [00000002, 00010002, 00000003, 00010003]
vpkuwus v5, v3, v4
blr
#_ REGISTER_OUT v3 [00000000, 00010000, 00000001, 00010001]
#_ REGISTER_OUT v4 [00000002, 00010002, 00000003, 00010003]
# {0, 65535, 1, 65535, 2, 65535, 3, 65535}
#_ REGISTER_OUT v5 [0000FFFF, 0001FFFF, 0002FFFF, 0003FFFF]