summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-08-24 20:21:49 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-08-24 20:21:49 +0000
commit45d8dbc92d365e9c0a08ceb0bc7a9014e6064bdb (patch)
treea4cf62db30e1b44c00a4f0d1a3fd8921009ebf16 /test
parent6adeb67b33d718767ff25e935fbfafff8e5584e0 (diff)
downloadllvm-45d8dbc92d365e9c0a08ceb0bc7a9014e6064bdb.tar.gz
llvm-45d8dbc92d365e9c0a08ceb0bc7a9014e6064bdb.tar.bz2
llvm-45d8dbc92d365e9c0a08ceb0bc7a9014e6064bdb.tar.xz
In MipsDAGToDAGISel::SelectAddr, fold add node into address operand, if its
second operand is MipsISD::GPRel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162584 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Mips/small-section-reserve-gp.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/Mips/small-section-reserve-gp.ll b/test/CodeGen/Mips/small-section-reserve-gp.ll
index fc251cb612..03503fb2ae 100644
--- a/test/CodeGen/Mips/small-section-reserve-gp.ll
+++ b/test/CodeGen/Mips/small-section-reserve-gp.ll
@@ -5,7 +5,7 @@
define i32 @geti() nounwind readonly {
entry:
-; CHECK: addiu ${{[0-9]+}}, $gp, %gp_rel(i)
+; CHECK: lw ${{[0-9]+}}, %gp_rel(i)($gp)
%0 = load i32* @i, align 4
ret i32 %0
}