xref: /llvm-project/llvm/test/Bitcode/upgrade-arc-runtime-calls-bitcast.ll (revision e45cf479231fc144b4e1eb8b3e3bd2f578b6907d)
1target triple = "arm64-apple-ios7.0"
2
3; RUN: llvm-dis < %S/upgrade-arc-runtime-calls-bitcast.bc | FileCheck %s
4
5; CHECK: tail call ptr @objc_retain(i32 1)
6; CHECK: tail call ptr @objc_storeStrong(
7
8define void @testRuntimeCalls(i8* %a, i8** %b) {
9  %v6 = tail call i8* @objc_retain(i32 1)
10  %1 = tail call i8* @objc_storeStrong(i8** %b, i8* %a)
11  ret void
12}
13
14declare i8* @objc_retain(i32)
15declare i8* @objc_storeStrong(i8**, i8*)
16
17attributes #0 = { nounwind }
18
19!llvm.module.flags = !{!0}
20
21!0 = !{i32 1, !"clang.arc.retainAutoreleasedReturnValueMarker", !"mov\09fp, fp\09\09; marker for objc_retainAutoreleaseReturnValue"}
22