Skip to content

Remove workaround on AbsFOpConversion with bf16 #1229

@whitneywhtsang

Description

@whitneywhtsang

Since LLVM now support bfloat16, llvm.fabs.bf16 (https://llvm.org/docs/LangRef.html#llvm-fabs-intrinsic) should be supported by SPIRV-LLVM-Translator.
However, SPIRV-LLVM-Translator fails with the following error when compiling llvm.fabs.bf16 (kernel.ll.txt).

InvalidFunctionCall: Unexpected llvm intrinsic:
 llvm.fabs.bf16 [Src: /home/jovyan/SPIRV-LLVM-Translator/lib/SPIRV/SPIRVUtil.cpp:1883 false ]

#1228 worked around it by bitcast-ing to and from i16 when performing AbsFOpConversion.

This issue is to track removal of the workaround when SPIRV-LLVM-Translator adds the support.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions