[PATCH] D150196: [LoongArch] Remove AssemblerPredicate for features: f/d/lsx/lasx/lvz/lbt

Lu Weining via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 9 06:08:44 PDT 2023


SixWeining created this revision.
SixWeining added reviewers: xen0n, xry111, hev, wangleiat, tangyouling.
Herald added a subscriber: hiraditya.
Herald added a project: All.
SixWeining requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Linux LoongArch port [1] uses `-msoft-float` (implies no FPU) in its
`cflags` while it also uses floating-point insns in asm sources [2].
GAS allows this usage while IAS currently does not.

This patch removes `AssemblerPredicate`s for floating-point insns so
that to make IAS compitable with GAS. Similarly, also remove
`AssemblerPredicate`s for other ISA extensions, i.e. lsx/las/lvz/lbt.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/loongarch/Makefile?h=v6.4-rc1#n49
[2]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/loongarch/kernel/fpu.S?h=v6.4-rc1#n29


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150196

Files:
  llvm/lib/Target/LoongArch/LoongArch.td
  llvm/test/MC/LoongArch/Basic/Float/d-arith.s
  llvm/test/MC/LoongArch/Basic/Float/d-bound-check.s
  llvm/test/MC/LoongArch/Basic/Float/d-branch.s
  llvm/test/MC/LoongArch/Basic/Float/d-comp.s
  llvm/test/MC/LoongArch/Basic/Float/d-conv.s
  llvm/test/MC/LoongArch/Basic/Float/d-invalid.s
  llvm/test/MC/LoongArch/Basic/Float/d-memory.s
  llvm/test/MC/LoongArch/Basic/Float/d-move.s
  llvm/test/MC/LoongArch/Basic/Float/f-arith.s
  llvm/test/MC/LoongArch/Basic/Float/f-bound-check.s
  llvm/test/MC/LoongArch/Basic/Float/f-branch.s
  llvm/test/MC/LoongArch/Basic/Float/f-comp.s
  llvm/test/MC/LoongArch/Basic/Float/f-conv.s
  llvm/test/MC/LoongArch/Basic/Float/f-invalid.s
  llvm/test/MC/LoongArch/Basic/Float/f-memory.s
  llvm/test/MC/LoongArch/Basic/Float/f-move.s
  llvm/test/MC/LoongArch/Basic/Integer/invalid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150196.520671.patch
Type: text/x-patch
Size: 19768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230509/25b31524/attachment.bin>


More information about the llvm-commits mailing list