Weining Lu 9a8727df35 [LoongArch] Remove AssemblerPredicate for features: f/d/lsx/lasx/lvz/lbt
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

Reviewed By: xen0n, hev

Differential Revision: https://reviews.llvm.org/D150196
2023-06-26 10:37:30 +08:00

27 lines
910 B
ArmAsm

# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \
# RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s
# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \
# RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s
# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \
# RUN: | llvm-objdump -d - \
# RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s
# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \
# RUN: | llvm-objdump -d - \
# RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s
# ASM-AND-OBJ: fld.s $ft15, $t3, 250
# ASM: encoding: [0xf7,0xe9,0x03,0x2b]
fld.s $ft15, $t3, 250
# ASM-AND-OBJ: fst.s $fs6, $t7, 230
# ASM: encoding: [0x7e,0x9a,0x43,0x2b]
fst.s $fs6, $t7, 230
# ASM-AND-OBJ: fldx.s $fa1, $t3, $t7
# ASM: encoding: [0xe1,0x4d,0x30,0x38]
fldx.s $fa1, $t3, $t7
# ASM-AND-OBJ: fstx.s $fs2, $sp, $fp
# ASM: encoding: [0x7a,0x58,0x38,0x38]
fstx.s $fs2, $sp, $fp