[polly] r276262 - tests: make test cases more robust using regexp

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 21 04:48:32 PDT 2016


Author: grosser
Date: Thu Jul 21 06:48:31 2016
New Revision: 276262

URL: http://llvm.org/viewvc/llvm-project?rev=276262&view=rev
Log:
tests: make test cases more robust using regexp

Modified:
    polly/trunk/test/Isl/CodeGen/MemAccess/update_access_functions.ll
    polly/trunk/test/Isl/CodeGen/scalar-store-from-same-bb.ll

Modified: polly/trunk/test/Isl/CodeGen/MemAccess/update_access_functions.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/Isl/CodeGen/MemAccess/update_access_functions.ll?rev=276262&r1=276261&r2=276262&view=diff
==============================================================================
--- polly/trunk/test/Isl/CodeGen/MemAccess/update_access_functions.ll (original)
+++ polly/trunk/test/Isl/CodeGen/MemAccess/update_access_functions.ll Thu Jul 21 06:48:31 2016
@@ -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"

Modified: polly/trunk/test/Isl/CodeGen/scalar-store-from-same-bb.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/Isl/CodeGen/scalar-store-from-same-bb.ll?rev=276262&r1=276261&r2=276262&view=diff
==============================================================================
--- polly/trunk/test/Isl/CodeGen/scalar-store-from-same-bb.ll (original)
+++ polly/trunk/test/Isl/CodeGen/scalar-store-from-same-bb.ll Thu Jul 21 06:48:31 2016
@@ -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:




More information about the llvm-commits mailing list