Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=x86_64-linux -mattr=-avx | FileCheck %s -check-prefix=X64
      2 ; X64-NOT:     movsq
      3 ; X64:     rep
      4 ; X64-NOT:     rep
      5 ; X64:     movsq
      6 ; X64-NOT:     movsq
      7 ; X64:     rep
      8 ; X64-NOT:     rep
      9 ; X64:     movsq
     10 ; X64-NOT:     rep
     11 ; X64-NOT:     movsq
     12 
     13 ; Win64 has not supported byval yet.
     14 
     15 ; RUN: llc < %s -march=x86 -mattr=-avx | FileCheck %s -check-prefix=X32
     16 ; X32-NOT:     movsl
     17 ; X32:     rep
     18 ; X32-NOT:     rep
     19 ; X32:     movsl
     20 ; X32-NOT:     movsl
     21 ; X32:     rep
     22 ; X32-NOT:     rep
     23 ; X32:     movsl
     24 ; X32-NOT:     rep
     25 ; X32-NOT:     movsl
     26 
     27 %struct.s = type { i16, i16, i16, i16, i16, i16, i16, i16,
     28                    i16, i16, i16, i16, i16, i16, i16, i16,
     29                    i16, i16, i16, i16, i16, i16, i16, i16,
     30                    i16, i16, i16, i16, i16, i16, i16, i16,
     31                    i16, i16, i16, i16, i16, i16, i16, i16,
     32                    i16, i16, i16, i16, i16, i16, i16, i16,
     33                    i16, i16, i16, i16, i16, i16, i16, i16,
     34                    i16, i16, i16, i16, i16, i16, i16, i16,
     35                    i16 }
     36 
     37 
     38 define void @g(i16 signext  %a1, i16 signext  %a2, i16 signext  %a3,
     39 	 i16 signext  %a4, i16 signext  %a5, i16 signext  %a6) nounwind {
     40 entry:
     41         %a = alloca %struct.s, align 16
     42         %tmp = getelementptr %struct.s, %struct.s* %a, i32 0, i32 0
     43         store i16 %a1, i16* %tmp, align 16
     44         %tmp2 = getelementptr %struct.s, %struct.s* %a, i32 0, i32 1
     45         store i16 %a2, i16* %tmp2, align 16
     46         %tmp4 = getelementptr %struct.s, %struct.s* %a, i32 0, i32 2
     47         store i16 %a3, i16* %tmp4, align 16
     48         %tmp6 = getelementptr %struct.s, %struct.s* %a, i32 0, i32 3
     49         store i16 %a4, i16* %tmp6, align 16
     50         %tmp8 = getelementptr %struct.s, %struct.s* %a, i32 0, i32 4
     51         store i16 %a5, i16* %tmp8, align 16
     52         %tmp10 = getelementptr %struct.s, %struct.s* %a, i32 0, i32 5
     53         store i16 %a6, i16* %tmp10, align 16
     54         call void @f( %struct.s* byval %a )
     55         call void @f( %struct.s* byval %a )
     56         ret void
     57 }
     58 
     59 declare void @f(%struct.s* byval)
     60