blob: 87bb85fad83e99a48ad094eff938971dd0a24911 [file] [log] [blame]
Benjamin Kramer8e2637e2013-02-13 13:40:35 +00001; RUN: llc < %s -force-align-stack -mtriple i386-apple-darwin -mcpu=i486 | FileCheck %s
2
3%struct.foo = type { [88 x i8] }
4
5; PR15249
6; We can't use rep;movsl here because it clobbers the base pointer in %esi.
7define void @test1(%struct.foo* nocapture %x, i32 %y) nounwind {
8 %dynalloc = alloca i8, i32 %y, align 1
9 call void @bar(i8* %dynalloc, %struct.foo* align 4 byval %x)
10 ret void
11
Stephen Linf799e3f2013-07-13 20:38:47 +000012; CHECK-LABEL: test1:
Benjamin Kramer8e2637e2013-02-13 13:40:35 +000013; CHECK: andl $-16, %esp
14; CHECK: movl %esp, %esi
15; CHECK-NOT: rep;movsl
16}
17
18declare void @bar(i8* nocapture, %struct.foo* align 4 byval) nounwind