From 0772eec4b159e386cc039dba1686e069ad25c320 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sun, 7 Jun 2015 13:15:20 -0500 Subject: [PATCH] Fixing branches to the test function in the jumptable constants test. --- src/xenia/cpu/frontend/test/jumptable_constants.s | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/xenia/cpu/frontend/test/jumptable_constants.s b/src/xenia/cpu/frontend/test/jumptable_constants.s index cb4d29973..b1cb620ab 100644 --- a/src/xenia/cpu/frontend/test/jumptable_constants.s +++ b/src/xenia/cpu/frontend/test/jumptable_constants.s @@ -1,10 +1,10 @@ the_function: cmpwi cr6, r3, 3 bgt .case_3 - lis r12, .the_table@h - addi r12, r12, .the_table@l + lis r11, .the_table@h + addi r11, r11, .the_table@l slwi r3, r3, 2 - lwzx r3, r12, r3 + lwzx r3, r11, r3 mtspr ctr, r3 bctr .the_table: @@ -30,6 +30,7 @@ the_function: blr test_jumptable_constants: + mfspr r12, lr li r3, 0 li r4, 1024 bl the_function @@ -42,4 +43,5 @@ test_jumptable_constants: li r3, 3 li r4, 1024 bl the_function + mtspr lr, r12 blr