Home | History | Annotate | Download | only in X86
      1 ; 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.
      7 define 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 
     12 ; CHECK: test1:
     13 ; CHECK: andl $-16, %esp
     14 ; CHECK: movl %esp, %esi
     15 ; CHECK-NOT: rep;movsl
     16 }
     17 
     18 declare void @bar(i8* nocapture, %struct.foo* align 4 byval) nounwind
     19