From 0dfe0602ad7d06273b658ebbaadf0e7846c86266 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 11 Jan 2015 16:39:36 -0800 Subject: [PATCH] stvew tests. --- .../frontend/ppc/test/bin/instr_stvew.bin | Bin 0 -> 32 bytes .../frontend/ppc/test/bin/instr_stvew.dis | 21 ++++++++++ .../frontend/ppc/test/bin/instr_stvew.map | 4 ++ src/alloy/frontend/ppc/test/instr_stvew.s | 39 ++++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 src/alloy/frontend/ppc/test/bin/instr_stvew.bin create mode 100644 src/alloy/frontend/ppc/test/bin/instr_stvew.dis create mode 100644 src/alloy/frontend/ppc/test/bin/instr_stvew.map create mode 100644 src/alloy/frontend/ppc/test/instr_stvew.s diff --git a/src/alloy/frontend/ppc/test/bin/instr_stvew.bin b/src/alloy/frontend/ppc/test/bin/instr_stvew.bin new file mode 100644 index 0000000000000000000000000000000000000000..ceea4226bb3e0bd383cf67a7911af06c19c0a59d GIT binary patch literal 32 Scmb: + 100000: 7c 60 21 8e stvewx v3,0,r4 + 100004: 4e 80 00 20 blr + +0000000000100008 : + 100008: 7c 60 21 8e stvewx v3,0,r4 + 10000c: 4e 80 00 20 blr + +0000000000100010 : + 100010: 7c 60 21 8e stvewx v3,0,r4 + 100014: 4e 80 00 20 blr + +0000000000100018 : + 100018: 7c 60 21 8e stvewx v3,0,r4 + 10001c: 4e 80 00 20 blr diff --git a/src/alloy/frontend/ppc/test/bin/instr_stvew.map b/src/alloy/frontend/ppc/test/bin/instr_stvew.map new file mode 100644 index 000000000..7a317bfbf --- /dev/null +++ b/src/alloy/frontend/ppc/test/bin/instr_stvew.map @@ -0,0 +1,4 @@ +0000000000000000 t test_stvew_1 +0000000000000008 t test_stvew_2 +0000000000000010 t test_stvew_3 +0000000000000018 t test_stvew_4 diff --git a/src/alloy/frontend/ppc/test/instr_stvew.s b/src/alloy/frontend/ppc/test/instr_stvew.s new file mode 100644 index 000000000..ec13b25e2 --- /dev/null +++ b/src/alloy/frontend/ppc/test/instr_stvew.s @@ -0,0 +1,39 @@ +test_stvew_1: + #_ MEMORY_IN 00001050 CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCC + #_ REGISTER_IN r4 0x1050 + #_ REGISTER_IN v3 [00010203, 04050607, 08090A0B, 0C0D0E0F] + stvewx v3, r0, r4 + blr + #_ REGISTER_OUT r4 0x1050 + #_ REGISTER_OUT v3 [00010203, 04050607, 08090A0B, 0C0D0E0F] + #_ MEMORY_OUT 00001050 00010203 CCCCCCCC CCCCCCCC CCCCCCCC + +test_stvew_2: + #_ MEMORY_IN 00001050 CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCC + #_ REGISTER_IN r4 0x1054 + #_ REGISTER_IN v3 [00010203, 04050607, 08090A0B, 0C0D0E0F] + stvewx v3, r0, r4 + blr + #_ REGISTER_OUT r4 0x1054 + #_ REGISTER_OUT v3 [00010203, 04050607, 08090A0B, 0C0D0E0F] + #_ MEMORY_OUT 00001050 CCCCCCCC 04050607 CCCCCCCC CCCCCCCC + +test_stvew_3: + #_ MEMORY_IN 00001050 CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCC + #_ REGISTER_IN r4 0x1058 + #_ REGISTER_IN v3 [00010203, 04050607, 08090A0B, 0C0D0E0F] + stvewx v3, r0, r4 + blr + #_ REGISTER_OUT r4 0x1058 + #_ REGISTER_OUT v3 [00010203, 04050607, 08090A0B, 0C0D0E0F] + #_ MEMORY_OUT 00001050 CCCCCCCC CCCCCCCC 08090A0B CCCCCCCC + +test_stvew_4: + #_ MEMORY_IN 00001050 CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCC + #_ REGISTER_IN r4 0x105C + #_ REGISTER_IN v3 [00010203, 04050607, 08090A0B, 0C0D0E0F] + stvewx v3, r0, r4 + blr + #_ REGISTER_OUT r4 0x105C + #_ REGISTER_OUT v3 [00010203, 04050607, 08090A0B, 0C0D0E0F] + #_ MEMORY_OUT 00001050 CCCCCCCC CCCCCCCC CCCCCCCC 0C0D0E0F