summaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2018-06-28 07:11:48 +0000
committerTobias Grosser <tobias@grosser.es>2018-06-28 07:11:48 +0000
commit80f05eedcbfc688a1ce92d39b76f5fffb79f3009 (patch)
tree2ed30c786d2ad7aeac5569075503f7d3b9189466 /polly
parentc81c00de97c3cf374c5bc3b1be8b9e27a969e7f5 (diff)
test: use regex matchers to make test-case robust against register renumberings
Suggested-by: Michael Kruse
Diffstat (limited to 'polly')
-rw-r--r--polly/test/ScopInfo/int2ptr_ptr2int.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/test/ScopInfo/int2ptr_ptr2int.ll b/polly/test/ScopInfo/int2ptr_ptr2int.ll
index 18f62d439bb..350e6401d1f 100644
--- a/polly/test/ScopInfo/int2ptr_ptr2int.ll
+++ b/polly/test/ScopInfo/int2ptr_ptr2int.ll
@@ -19,7 +19,7 @@
; IR: polly.stmt.for.body:
; IR-NEXT: %p_tmp = ptrtoint i64* %scevgep to i64
; IR-NEXT: %p_add = add nsw i64 %p_tmp, 1
-; IR-NEXT: %p_tmp1 = inttoptr i64 %14 to i64*
+; IR-NEXT: %p_tmp1 = inttoptr i64 %[[r1:[a-zA-Z0-9]*]] to i64*
; IR-NEXT: %p_add.ptr2 = getelementptr inbounds i64, i64* %p_tmp1, i64 1
; IR-NEXT: %p_tmp2 = ptrtoint i64* %p_add.ptr2 to i64
; IR-NEXT: %p_arrayidx = getelementptr inbounds i64, i64* %A, i64 %p_tmp2
@@ -31,7 +31,7 @@
;
; IR: polly.loop_preheader:
; IR-NEXT: %scevgep = getelementptr i64, i64* %ptr, i32 1
-; IR-NEXT: %14 = add i64 %val, 1
+; IR-NEXT: %[[r1]] = add i64 %val, 1
; IR-NEXT: br label %polly.loop_header
;
target datalayout = "e-p:32:32:32-m:e-i64:64-f80:128-n8:16:32:64-S128"