File: predef_reg.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 (31 lines) | stat: -rw-r--r-- 1,843 bytes parent folder | download
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
;=========================== begin_copyright_notice ============================
;
; Copyright (C) 2021 Intel Corporation
;
; SPDX-License-Identifier: MIT
;
;============================ end_copyright_notice =============================

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

declare  <32 x i32> @llvm.genx.read.predef.reg.v32i32.v32i32(i32 %0, <32 x i32> %1) #3
declare  <16 x i32> @llvm.genx.rdregioni.v16i32.v32i32.i16(<32 x i32> %0, i32 %1, i32 %2, i32 %3, i16 %4, i32 %5) #1
declare  <32 x i32> @llvm.genx.wrregioni.v32i32.v16i32.i16.i1(<32 x i32> %0, <16 x i32> %1, i32 %2, i32 %3, i32 %4, i16 %5, i32 %6, i1 %7) #1
declare  <32 x i32> @llvm.genx.write.predef.reg.v32i32.v32i32(i32 %0, <32 x i32> %1) #3

; Function Attrs: noinline nounwind
define spir_func void @test(<32 x i32> %arg) {
  %read = call <32 x i32> @llvm.genx.read.predef.reg.v32i32.v32i32(i32 8, <32 x i32> undef)
  %.split05 = call <16 x i32> @llvm.genx.rdregioni.v16i32.v32i32.i16(<32 x i32> %arg, i32 16, i32 16, i32 1, i16 0, i32 undef)
; CHECK-NOT: wrregion{{.*}}(<32 x i32> undef
  %.join0 = call <32 x i32> @llvm.genx.wrregioni.v32i32.v16i32.i16.i1(<32 x i32> %read, <16 x i32> %.split05, i32 16, i32 16, i32 1, i16 0, i32 undef, i1 true)
  %.split16 = call <16 x i32> @llvm.genx.rdregioni.v16i32.v32i32.i16(<32 x i32> %arg, i32 16, i32 16, i32 1, i16 64, i32 undef)
  %.join16 = call <32 x i32> @llvm.genx.wrregioni.v32i32.v16i32.i16.i1(<32 x i32> %.join0, <16 x i32> %.split16, i32 16, i32 16, i32 1, i16 64, i32 undef, i1 true)
  %write = call <32 x i32> @llvm.genx.write.predef.reg.v32i32.v32i32(i32 8, <32 x i32> %.join16)
  ret void
}

attributes #0 = { noinline nounwind "CMStackCall" }
attributes #1 = { nounwind readnone }
attributes #3 = { nounwind }