brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 432dcb3 Raw
39 lines · plain
1; RUN: llc < %s -mtriple=x86_64-pc-win32-coreclr | FileCheck %s -check-prefix=WIN_X642; RUN: llc < %s -mtriple=x86_64-pc-linux         | FileCheck %s -check-prefix=LINUX3 4%Object = type <{ ptr }>5 6define void @C1(ptr addrspace(1) %param0) gc "coreclr" {7entry:8 9; WIN_X64: # %bb.0:10; WIN_X64:	pushq	%rax11; LINUX:   # %bb.0:                                 # %entry12; LINUX:	movq	$0, -8(%rsp)13 14  %this = alloca ptr addrspace(1)15  store volatile ptr addrspace(1) null, ptr %this16  store volatile ptr addrspace(1) %param0, ptr %this17  br label %018 19; <label>:0                                       ; preds = %entry20  %1 = load ptr addrspace(1), ptr %this, align 821 22; WIN_X64:	xorl	%r8d, %r8d23; WIN_X64:	popq	%rax24; WIN_X64:	jmp	  C2                  # TAILCALL25; LINUX:	xorl	%edx, %edx26; LINUX:	jmp	C2                      # TAILCALL27 28  tail call void @C2(ptr addrspace(1) %1, i32 0, ptr addrspace(1) null)29  ret void30}31 32declare dso_local void @C2(ptr addrspace(1), i32, ptr addrspace(1))33 34; Function Attrs: nounwind35declare dso_local void @llvm.localescape(...) #036 37attributes #0 = { nounwind }38 39