1 ; RUN: llc < %s -mtriple=x86_64-pc-win32-coreclr | FileCheck %s -check-prefix=WIN_X64
2 ; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s -check-prefix=LINUX
4 %Object = type <{ ptr }>
6 define void @C1(ptr addrspace(1) %param0) gc "coreclr" {
11 ; LINUX: # %bb.0: # %entry
12 ; LINUX: movq $0, -8(%rsp)
14 %this = alloca ptr addrspace(1)
15 store volatile ptr addrspace(1) null, ptr %this
16 store volatile ptr addrspace(1) %param0, ptr %this
19 ; <label>:0 ; preds = %entry
20 %1 = load ptr addrspace(1), ptr %this, align 8
22 ; WIN_X64: xorl %r8d, %r8d
24 ; WIN_X64: jmp C2 # TAILCALL
25 ; LINUX: xorl %edx, %edx
26 ; LINUX: jmp C2 # TAILCALL
28 tail call void @C2(ptr addrspace(1) %1, i32 0, ptr addrspace(1) null)
32 declare dso_local void @C2(ptr addrspace(1), i32, ptr addrspace(1))
34 ; Function Attrs: nounwind
35 declare dso_local void @llvm.localescape(...) #0
37 attributes #0 = { nounwind }