From 716103f1cdbe673b00f52d6682baa16e7a9e875e Mon Sep 17 00:00:00 2001 From: Lei Huang Date: Tue, 29 May 2018 13:38:56 +0000 Subject: [PowerPC] Fix the incorrect iterator inside peephole Instruction selection can insert nodes into the underlying list after the root node so iterating will thereby miss it. We should NOT assume that, the root node is the last element in the DAG nodelist. Patch by: steven.zhang (Qing Shan Zhang) Differential Revision: https://reviews.llvm.org/D47437 llvm-svn: 333415 --- llvm/test/CodeGen/PowerPC/ppcf128-endian.ll | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/test/CodeGen/PowerPC/ppcf128-endian.ll') diff --git a/llvm/test/CodeGen/PowerPC/ppcf128-endian.ll b/llvm/test/CodeGen/PowerPC/ppcf128-endian.ll index 93168853841..de86cd52782 100644 --- a/llvm/test/CodeGen/PowerPC/ppcf128-endian.ll +++ b/llvm/test/CodeGen/PowerPC/ppcf128-endian.ll @@ -43,10 +43,10 @@ entry: ; CHECK: .LCPI[[LC]]_1: ; CHECK: .long 0 ; CHECK: @caller_const -; CHECK: addi [[REG0:[0-9]+]], {{[0-9]+}}, .LCPI[[LC]]_0 -; CHECK: addi [[REG1:[0-9]+]], {{[0-9]+}}, .LCPI[[LC]]_1 -; CHECK: lfs 1, 0([[REG0]]) -; CHECK: lfs 2, 0([[REG1]]) +; CHECK: addis [[REG0:[0-9]+]], 2, .LCPI[[LC]]_0@toc@ha +; CHECK: addis [[REG1:[0-9]+]], 2, .LCPI[[LC]]_1@toc@ha +; CHECK: lfs 1, .LCPI[[LC]]_0@toc@l([[REG0]]) +; CHECK: lfs 2, .LCPI[[LC]]_1@toc@l([[REG1]]) ; CHECK: bl test define ppc_fp128 @result() { -- cgit v1.2.3