File: eu-fusion.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 (39 lines) | stat: -rw-r--r-- 2,188 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
39
;=========================== begin_copyright_notice ============================
;
; Copyright (C) 2021-2022 Intel Corporation
;
; SPDX-License-Identifier: MIT
;
;============================ end_copyright_notice =============================

; COM: This test checks that we do more strict legalization for platforms with fused EUs.

; RUN: %opt %use_old_pass_manager% -GenXLegalization -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Gen9 -S < %s | FileCheck %s --check-prefix=CHECK-Gen9
; RUN: %opt %use_old_pass_manager% -GenXLegalization -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Gen11 -S < %s | FileCheck %s --check-prefix=CHECK-Gen11
; RUN: %opt %use_old_pass_manager% -GenXLegalization -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=XeLP -S < %s | FileCheck %s --check-prefix=CHECK-XeLP
; RUN: %opt %use_old_pass_manager% -GenXLegalization -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=XeHP -S < %s | FileCheck %s --check-prefix=CHECK-XeHP
; RUN: %opt %use_old_pass_manager% -GenXLegalization -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=XeHPG -S < %s | FileCheck %s --check-prefix=CHECK-XeHPG
; RUN: %opt %use_old_pass_manager% -GenXLegalization -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=XeLPG -S < %s | FileCheck %s --check-prefix=CHECK-XeLPG
; RUN: %opt %use_old_pass_manager% -GenXLegalization -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=XeLPGPlus -S < %s | FileCheck %s --check-prefix=CHECK-XeLPG
; RUN: %opt %use_old_pass_manager% -GenXLegalization -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=XeHPC -S < %s | FileCheck %s --check-prefix=CHECK-XeHPC
; RUN: %opt %use_old_pass_manager% -GenXLegalization -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Xe2 -S < %s | FileCheck %s --check-prefix=CHECK-Xe2


; CHECK-Gen9: add <32 x i16>
; CHECK-Gen11: add <32 x i16>
; CHECK-XeHPC: add <32 x i16>
; CHECK-Xe2: add <32 x i16>

; CHECK-XeLP: add <16 x i16>
; CHECK-XeHP: add <16 x i16>
; CHECK-XeHPG: add <16 x i16>
; CHECK-XeLPG: add <16 x i16>
; CHECK-XeLPG: add <16 x i16>

define <32 x i16> @test(<32 x i16> %a) #1 {
entry:
  %res = add <32 x i16> %a, %a
  ret <32 x i16> %res
}

attributes #1 = { "CMStackCall" }