23 lines · plain
1; RUN: llvm-as < %s > %t12; RUN: llvm-as < %p/Inputs/remangle_intrinsics.ll > %t23; RUN: llvm-lto %t1 %t2 | FileCheck %s4 5; We have "struct.rtx_def" type in both modules being LTOed. Both modules use6; an overloaded intrinsic which has this type in its signature/name. When7; modules are loaded one of the types is renamed to "struct.rtx_def.0".8; The intrinsic which uses this type should be remangled/renamed as well.9; If we didn't do that verifier would complain.10 11; CHECK: Wrote native object file12 13target triple = "x86_64-unknown-linux-gnu"14 15%struct.rtx_def = type { i16 }16 17define void @foo(ptr %a, i8 %b, i32 %c) {18 call void @llvm.memset.p0.rtx_def.i32(ptr align 4 %a, i8 %b, i32 %c, i1 true)19 ret void20}21 22declare void @llvm.memset.p0.rtx_def.i32(ptr, i8, i32, i1)23