[all-commits] [llvm/llvm-project] 461274: MIPS: Fix asm constraints "f" and "r" for softfloa...

YunQiang Su via All-commits all-commits at lists.llvm.org
Tue Feb 27 09:19:56 PST 2024


  Branch: refs/heads/release/18.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 461274b81d8641eab64d494accddc81d7db8a09e
      https://github.com/llvm/llvm-project/commit/461274b81d8641eab64d494accddc81d7db8a09e
  Author: YunQiang Su <syq at debian.org>
  Date:   2024-02-27 (Tue, 27 Feb 2024)

  Changed paths:
    M clang/lib/Basic/Targets/Mips.h
    A clang/test/CodeGen/Mips/inline-asm-constraints.c
    A clang/test/Sema/inline-asm-validate-mips.c
    M llvm/lib/Target/Mips/MipsISelLowering.cpp
    A llvm/test/CodeGen/Mips/inlineasm-constraints-softfloat.ll

  Log Message:
  -----------
  MIPS: Fix asm constraints "f" and "r" for softfloat (#79116)

This include 2 fixes:
        1. Disallow 'f' for softfloat.
        2. Allow 'r' for softfloat.

Currently, 'f' is accpeted by clang, then LLVM meets an internal error.

'r' is rejected by LLVM by: couldn't allocate input reg for constraint
'r'.

Fixes: #64241, #63632

---------

Co-authored-by: Fangrui Song <i at maskray.me>
(cherry picked from commit c88beb4112d5bbf07d76a615ab7f13ba2ba023e6)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list