From 212469e0eda1534d07a3ff39d7e2b8e13a4ee6c3 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Thu, 21 Jul 2016 11:48:31 +0000 Subject: [PATCH] tests: make test cases more robust using regexp llvm-svn: 276262 --- polly/test/Isl/CodeGen/MemAccess/update_access_functions.ll | 6 +++--- polly/test/Isl/CodeGen/scalar-store-from-same-bb.ll | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/polly/test/Isl/CodeGen/MemAccess/update_access_functions.ll b/polly/test/Isl/CodeGen/MemAccess/update_access_functions.ll index 4c1b398..00b3fef 100644 --- a/polly/test/Isl/CodeGen/MemAccess/update_access_functions.ll +++ b/polly/test/Isl/CodeGen/MemAccess/update_access_functions.ll @@ -14,9 +14,9 @@ ; CHECK-LABEL: polly.stmt.loop3: ; CHECK-NEXT: %val.s2a.reload = load double, double* %val.s2a -; CHECK-NEXT: %7 = mul nsw i64 13, %polly.indvar16 -; CHECK-NEXT: %8 = add nsw i64 %7, 5 -; CHECK-NEXT: %polly.access.A20 = getelementptr double, double* %A, i64 %8 +; CHECK-NEXT: [[REG0:%.*]] = mul nsw i64 13, %polly.indvar16 +; CHECK-NEXT: [[REG1:%.*]] = add nsw i64 [[REG0]], 5 +; CHECK-NEXT: %polly.access.A20 = getelementptr double, double* %A, i64 [[REG1]] ; CHECK-NEXT: store double %val.s2a.reload, double* %polly.access.A20, align 8, target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/polly/test/Isl/CodeGen/scalar-store-from-same-bb.ll b/polly/test/Isl/CodeGen/scalar-store-from-same-bb.ll index a3b45ae..74e854f 100644 --- a/polly/test/Isl/CodeGen/scalar-store-from-same-bb.ll +++ b/polly/test/Isl/CodeGen/scalar-store-from-same-bb.ll @@ -4,8 +4,8 @@ ; This test ensures that the expression N + 1 that is stored in the phi-node ; alloca, is directly computed and not incorrectly transfered through memory. -; CHECK: store i64 %2, i64* %res.phiops -; CHECK: %2 = add i64 %N, 1 +; CHECK: store i64 [[REG:%.*]], i64* %res.phiops +; CHECK: [[REG]] = add i64 %N, 1 define i64 @foo(float* %A, i64 %N) { entry: -- 2.7.4