From e48d9a44c702b7ef3c17c42140a5c877dac76d14 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 11 Jan 2015 21:21:51 -0800 Subject: [PATCH] vsldoi tests. --- .../frontend/ppc/test/bin/instr_vsldoi.bin | Bin 0 -> 24 bytes .../frontend/ppc/test/bin/instr_vsldoi.dis | 17 ++++++++++ .../frontend/ppc/test/bin/instr_vsldoi.map | 3 ++ src/alloy/frontend/ppc/test/instr_vsldoi.s | 29 ++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 src/alloy/frontend/ppc/test/bin/instr_vsldoi.bin create mode 100644 src/alloy/frontend/ppc/test/bin/instr_vsldoi.dis create mode 100644 src/alloy/frontend/ppc/test/bin/instr_vsldoi.map create mode 100644 src/alloy/frontend/ppc/test/instr_vsldoi.s diff --git a/src/alloy/frontend/ppc/test/bin/instr_vsldoi.bin b/src/alloy/frontend/ppc/test/bin/instr_vsldoi.bin new file mode 100644 index 0000000000000000000000000000000000000000..8fda0ff56806045f275d28780c905f31c02c6d7a GIT binary patch literal 24 YcmWewtf1r9z@Q+oSRn^OE58BJ08yO=%K!iX literal 0 HcmV?d00001 diff --git a/src/alloy/frontend/ppc/test/bin/instr_vsldoi.dis b/src/alloy/frontend/ppc/test/bin/instr_vsldoi.dis new file mode 100644 index 000000000..cc5a2b16a --- /dev/null +++ b/src/alloy/frontend/ppc/test/bin/instr_vsldoi.dis @@ -0,0 +1,17 @@ + +/vagrant/src/alloy/frontend/ppc/test/bin//instr_vsldoi.o: file format elf64-powerpc + + +Disassembly of section .text: + +0000000000100000 : + 100000: 10 a3 20 2c vsldoi v5,v3,v4,0 + 100004: 4e 80 00 20 blr + +0000000000100008 : + 100008: 10 a3 20 6c vsldoi v5,v3,v4,1 + 10000c: 4e 80 00 20 blr + +0000000000100010 : + 100010: 10 a3 23 ec vsldoi v5,v3,v4,15 + 100014: 4e 80 00 20 blr diff --git a/src/alloy/frontend/ppc/test/bin/instr_vsldoi.map b/src/alloy/frontend/ppc/test/bin/instr_vsldoi.map new file mode 100644 index 000000000..e9c64fe09 --- /dev/null +++ b/src/alloy/frontend/ppc/test/bin/instr_vsldoi.map @@ -0,0 +1,3 @@ +0000000000000000 t test_vsldoi_1 +0000000000000008 t test_vsldoi_2 +0000000000000010 t test_vsldoi_3 diff --git a/src/alloy/frontend/ppc/test/instr_vsldoi.s b/src/alloy/frontend/ppc/test/instr_vsldoi.s new file mode 100644 index 000000000..7ab577c82 --- /dev/null +++ b/src/alloy/frontend/ppc/test/instr_vsldoi.s @@ -0,0 +1,29 @@ +test_vsldoi_1: + #_ REGISTER_IN v3 [00010203, 04050607, 08090A0B, 0C0D0E0F] + #_ REGISTER_IN v4 [10111213, 14151617, 18191A1B, 1C1D1E1F] + #_ REGISTER_IN v5 [00000000, 00000000, 00000000, 00000000] + vsldoi v5, v3, v4, 0 + blr + #_ REGISTER_OUT v3 [00010203, 04050607, 08090A0B, 0C0D0E0F] + #_ REGISTER_OUT v4 [10111213, 14151617, 18191A1B, 1C1D1E1F] + #_ REGISTER_OUT v5 [00010203, 04050607, 08090A0B, 0C0D0E0F] + +test_vsldoi_2: + #_ REGISTER_IN v3 [00010203, 04050607, 08090A0B, 0C0D0E0F] + #_ REGISTER_IN v4 [10111213, 14151617, 18191A1B, 1C1D1E1F] + #_ REGISTER_IN v5 [00000000, 00000000, 00000000, 00000000] + vsldoi v5, v3, v4, 1 + blr + #_ REGISTER_OUT v3 [00010203, 04050607, 08090A0B, 0C0D0E0F] + #_ REGISTER_OUT v4 [10111213, 14151617, 18191A1B, 1C1D1E1F] + #_ REGISTER_OUT v5 [01020304, 05060708, 090A0B0C, 0D0E0F10] + +test_vsldoi_3: + #_ REGISTER_IN v3 [00010203, 04050607, 08090A0B, 0C0D0E0F] + #_ REGISTER_IN v4 [10111213, 14151617, 18191A1B, 1C1D1E1F] + #_ REGISTER_IN v5 [00000000, 00000000, 00000000, 00000000] + vsldoi v5, v3, v4, 0xF + blr + #_ REGISTER_OUT v3 [00010203, 04050607, 08090A0B, 0C0D0E0F] + #_ REGISTER_OUT v4 [10111213, 14151617, 18191A1B, 1C1D1E1F] + #_ REGISTER_OUT v5 [0F101112, 13141516, 1718191A, 1B1C1D1E]