~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/PowerPC/vec_splat_constant.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>, <16 x i8>* %x_addr, align 16          ; <<16 x i8>> [#uses=1]
 
16
  %1 = load <16 x i8>, <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
}