File: dpas.ll

package info (click to toggle)
intel-graphics-compiler 1.0.17791.18-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 102,312 kB
  • sloc: cpp: 935,343; lisp: 286,143; ansic: 16,196; python: 3,279; yacc: 2,487; lex: 1,642; pascal: 300; sh: 174; makefile: 27
file content (38 lines) | stat: -rw-r--r-- 1,821 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
;=========================== begin_copyright_notice ============================
;
; Copyright (C) 2020-2021 Intel Corporation
;
; SPDX-License-Identifier: MIT
;
;============================ end_copyright_notice =============================

; Check that dpas legalization will rearrange argument of dpas
; DPAS must have contiguous regioning and in the example below
; its argument consists of every second element of the register
; This test checks that GenXLegalization will transform this argument
; to contiguous form. (rdregion -> wrregion here)

; RUN: %opt %use_old_pass_manager% -GenXLegalization -march=genx64 -mcpu=Gen9 -mtriple=spir64-unknown-unknown -S < %s | FileCheck %s

; CHECK: @Kernel

; Function Attrs: noinline nounwind
define dso_local dllexport void @Kernel() local_unnamed_addr {
entry:

; CHECK: %[[NEWVAR:[a-zA-Z0-9_.]+]] = call <64 x i32> @llvm.genx.wrregioni.v64i32.v8i32.i16.i1(<64 x i32> %{{[a-zA-Z0-9_.]*}}, <8 x i32> %{{[a-zA-Z0-9_.]*}}, i32 0, i32 8, i32 1, i16 224, i32 undef, i1 true)
; CHECK-NEXT: %call1.i.i.i = tail call <64 x float> @llvm.genx.dpas.v64f32.v64i32.v64i32(<64 x float> undef, <64 x i32> undef, <64 x i32> %rdr.cols.regioncollapsed.split56.join56, i32 134744586)


 %rdr.cols.regioncollapsed = tail call <64 x i32> @llvm.genx.rdregioni.v64i32.v128i32.i16(<128 x i32> undef, i32 16, i32 8, i32 1, i16 0, i32 undef)
 %call1.i.i.i = tail call <64 x float> @llvm.genx.dpas.v64f32.v64i32.v64i32(<64 x float> undef, <64 x i32> undef, <64 x i32> %rdr.cols.regioncollapsed, i32 134744586)

 ret void
}

; Function Attrs: nounwind readnone
declare <64 x float> @llvm.genx.dpas.v64f32.v64i32.v64i32(<64 x float>, <64 x i32>, <64 x i32>, i32)

; Function Attrs: nounwind readnone
declare <64 x i32> @llvm.genx.rdregioni.v64i32.v128i32.i16(<128 x i32>, i32, i32, i32, i16, i32)