[Git][reproducible-builds/diffoscope][master] Fix rlib test failure with LLVM 15
Mattia Rizzolo (@mattia)
gitlab at salsa.debian.org
Mon Oct 3 10:49:54 UTC 2022
Mattia Rizzolo pushed to branch master at Reproducible Builds / diffoscope
Commits:
154ad453 by Mattia Rizzolo at 2022-10-03T12:49:12+02:00
Fix rlib test failure with LLVM 15
Thanks: Gianfranco Costamagna <locutusofborg at debian.org> for the patch
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
- - - - -
2 changed files:
- tests/comparators/test_rlib.py
- + tests/data/rlib_llvm_dis_expected_diff_15
Changes:
=====================================
tests/comparators/test_rlib.py
=====================================
@@ -83,6 +83,9 @@ def rlib_dis_expected_diff():
if actual_ver >= "10.0":
diff_file = "rlib_llvm_dis_expected_diff_10"
+ if actual_ver >= "15.0":
+ diff_file = "rlib_llvm_dis_expected_diff_15"
+
return get_data(diff_file)
=====================================
tests/data/rlib_llvm_dis_expected_diff_15
=====================================
@@ -0,0 +1,36 @@
+@@ -42,32 +42,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) #2
+ 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 %0, i64 %1, i64 %2, i64 %3) unnamed_addr #1 {
+ entry-block:
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/154ad453a9cd10064745b4a567b087bbd0a2f9ec
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/154ad453a9cd10064745b4a567b087bbd0a2f9ec
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/20221003/21d9f450/attachment.htm>
More information about the rb-commits
mailing list