summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WebAssembly/negative-base-reg.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/negative-base-reg.ll')
-rw-r--r--llvm/test/CodeGen/WebAssembly/negative-base-reg.ll9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/negative-base-reg.ll b/llvm/test/CodeGen/WebAssembly/negative-base-reg.ll
index fc3a287f585..16b4a15a44b 100644
--- a/llvm/test/CodeGen/WebAssembly/negative-base-reg.ll
+++ b/llvm/test/CodeGen/WebAssembly/negative-base-reg.ll
@@ -1,7 +1,7 @@
; RUN: llc < %s -asm-verbose=false -verify-machineinstrs -disable-wasm-fallthrough-return-opt | FileCheck %s
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
-target triple = "wasm32---elf"
+target triple = "wasm32-unknown-unknown"
@args = hidden local_unnamed_addr global [32 x i32] zeroinitializer, align 16
@@ -10,7 +10,8 @@ define hidden i32 @main() local_unnamed_addr #0 {
; If LSR stops selecting a negative base reg value, then this test will no
; longer be useful as written.
-; CHECK: i32.const $0=, -128
+; CHECK: i32.const $push[[L0:[0-9]+]]=, -128
+; CHECK-NEXT: set_local 0, $pop[[L0]]
entry:
br label %for.body
@@ -18,8 +19,8 @@ for.body: ; preds = %for.body, %entry
%i.04 = phi i32 [ 0, %entry ], [ %inc, %for.body ]
; The offset should not be folded into the store.
; CHECK: i32.const $push{{[0-9]+}}=, args+128
-; CHECK: i32.add
-; CHECK: i32.store 0(
+; CHECK: i32.add $push[[L1:[0-9]+]]=,
+; CHECK: i32.store 0($pop[[L1]])
%arrayidx = getelementptr inbounds [32 x i32], [32 x i32]* @args, i32 0, i32 %i.04
store i32 1, i32* %arrayidx, align 4, !tbaa !1
%inc = add nuw nsw i32 %i.04, 1
OpenPOWER on IntegriCloud