From: Johannes Doerfert Date: Sun, 21 Feb 2016 18:59:35 +0000 (+0000) Subject: Use regular expressions instead of temporary names for IR test [NFC] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91bb5bc86239dc1217926b39e6cb51adcba8f827;p=platform%2Fupstream%2Fllvm.git Use regular expressions instead of temporary names for IR test [NFC] llvm-svn: 261488 --- diff --git a/polly/test/Isl/CodeGen/exprModDiv.ll b/polly/test/Isl/CodeGen/exprModDiv.ll index 671d68c..ceedaa0 100644 --- a/polly/test/Isl/CodeGen/exprModDiv.ll +++ b/polly/test/Isl/CodeGen/exprModDiv.ll @@ -37,9 +37,9 @@ ; CHECK: %pexp.fdiv_q.2 = icmp slt i64 %p, 0 ; CHECK: %pexp.fdiv_q.3 = select i1 %pexp.fdiv_q.2, i64 %pexp.fdiv_q.1, i64 %p ; CHECK: %pexp.fdiv_q.4 = sdiv i64 %pexp.fdiv_q.3, 127 -; CHECK: %17 = mul nsw i64 127, %pexp.fdiv_q.4 -; CHECK: %18 = sub nsw i64 %p, %17 -; CHECK: %polly.access.A8 = getelementptr float, float* %A, i64 %18 +; CHECK: %[[r1:[0-9]*]] = mul nsw i64 127, %pexp.fdiv_q.4 +; CHECK: %[[r2:[0-9]*]] = sub nsw i64 %p, %[[r1]] +; CHECK: %polly.access.A8 = getelementptr float, float* %A, i64 %[[r2]] ; A[p / 127] ; CHECK: %pexp.div = sdiv exact i64 %p, 127 @@ -56,9 +56,9 @@ ; #define floord(n,d) ((n < 0) ? (n - d + 1) : n) / d ; A[p + 128 * floord(-p - 1, 128) + 128] ; POW2: %polly.fdiv_q.shr = ashr i64 %p, 7 -; POW2: %17 = mul nsw i64 128, %polly.fdiv_q.shr -; POW2: %18 = sub nsw i64 %p, %17 -; POW2: %polly.access.A8 = getelementptr float, float* %A, i64 %18 +; POW2: %[[r1:[0-9]*]] = mul nsw i64 128, %polly.fdiv_q.shr +; POW2: %[[r2:[0-9]*]] = sub nsw i64 %p, %[[r1]] +; POW2: %polly.access.A8 = getelementptr float, float* %A, i64 %[[r2]] ; A[p / 128] ; POW2: %pexp.div = sdiv exact i64 %p, 128