eqv tests.

This commit is contained in:
Ben Vanik 2014-09-10 21:32:55 -07:00
parent feffe590f2
commit e50a45d33d
4 changed files with 88 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,29 @@
/cygdrive/d/dev/xenia/src/alloy/frontend/ppc/test/bin//instr_eqv.o: file format elf64-powerpc
Disassembly of section .text:
0000000000100000 <test_eqv_1>:
100000: 7c 83 2a 38 eqv r3,r4,r5
100004: 4e 80 00 20 blr
0000000000100008 <test_eqv_2>:
100008: 7c 83 2a 38 eqv r3,r4,r5
10000c: 4e 80 00 20 blr
0000000000100010 <test_eqv_3>:
100010: 7c 83 2a 38 eqv r3,r4,r5
100014: 4e 80 00 20 blr
0000000000100018 <test_eqv_4>:
100018: 7c 83 2a 38 eqv r3,r4,r5
10001c: 4e 80 00 20 blr
0000000000100020 <test_eqv_5>:
100020: 7c 83 2a 38 eqv r3,r4,r5
100024: 4e 80 00 20 blr
0000000000100028 <test_eqv_6>:
100028: 7c 83 2a 38 eqv r3,r4,r5
10002c: 4e 80 00 20 blr

View File

@ -0,0 +1,6 @@
0000000000000000 t test_eqv_1
0000000000000008 t test_eqv_2
0000000000000010 t test_eqv_3
0000000000000018 t test_eqv_4
0000000000000020 t test_eqv_5
0000000000000028 t test_eqv_6

View File

@ -0,0 +1,53 @@
test_eqv_1:
#_ REGISTER_IN r4 0
#_ REGISTER_IN r5 1
eqv r3, r4, r5
blr
#_ REGISTER_OUT r3 0xfffffffffffffffe
#_ REGISTER_OUT r4 0
#_ REGISTER_OUT r5 1
test_eqv_2:
#_ REGISTER_IN r4 0xFFFFFFFFFFFFFFFF
#_ REGISTER_IN r5 0
eqv r3, r4, r5
blr
#_ REGISTER_OUT r3 0
#_ REGISTER_OUT r4 0xFFFFFFFFFFFFFFFF
#_ REGISTER_OUT r5 0
test_eqv_3:
#_ REGISTER_IN r4 0xFFFFFFFFFFFFFFFF
#_ REGISTER_IN r5 0xFFFFFFFFFFFFFFFF
eqv r3, r4, r5
blr
#_ REGISTER_OUT r3 0xFFFFFFFFFFFFFFFF
#_ REGISTER_OUT r4 0xFFFFFFFFFFFFFFFF
#_ REGISTER_OUT r5 0xFFFFFFFFFFFFFFFF
test_eqv_4:
#_ REGISTER_IN r4 0xDEADBEEFDEADBEEF
#_ REGISTER_IN r5 0xDEADBEEFDEADBEEF
eqv r3, r4, r5
blr
#_ REGISTER_OUT r3 0xFFFFFFFFFFFFFFFF
#_ REGISTER_OUT r4 0xDEADBEEFDEADBEEF
#_ REGISTER_OUT r5 0xDEADBEEFDEADBEEF
test_eqv_5:
#_ REGISTER_IN r4 0xDEADBEEFDEADBEEF
#_ REGISTER_IN r5 0xFFFFFFFFFFFFFFFF
eqv r3, r4, r5
blr
#_ REGISTER_OUT r3 0xDEADBEEFDEADBEEF
#_ REGISTER_OUT r4 0xDEADBEEFDEADBEEF
#_ REGISTER_OUT r5 0xFFFFFFFFFFFFFFFF
test_eqv_6:
#_ REGISTER_IN r4 0xDEADBEEFDEADBEEF
#_ REGISTER_IN r5 0
eqv r3, r4, r5
blr
#_ REGISTER_OUT r3 0x2152411021524110
#_ REGISTER_OUT r4 0xDEADBEEFDEADBEEF
#_ REGISTER_OUT r5 0