Debian Codegraph @

llvm/test/CodeGen/SPIRV/llvm-intrinsics/ctlz.ll

raw
1 ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
2
3 ; CHECK: %[[#extinst_id:]] = OpExtInstImport "OpenCL.std"
4
5 ; CHECK: OpFunction
6 ; CHECK: %[[#]] = OpExtInst %[[#]] %[[#extinst_id]] clz
7 ; CHECK: OpFunctionEnd
8
9 define spir_func i32 @TestClz(i32 %x) local_unnamed_addr {
10 entry:
11 %0 = tail call i32 @llvm.ctlz.i32(i32 %x, i1 true)
12 ret i32 %0
13 }
14
15 declare i32 @llvm.ctlz.i32(i32, i1 immarg)