• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s | FileCheck %s
2target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
3target triple = "i386-pc-windows-msvc"
4
5define x86_fastcallcc i32 @test1(i32 inreg %V, [65533 x i8]* byval %p_arg) {
6  ret i32 %V
7}
8; CHECK-LABEL: @test1@65540:
9; CHECK:      movl %ecx, %eax
10; CHECK-NEXT: popl %ecx
11; CHECK-NEXT: addl $65536, %esp
12; CHECK-NEXT: pushl %ecx
13; CHECK-NEXT: retl
14
15define x86_stdcallcc void @test2([65533 x i8]* byval %p_arg) {
16  ret void
17}
18; CHECK-LABEL: _test2@65536:
19; CHECK:      popl %ecx
20; CHECK-NEXT: addl $65536, %esp
21; CHECK-NEXT: pushl %ecx
22; CHECK-NEXT: retl
23