~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/Hexagon/circ_ldw.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 -march=hexagon -mcpu=hexagonv5 < %s | FileCheck %s
 
2
; CHECK:  r{{[0-9]*}} = memw(r{{[0-9]*.}}++{{.}}#-4:circ(m0))
 
3
 
 
4
 
 
5
%union.vect64 = type { i64 }
 
6
%union.vect32 = type { i32 }
 
7
 
 
8
define i32* @HallowedBeThyName(%union.vect64* nocapture %pRx, %union.vect32* %pLut, %union.vect64* nocapture %pOut, i64 %dc.coerce, i32 %shift, i32 %numSamples) nounwind {
 
9
entry:
 
10
  %vLutNext = alloca i32, align 4
 
11
  %0 = bitcast %union.vect32* %pLut to i8*
 
12
  %1 = bitcast i32* %vLutNext to i8*
 
13
  %2 = call i8* @llvm.hexagon.circ.ldw(i8* %0, i8* %1, i32 83886144, i32 -4)
 
14
  %3 = bitcast i8* %2 to i32*
 
15
  ret i32* %3
 
16
}
 
17
 
 
18
declare i8* @llvm.hexagon.circ.ldw(i8*, i8*, i32, i32) nounwind