Debian Codegraph @

IGC/VectorCompiler/test/Legalization/lsc/legal/lsc_fence.ll

raw
1 ;=========================== begin_copyright_notice ============================
2 ;
3 ; Copyright (C) 2021 Intel Corporation
4 ;
5 ; SPDX-License-Identifier: MIT
6 ;
7 ;============================ end_copyright_notice =============================
8
9 ; RUN: %opt %use_old_pass_manager% -GenXLegalization -march=genx64 -mcpu=XeHPG -mtriple=spir64-unknown-unknown -S %s | FileCheck %s
10
11 define void @test() {
12 entry:
13 ; CHECK-LABEL: test
14
15 ; CHECK: call void @llvm.genx.lsc.fence.i1(i1 true, i8 0, i8 0, i8 0)
16 ; CHECK-NEXT: ret void
17
18 call void @llvm.genx.lsc.fence.i1(i1 true, i8 0, i8 0, i8 0)
19 ret void
20 }
21
22 declare void @llvm.genx.lsc.fence.i1(i1, i8, i8, i8)