1 ; RUN: opt < %s -inline -S | not grep "tail call void @llvm.memcpy.p0i8.p0i8.i32"
4 define internal void @foo(i32* %p, i32* %q) {
7 %pp = bitcast i32* %p to i8*
8 %qq = bitcast i32* %q to i8*
9 tail call void @llvm.memcpy.p0i8.p0i8.i32(i8* %pp, i8* %qq, i32 4, i1 false)
13 define i32 @main() personality i32 (...)* @__gxx_personality_v0 {
14 ; CHECK-LABEL: define i32 @main() personality i32 (...)* @__gxx_personality_v0
18 store i32 1, i32* %a, align 4
19 store i32 0, i32* %b, align 4
20 invoke void @foo(i32* %a, i32* %b)
21 to label %invcont unwind label %lpad
25 ; CHECK: call void @llvm.memcpy.p0i8.p0i8.i32
29 %retval = load i32, i32* %a, align 4
33 %exn = landingpad {i8*, i32}
38 declare i32 @__gxx_personality_v0(...)
40 declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i1) nounwind