lvsl/lvsr tests.

This commit is contained in:
Ben Vanik 2015-01-11 16:00:16 -08:00
parent 18e458e99a
commit fc39745634
8 changed files with 80 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,17 @@
/vagrant/src/alloy/frontend/ppc/test/bin//instr_lvsl.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_lvsl_1>:
100000: 7c 64 00 0c lvsl v3,r4,r0
100004: 4e 80 00 20 blr
0000000000100008 <test_lvsl_2>:
100008: 7c 64 00 0c lvsl v3,r4,r0
10000c: 4e 80 00 20 blr
0000000000100010 <test_lvsl_3>:
100010: 7c 64 00 0c lvsl v3,r4,r0
100014: 4e 80 00 20 blr

View File

@ -0,0 +1,3 @@
0000000000000000 t test_lvsl_1
0000000000000008 t test_lvsl_2
0000000000000010 t test_lvsl_3

Binary file not shown.

View File

@ -0,0 +1,17 @@
/vagrant/src/alloy/frontend/ppc/test/bin//instr_lvsr.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_lvsr_1>:
100000: 7c 64 00 4c lvsr v3,r4,r0
100004: 4e 80 00 20 blr
0000000000100008 <test_lvsr_2>:
100008: 7c 64 00 4c lvsr v3,r4,r0
10000c: 4e 80 00 20 blr
0000000000100010 <test_lvsr_3>:
100010: 7c 64 00 4c lvsr v3,r4,r0
100014: 4e 80 00 20 blr

View File

@ -0,0 +1,3 @@
0000000000000000 t test_lvsr_1
0000000000000008 t test_lvsr_2
0000000000000010 t test_lvsr_3

View File

@ -0,0 +1,20 @@
test_lvsl_1:
#_ REGISTER_IN r4 0x1070
lvsl v3, r4, r0
blr
#_ REGISTER_OUT r4 0x1070
#_ REGISTER_OUT v3 [00010203, 04050607, 08090A0B, 0C0D0E0F]
test_lvsl_2:
#_ REGISTER_IN r4 0x1071
lvsl v3, r4, r0
blr
#_ REGISTER_OUT r4 0x1071
#_ REGISTER_OUT v3 [01020304, 05060708, 090A0B0C, 0D0E0F10]
test_lvsl_3:
#_ REGISTER_IN r4 0x107F
lvsl v3, r4, r0
blr
#_ REGISTER_OUT r4 0x107F
#_ REGISTER_OUT v3 [0F101112, 13141516, 1718191A, 1B1C1D1E]

View File

@ -0,0 +1,20 @@
test_lvsr_1:
#_ REGISTER_IN r4 0x1070
lvsr v3, r4, r0
blr
#_ REGISTER_OUT r4 0x1070
#_ REGISTER_OUT v3 [10111213, 14151617, 18191A1B, 1C1D1E1F]
test_lvsr_2:
#_ REGISTER_IN r4 0x1071
lvsr v3, r4, r0
blr
#_ REGISTER_OUT r4 0x1071
#_ REGISTER_OUT v3 [0F101112, 13141516, 1718191A, 1B1C1D1E]
test_lvsr_3:
#_ REGISTER_IN r4 0x107F
lvsr v3, r4, r0
blr
#_ REGISTER_OUT r4 0x107F
#_ REGISTER_OUT v3 [01020304, 05060708, 090A0B0C, 0D0E0F10]