Implement the f32tof16() intrinsic, DXIL and SPIRV codegen, and related tests. Fixes #99113 --------- Co-authored-by: Tim Corringham <tcorring@amd.com>
11 lines
559 B
LLVM
11 lines
559 B
LLVM
; RUN: not llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o /dev/null 2>&1 | FileCheck %s
|
|
; RUN: not llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
; CHECK: LLVM ERROR: %6:id(s64) = G_INTRINSIC intrinsic(@llvm.spv.packhalf2x16), %0:vfid(<2 x s64>) is only supported with the GLSL extended instruction set.
|
|
|
|
define hidden spir_func noundef i32 @_Z9test_funcj(<2 x float> noundef %0) local_unnamed_addr #0 {
|
|
%2 = tail call i32 @llvm.spv.packhalf2x16.i32(<2 x float> %0)
|
|
ret i32 %2
|
|
}
|
|
|