[polly] r261488 - Use regular expressions instead of temporary names for IR test [NFC]
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 21 10:59:36 PST 2016
Author: jdoerfert
Date: Sun Feb 21 12:59:35 2016
New Revision: 261488
URL: http://llvm.org/viewvc/llvm-project?rev=261488&view=rev
Log:
Use regular expressions instead of temporary names for IR test [NFC]
Modified:
polly/trunk/test/Isl/CodeGen/exprModDiv.ll
Modified: polly/trunk/test/Isl/CodeGen/exprModDiv.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/Isl/CodeGen/exprModDiv.ll?rev=261488&r1=261487&r2=261488&view=diff
==============================================================================
--- polly/trunk/test/Isl/CodeGen/exprModDiv.ll (original)
+++ polly/trunk/test/Isl/CodeGen/exprModDiv.ll Sun Feb 21 12:59:35 2016
@@ -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
More information about the llvm-commits
mailing list