summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/ppc64-func-desc-hoist.ll
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2015-01-19 07:20:27 +0000
committerHal Finkel <hfinkel@anl.gov>2015-01-19 07:20:27 +0000
commitd1f16564477965263b231f953116f223159b8b4e (patch)
tree3443b3e7e6966fa149758e407886a3d3d70dfc03 /test/CodeGen/PowerPC/ppc64-func-desc-hoist.ll
parent6f91bd79f3782557186b6420eb6a331e154a4d9b (diff)
[PowerPC] Add r2 as an operand for all calls under both PPC64 ELF V1 and V2
Our PPC64 ELF V2 call lowering logic added r2 as an operand to all direct call instructions in order to represent the dependency on the TOC base pointer value. Restricting this to ELF V2, however, does not seem to make sense: calls under ELF V1 have the same dependence, and indirect calls have an r2 dependence just as direct ones. Make sure the dependence is noted for all calls under both ELF V1 and ELF V2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/ppc64-func-desc-hoist.ll')
-rw-r--r--test/CodeGen/PowerPC/ppc64-func-desc-hoist.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/PowerPC/ppc64-func-desc-hoist.ll b/test/CodeGen/PowerPC/ppc64-func-desc-hoist.ll
index 687fb9dde29..57577f90109 100644
--- a/test/CodeGen/PowerPC/ppc64-func-desc-hoist.ll
+++ b/test/CodeGen/PowerPC/ppc64-func-desc-hoist.ll
@@ -15,10 +15,10 @@ entry:
; INVFUNCDESC-DAG: ld [[REG3:[0-9]+]], 0(3)
; INVFUNCDESC: %for.body
+; INVFUNCDESC: std 2, 40(1)
; INVFUNCDESC-DAG: mtctr [[REG3]]
; INVFUNCDESC-DAG: mr 11, [[REG2]]
-; INVFUNCDESC-DAG: std 2, 40(1)
-; INVFUNCDESC: mr 2, [[REG1]]
+; INVFUNCDESC-DAG: mr 2, [[REG1]]
; INVFUNCDESC: bctrl
; INVFUNCDESC-NEXT: ld 2, 40(1)