Tests for vupklsh/vupkhsh.

This commit is contained in:
Ben Vanik 2015-01-19 11:52:51 -08:00
parent 9099f597fe
commit dd2f799380
8 changed files with 52 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,13 @@
/vagrant/src/alloy/frontend/ppc/test/bin//instr_vupkhsh.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vupkhsh_0>:
100000: 10 60 1a 4e vupkhsh v3,v3
100004: 4e 80 00 20 blr
0000000000100008 <test_vupkhsh_1>:
100008: 10 60 1a 4e vupkhsh v3,v3
10000c: 4e 80 00 20 blr

View File

@ -0,0 +1,2 @@
0000000000000000 t test_vupkhsh_0
0000000000000008 t test_vupkhsh_1

Binary file not shown.

View File

@ -0,0 +1,13 @@
/vagrant/src/alloy/frontend/ppc/test/bin//instr_vupklsh.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_vupklsh_0>:
100000: 10 60 1a ce vupklsh v3,v3
100004: 4e 80 00 20 blr
0000000000100008 <test_vupklsh_1>:
100008: 10 60 1a ce vupklsh v3,v3
10000c: 4e 80 00 20 blr

View File

@ -0,0 +1,2 @@
0000000000000000 t test_vupklsh_0
0000000000000008 t test_vupklsh_1

View File

@ -0,0 +1,11 @@
test_vupkhsh_0:
#_ REGISTER_IN v3 [00010203, 04050607, 08090A0B, 0C0D0E0F]
vupkhsh v3, v3
blr
#_ REGISTER_OUT v3 [00000001, 00000203, 00000405, 00000607]
test_vupkhsh_1:
#_ REGISTER_IN v3 [7F800203, 04050607, 7F800A0B, 0C0D0E0F]
vupkhsh v3, v3
blr
#_ REGISTER_OUT v3 [00007f80, 00000203, 00000405, 00000607]

View File

@ -0,0 +1,11 @@
test_vupklsh_0:
#_ REGISTER_IN v3 [00010203, 04050607, 08090A0B, 0C0D0E0F]
vupklsh v3, v3
blr
#_ REGISTER_OUT v3 [00000809, 00000a0b, 00000c0d, 00000e0f]
test_vupklsh_1:
#_ REGISTER_IN v3 [7F800203, 04050607, 7F800A0B, 0C0D0E0F]
vupklsh v3, v3
blr
#_ REGISTER_OUT v3 [00007f80, 00000a0b, 00000c0d, 00000e0f]