aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips/eh-return32.ll
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-04-02 23:02:07 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-04-02 23:02:07 +0000
commit67fdafe1cd2c25aa1d245b4becf93324c08ec93e (patch)
tree4f8a7be481ed205b46d3e35a5c9fe2377d3c71a6 /test/CodeGen/Mips/eh-return32.ll
parentc656fda3aeba9fd8b09d98ed72e75b6c25a1ad49 (diff)
downloadexternal_llvm-67fdafe1cd2c25aa1d245b4becf93324c08ec93e.zip
external_llvm-67fdafe1cd2c25aa1d245b4becf93324c08ec93e.tar.gz
external_llvm-67fdafe1cd2c25aa1d245b4becf93324c08ec93e.tar.bz2
[mips] Small update to the implementation of eh.return for Mips.
This patch initializes t9 to the handler address, but only if the relocation model is pic. This handles the case where handler to which eh.return jumps points to the start of the function. Patch by Sasa Stankovic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178588 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/eh-return32.ll')
-rw-r--r--test/CodeGen/Mips/eh-return32.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/eh-return32.ll b/test/CodeGen/Mips/eh-return32.ll
index fe8a404..c3003b3 100644
--- a/test/CodeGen/Mips/eh-return32.ll
+++ b/test/CodeGen/Mips/eh-return32.ll
@@ -37,7 +37,9 @@ entry:
; CHECK: lw $7, [[offset3]]($sp)
; check that stack is adjusted by $v1 and that code returns to address in $v0
+; also check that $25 contains handler value
; CHECK: addiu $sp, $sp, [[spoffset]]
+; CHECK: move $25, $2
; CHECK: move $ra, $2
; CHECK: jr $ra
; CHECK: addu $sp, $sp, $3
@@ -74,7 +76,9 @@ entry:
; CHECK: lw $7, [[offset3]]($sp)
; check that stack is adjusted by $v1 and that code returns to address in $v0
+; also check that $25 contains handler value
; CHECK: addiu $sp, $sp, [[spoffset]]
+; CHECK: move $25, $2
; CHECK: move $ra, $2
; CHECK: jr $ra
; CHECK: addu $sp, $sp, $3