Issue 97896
Summary undefined reference to `__truncsfbf2' when compiling ir with clang
Labels clang
Assignees
Reporter DigOrDog
    # Description
When I was compiling this IR with clang, I encountered this error. It seems to be right from a syntactic perspective, which is quite strange. From [half-precision-floating-point](https://clang.llvm.org/docs/LanguageExtensions.html#half-precision-floating-point) document, _bf16 is supported on X86 (when SSE2 is available)(For X86, SSE2 is available on 64-bit and all recent 32-bit processors.)
```
define i64 @f(bfloat %CastFPTrunc, ptr %x) {
BB:
  store bfloat %CastFPTrunc, ptr %x, align 2
  ret i64 0
}

define i32 @main() {
entry:
 
  ret i32 0
}

```

https://godbolt.org/z/MbcMvcWe6
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to