[all-commits] [llvm/llvm-project] 7d1521: [ARM] Support fp16/bf16 using w constraint

Sam Elliott via All-commits all-commits at lists.llvm.org
Thu Oct 13 02:32:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7d15212b8c0c8bf0009ab253e7179ae7caf57aec
      https://github.com/llvm/llvm-project/commit/7d15212b8c0c8bf0009ab253e7179ae7caf57aec
  Author: Archibald Elliott <archibald.elliott at arm.com>
  Date:   2022-10-13 (Thu, 13 Oct 2022)

  Changed paths:
    M llvm/lib/Target/ARM/ARMISelLowering.cpp
    M llvm/test/CodeGen/ARM/inlineasm-fp-half.ll

  Log Message:
  -----------
  [ARM] Support fp16/bf16 using w constraint

fp16 and bf16 values can be used in GCC's inline assembly using the "w"
constraint, which means "VFP floating-point registers d0-d31" - fp16 and
bf16 values are stored in S registers (which alias the D registers).

This change ensures that LLVM is compatible with GCC for programs that
use fp16 and the 'w' constraint.

Differential Revision: https://reviews.llvm.org/D135662




More information about the All-commits mailing list