From dd2f799380c28029d22997f770e9ebc63239efec Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Mon, 19 Jan 2015 11:52:51 -0800 Subject: [PATCH] Tests for vupklsh/vupkhsh. --- src/alloy/frontend/ppc/test/bin/instr_vupkhsh.bin | Bin 0 -> 16 bytes src/alloy/frontend/ppc/test/bin/instr_vupkhsh.dis | 13 +++++++++++++ src/alloy/frontend/ppc/test/bin/instr_vupkhsh.map | 2 ++ src/alloy/frontend/ppc/test/bin/instr_vupklsh.bin | Bin 0 -> 16 bytes src/alloy/frontend/ppc/test/bin/instr_vupklsh.dis | 13 +++++++++++++ src/alloy/frontend/ppc/test/bin/instr_vupklsh.map | 2 ++ src/alloy/frontend/ppc/test/instr_vupkhsh.s | 11 +++++++++++ src/alloy/frontend/ppc/test/instr_vupklsh.s | 11 +++++++++++ 8 files changed, 52 insertions(+) create mode 100644 src/alloy/frontend/ppc/test/bin/instr_vupkhsh.bin create mode 100644 src/alloy/frontend/ppc/test/bin/instr_vupkhsh.dis create mode 100644 src/alloy/frontend/ppc/test/bin/instr_vupkhsh.map create mode 100644 src/alloy/frontend/ppc/test/bin/instr_vupklsh.bin create mode 100644 src/alloy/frontend/ppc/test/bin/instr_vupklsh.dis create mode 100644 src/alloy/frontend/ppc/test/bin/instr_vupklsh.map create mode 100644 src/alloy/frontend/ppc/test/instr_vupkhsh.s create mode 100644 src/alloy/frontend/ppc/test/instr_vupklsh.s diff --git a/src/alloy/frontend/ppc/test/bin/instr_vupkhsh.bin b/src/alloy/frontend/ppc/test/bin/instr_vupkhsh.bin new file mode 100644 index 0000000000000000000000000000000000000000..b3873f9d0f6679b741f8c431190901316ccbe640 GIT binary patch literal 16 RcmWegkn;0uU{DZ%(f}TG1C0Ox literal 0 HcmV?d00001 diff --git a/src/alloy/frontend/ppc/test/bin/instr_vupkhsh.dis b/src/alloy/frontend/ppc/test/bin/instr_vupkhsh.dis new file mode 100644 index 000000000..045a34f5e --- /dev/null +++ b/src/alloy/frontend/ppc/test/bin/instr_vupkhsh.dis @@ -0,0 +1,13 @@ + +/vagrant/src/alloy/frontend/ppc/test/bin//instr_vupkhsh.o: file format elf64-powerpc + + +Disassembly of section .text: + +0000000000100000 : + 100000: 10 60 1a 4e vupkhsh v3,v3 + 100004: 4e 80 00 20 blr + +0000000000100008 : + 100008: 10 60 1a 4e vupkhsh v3,v3 + 10000c: 4e 80 00 20 blr diff --git a/src/alloy/frontend/ppc/test/bin/instr_vupkhsh.map b/src/alloy/frontend/ppc/test/bin/instr_vupkhsh.map new file mode 100644 index 000000000..07205feca --- /dev/null +++ b/src/alloy/frontend/ppc/test/bin/instr_vupkhsh.map @@ -0,0 +1,2 @@ +0000000000000000 t test_vupkhsh_0 +0000000000000008 t test_vupkhsh_1 diff --git a/src/alloy/frontend/ppc/test/bin/instr_vupklsh.bin b/src/alloy/frontend/ppc/test/bin/instr_vupklsh.bin new file mode 100644 index 0000000000000000000000000000000000000000..342b2dad6a80c8a0c1367f09743a5318939a9ee2 GIT binary patch literal 16 RcmWegkUHnrz@Q)ir2!{&1dRXy literal 0 HcmV?d00001 diff --git a/src/alloy/frontend/ppc/test/bin/instr_vupklsh.dis b/src/alloy/frontend/ppc/test/bin/instr_vupklsh.dis new file mode 100644 index 000000000..1d7f0a4c5 --- /dev/null +++ b/src/alloy/frontend/ppc/test/bin/instr_vupklsh.dis @@ -0,0 +1,13 @@ + +/vagrant/src/alloy/frontend/ppc/test/bin//instr_vupklsh.o: file format elf64-powerpc + + +Disassembly of section .text: + +0000000000100000 : + 100000: 10 60 1a ce vupklsh v3,v3 + 100004: 4e 80 00 20 blr + +0000000000100008 : + 100008: 10 60 1a ce vupklsh v3,v3 + 10000c: 4e 80 00 20 blr diff --git a/src/alloy/frontend/ppc/test/bin/instr_vupklsh.map b/src/alloy/frontend/ppc/test/bin/instr_vupklsh.map new file mode 100644 index 000000000..fc4c3985c --- /dev/null +++ b/src/alloy/frontend/ppc/test/bin/instr_vupklsh.map @@ -0,0 +1,2 @@ +0000000000000000 t test_vupklsh_0 +0000000000000008 t test_vupklsh_1 diff --git a/src/alloy/frontend/ppc/test/instr_vupkhsh.s b/src/alloy/frontend/ppc/test/instr_vupkhsh.s new file mode 100644 index 000000000..e4ec3765c --- /dev/null +++ b/src/alloy/frontend/ppc/test/instr_vupkhsh.s @@ -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] diff --git a/src/alloy/frontend/ppc/test/instr_vupklsh.s b/src/alloy/frontend/ppc/test/instr_vupklsh.s new file mode 100644 index 000000000..1a4529be8 --- /dev/null +++ b/src/alloy/frontend/ppc/test/instr_vupklsh.s @@ -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]