Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin -mcpu=g5 | FileCheck %s
      2 ; Formerly incorrectly inserted vsldoi (endian confusion)
      3 
      4 @baz = common global <16 x i8> zeroinitializer    ; <<16 x i8>*> [#uses=1]
      5 
      6 define void @foo(<16 x i8> %x) nounwind ssp {
      7 entry:
      8 ; CHECK: _foo:
      9 ; CHECK-NOT: vsldoi
     10   %x_addr = alloca <16 x i8>                      ; <<16 x i8>*> [#uses=2]
     11   %temp = alloca <16 x i8>                        ; <<16 x i8>*> [#uses=2]
     12   %"alloca point" = bitcast i32 0 to i32          ; <i32> [#uses=0]
     13   store <16 x i8> %x, <16 x i8>* %x_addr
     14   store <16 x i8> <i8 0, i8 0, i8 0, i8 14, i8 0, i8 0, i8 0, i8 14, i8 0, i8 0, i8 0, i8 14, i8 0, i8 0, i8 0, i8 14>, <16 x i8>* %temp, align 16
     15   %0 = load <16 x i8>* %x_addr, align 16          ; <<16 x i8>> [#uses=1]
     16   %1 = load <16 x i8>* %temp, align 16            ; <<16 x i8>> [#uses=1]
     17   %tmp = add <16 x i8> %0, %1                     ; <<16 x i8>> [#uses=1]
     18   store <16 x i8> %tmp, <16 x i8>* @baz, align 16
     19   br label %return
     20 
     21 return:                                           ; preds = %entry
     22   ret void
     23 ; CHECK: blr
     24 }
     25