[Git][reproducible-builds/diffoscope][master] Fix testsuite under LLVM >= 7.0. (Closes: #908074)
Chris Lamb
gitlab at salsa.debian.org
Mon Sep 10 19:11:38 CEST 2018
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
f29fdd9e by Chris Lamb at 2018-09-10T17:11:15Z
Fix testsuite under LLVM >= 7.0. (Closes: #908074)
- - - - -
2 changed files:
- tests/comparators/test_rlib.py
- + tests/data/rlib_llvm_dis_expected_diff_7
Changes:
=====================================
tests/comparators/test_rlib.py
=====================================
@@ -63,6 +63,9 @@ def rlib_dis_expected_diff():
if (LooseVersion(str(actual_ver)) >= LooseVersion("5.0")):
diff_file = 'rlib_llvm_dis_expected_diff_5'
+ if (LooseVersion(str(actual_ver)) >= LooseVersion("7.0")):
+ diff_file = 'rlib_llvm_dis_expected_diff_7'
+
return get_data(diff_file)
=====================================
tests/data/rlib_llvm_dis_expected_diff_7
=====================================
@@ -0,0 +1,36 @@
+@@ -41,32 +41,32 @@
+ entry-block:
+ %out.i.i = alloca i8*, align 8
+ %4 = icmp ult i64 %3, 17
+ br i1 %4, label %then-block-195-.i, label %_ZN12alloc_system3imp8allocate17h8ba7625cc4a820e8E.exit.i
+
+ then-block-195-.i: ; preds = %entry-block
+ %5 = tail call i8* @realloc(i8* %0, i64 %2) #2
+- br label %_ZN12alloc_system3imp10reallocate17h4a0811c9ec086854E.exit
++ br label %_ZN12alloc_system3imp10reallocate1l44a0811c9ec086854E.exit
+
+ _ZN12alloc_system3imp8allocate17h8ba7625cc4a820e8E.exit.i: ; preds = %entry-block
+ %6 = bitcast i8** %out.i.i to i8*
+ call void @llvm.lifetime.start.p0i8(i64 8, i8* %6) #2
+ store i8* null, i8** %out.i.i, align 8
+ %7 = call i32 @posix_memalign(i8** nonnull %out.i.i, i64 %3, i64 %2) #2
+ %8 = icmp eq i32 %7, 0
+ %9 = load i8*, i8** %out.i.i, align 8
+ %sret_slot.0.i.i = select i1 %8, i8* %9, i8* null
+ call void @llvm.lifetime.end.p0i8(i64 8, i8* %6) #2
+ %10 = icmp ule i64 %2, %1
+ %11 = select i1 %10, i64 %2, i64 %1
+ call void @llvm.memmove.p0i8.p0i8.i64(i8* align 1 %sret_slot.0.i.i, i8* align 1 %0, i64 %11, i1 false)
+ call void @free(i8* %0) #2
+- br label %_ZN12alloc_system3imp10reallocate17h4a0811c9ec086854E.exit
++ br label %_ZN12alloc_system3imp10reallocate1l44a0811c9ec086854E.exit
+
+-_ZN12alloc_system3imp10reallocate17h4a0811c9ec086854E.exit: ; preds = %_ZN12alloc_system3imp8allocate17h8ba7625cc4a820e8E.exit.i, %then-block-195-.i
++_ZN12alloc_system3imp10reallocate1l44a0811c9ec086854E.exit: ; preds = %_ZN12alloc_system3imp8allocate17h8ba7625cc4a820e8E.exit.i, %then-block-195-.i
+ %sret_slot.0.i = phi i8* [ %5, %then-block-195-.i ], [ %sret_slot.0.i.i, %_ZN12alloc_system3imp8allocate17h8ba7625cc4a820e8E.exit.i ]
+ ret i8* %sret_slot.0.i
+ }
+
+ ; Function Attrs: nounwind readnone uwtable
+ define i64 @__rust_reallocate_inplace(i8* nocapture readnone, i64, i64, i64) unnamed_addr #1 {
+ entry-block:
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/f29fdd9ef337296225790ccb7eb8bf2d75a33c8a
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/f29fdd9ef337296225790ccb7eb8bf2d75a33c8a
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20180910/4ed3b0b8/attachment.html>
More information about the rb-commits
mailing list