mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
2c2e85536d
Mainly adding paranoid checks for the closing brace of a function to help with FileCheck error readability. Also some other minor changes. No actual CHECK changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180668 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
908 B
LLVM
28 lines
908 B
LLVM
; RUN: opt -S -objc-arc-contract < %s | FileCheck %s
|
|
|
|
; CHECK: define void @foo() {
|
|
; CHECK: %call = tail call i32* @qux()
|
|
; CHECK-NEXT: %tcall = bitcast i32* %call to i8*
|
|
; CHECK-NEXT: call void asm sideeffect "mov\09r7, r7\09\09@ marker for objc_retainAutoreleaseReturnValue", ""()
|
|
; CHECK-NEXT: %0 = tail call i8* @objc_retainAutoreleasedReturnValue(i8* %tcall) [[NUW:#[0-9]+]]
|
|
; CHECK: }
|
|
|
|
define void @foo() {
|
|
entry:
|
|
%call = tail call i32* @qux()
|
|
%tcall = bitcast i32* %call to i8*
|
|
%0 = tail call i8* @objc_retainAutoreleasedReturnValue(i8* %tcall) nounwind
|
|
tail call void @bar(i8* %0)
|
|
ret void
|
|
}
|
|
|
|
declare i32* @qux()
|
|
declare i8* @objc_retainAutoreleasedReturnValue(i8*)
|
|
declare void @bar(i8*)
|
|
|
|
!clang.arc.retainAutoreleasedReturnValueMarker = !{!0}
|
|
|
|
!0 = metadata !{metadata !"mov\09r7, r7\09\09@ marker for objc_retainAutoreleaseReturnValue"}
|
|
|
|
; CHECK: attributes [[NUW]] = { nounwind }
|