[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

Jonas Paulsson via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 4 08:37:19 PDT 2025


================
@@ -126,3 +138,23 @@ define void @f9(ptr %cptr, ptr %aptr, ptr %bptr) {
   store fp128 %c, ptr %cptr
   ret void
 }
+
+; Test f16 copies in which the sign comes from an f16.
+define half @f10(half %a, half %b) {
+; CHECK-LABEL: f10:
+; CHECK: brasl %r14, copysignh at PLT
----------------
JonPsson1 wrote:

Sorry for the confusion - I commented a bit too early, but now I have pushed my changes as well after some final changes.

https://github.com/llvm/llvm-project/pull/109164


More information about the llvm-commits mailing list