Tests for vpkswus, vpkuwus.
This commit is contained in:
parent
95d9344985
commit
d7c0837f40
|
@ -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]
|
|
@ -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]
|
Loading…
Reference in New Issue