Now running up to the first required kernel call.

If memory address validation is turned off it runs a lot further.
This commit is contained in:
Ben Vanik
2013-01-28 03:03:37 -08:00
parent 46d5a0b51d
commit 5c2060af72
20 changed files with 342 additions and 91 deletions

BIN
test/codegen/extrwi.bin Executable file

Binary file not shown.

9
test/codegen/extrwi.dis Normal file
View File

@@ -0,0 +1,9 @@
extrwi.o: file format elf64-powerpc
Disassembly of section .text:
0000000082010000 <.text>:
82010000: 54 a7 ef 3e rlwinm r7,r5,29,28,31
82010004: 4e 80 00 20 blr

11
test/codegen/extrwi.s Normal file
View File

@@ -0,0 +1,11 @@
# This is a variant of rlwinmx:
# extrwi ra,rs,n,b (n > 0) == rlwinm ra,rs,b+n,32-n,31
# REGISTER_IN r5 0x30
# rlwinm r7, r5, 29, 28, 31
extrwi r7, r5, 4, 25
blr
# REGISTER_OUT r5 0x30
# REGISTER_OUT r7 0x06