Tests for nor and neg.
This commit is contained in:
BIN
src/alloy/frontend/ppc/test/bin/instr_neg.bin
Normal file
BIN
src/alloy/frontend/ppc/test/bin/instr_neg.bin
Normal file
Binary file not shown.
17
src/alloy/frontend/ppc/test/bin/instr_neg.dis
Normal file
17
src/alloy/frontend/ppc/test/bin/instr_neg.dis
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
/vagrant/src/alloy/frontend/ppc/test/bin//instr_neg.o: file format elf64-powerpc
|
||||||
|
|
||||||
|
|
||||||
|
Disassembly of section .text:
|
||||||
|
|
||||||
|
0000000000100000 <test_neg_1>:
|
||||||
|
100000: 7c 63 00 d0 neg r3,r3
|
||||||
|
100004: 4e 80 00 20 blr
|
||||||
|
|
||||||
|
0000000000100008 <test_neg_2>:
|
||||||
|
100008: 7c 63 00 d0 neg r3,r3
|
||||||
|
10000c: 4e 80 00 20 blr
|
||||||
|
|
||||||
|
0000000000100010 <test_neg_3>:
|
||||||
|
100010: 7c 63 00 d0 neg r3,r3
|
||||||
|
100014: 4e 80 00 20 blr
|
||||||
3
src/alloy/frontend/ppc/test/bin/instr_neg.map
Normal file
3
src/alloy/frontend/ppc/test/bin/instr_neg.map
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
0000000000000000 t test_neg_1
|
||||||
|
0000000000000008 t test_neg_2
|
||||||
|
0000000000000010 t test_neg_3
|
||||||
BIN
src/alloy/frontend/ppc/test/bin/instr_nor.bin
Normal file
BIN
src/alloy/frontend/ppc/test/bin/instr_nor.bin
Normal file
Binary file not shown.
14
src/alloy/frontend/ppc/test/bin/instr_nor.dis
Normal file
14
src/alloy/frontend/ppc/test/bin/instr_nor.dis
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
/vagrant/src/alloy/frontend/ppc/test/bin//instr_nor.o: file format elf64-powerpc
|
||||||
|
|
||||||
|
|
||||||
|
Disassembly of section .text:
|
||||||
|
|
||||||
|
0000000000100000 <test_nor_cr_1>:
|
||||||
|
100000: 7c 63 18 f9 not. r3,r3
|
||||||
|
100004: 38 60 00 00 li r3,0
|
||||||
|
100008: 40 82 00 08 bne 100010 <.nor_cr_1_ne>
|
||||||
|
10000c: 38 60 00 01 li r3,1
|
||||||
|
|
||||||
|
0000000000100010 <.nor_cr_1_ne>:
|
||||||
|
100010: 4e 80 00 20 blr
|
||||||
2
src/alloy/frontend/ppc/test/bin/instr_nor.map
Normal file
2
src/alloy/frontend/ppc/test/bin/instr_nor.map
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
0000000000000000 t test_nor_cr_1
|
||||||
|
0000000000000010 t .nor_cr_1_ne
|
||||||
17
src/alloy/frontend/ppc/test/instr_neg.s
Normal file
17
src/alloy/frontend/ppc/test/instr_neg.s
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
test_neg_1:
|
||||||
|
#_ REGISTER_IN r3 0x0000000080000000
|
||||||
|
neg r3, r3
|
||||||
|
blr
|
||||||
|
#_ REGISTER_OUT r3 0xFFFFFFFF80000000
|
||||||
|
|
||||||
|
test_neg_2:
|
||||||
|
#_ REGISTER_IN r3 0x8000000000000000
|
||||||
|
neg r3, r3
|
||||||
|
blr
|
||||||
|
#_ REGISTER_OUT r3 0x8000000000000000
|
||||||
|
|
||||||
|
test_neg_3:
|
||||||
|
#_ REGISTER_IN r3 0x0000000000000005
|
||||||
|
neg r3, r3
|
||||||
|
blr
|
||||||
|
#_ REGISTER_OUT r3 0xFFFFFFFFFFFFFFFB
|
||||||
9
src/alloy/frontend/ppc/test/instr_nor.s
Normal file
9
src/alloy/frontend/ppc/test/instr_nor.s
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
test_nor_cr_1:
|
||||||
|
#_ REGISTER_IN r3 0x00000000FFFFFFFF
|
||||||
|
nor. r3, r3, r3
|
||||||
|
li r3, 0
|
||||||
|
bne .nor_cr_1_ne
|
||||||
|
li r3, 1
|
||||||
|
.nor_cr_1_ne:
|
||||||
|
blr
|
||||||
|
#_ REGISTER_OUT r3 1
|
||||||
Reference in New Issue
Block a user