Skip to content
Snippets Groups Projects
Verified Commit 154ad453 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

Fix rlib test failure with LLVM 15


Thanks: Gianfranco Costamagna <locutusofborg@debian.org> for the patch
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 5db5344c
No related branches found
No related tags found
No related merge requests found
Pipeline #434568 failed
......@@ -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)
......
@@ -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:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment