brintos

brintos / llvm-project-archived public Read only

0
0
Text · 858 B · 6a26ded Raw
26 lines · plain
1; RUN: opt < %s -passes=instcombine -disable-output2; Checks that bitcasts are not converted into GEP when3; when the size of an aggregate cannot be determined.4%swift.opaque = type opaque5%SQ = type <{ [8 x i8] }>6%Si = type <{ i64 }>7 8%V = type <{ <{ %Vs4Int8, %Vs4Int8, %Vs4Int8, %Vs4Int8, %Vs4Int8, %Vs4Int8, %Vs4Int8, %Vs4Int8 }>, %Si, %SQ, %SQ, %Si, %swift.opaque }>9%Vs4Int8 = type <{ i8 }>10%swift.type = type { i64 }11 12declare void @llvm.memcpy.p0.p0.i64(ptr nocapture, ptr nocapture readonly, i64, i1) #813 14@_swift_slowAlloc = external global ptr15 16declare ptr @rt_swift_slowAlloc(i64, i64)17 18define  ptr @_TwTkV(ptr %dest, ptr %src,19ptr %bios_boot_params) #0 {20entry:21  %0 = call noalias ptr @rt_swift_slowAlloc(i64 40, i64 0) #1122  store ptr %0, ptr %dest, align 823  call void @llvm.memcpy.p0.p0.i64(ptr %0, ptr %src, i64 40, i1 false)24  ret ptr %025}26