32 lines · plain
1# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \2# RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s3# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \4# RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s5# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \6# RUN: | llvm-objdump -d - \7# RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s8# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \9# RUN: | llvm-objdump -d - \10# RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s11 12## Support for the 'D' extension implies support for 'F'13# ASM-AND-OBJ: fld.s $ft15, $t3, 25014# ASM: encoding: [0xf7,0xe9,0x03,0x2b]15fld.s $ft15, $t3, 25016 17# ASM-AND-OBJ: fld.d $ft14, $t5, 11418# ASM: encoding: [0x36,0xca,0x81,0x2b]19fld.d $ft14, $t5, 11420 21# ASM-AND-OBJ: fst.d $fs4, $a3, 19822# ASM: encoding: [0xfc,0x18,0xc3,0x2b]23fst.d $fs4, $a3, 19824 25# ASM-AND-OBJ: fldx.d $fs3, $t1, $s826# ASM: encoding: [0xbb,0x7d,0x34,0x38]27fldx.d $fs3, $t1, $s828 29# ASM-AND-OBJ: fstx.d $fa6, $t3, $t530# ASM: encoding: [0xe6,0x45,0x3c,0x38]31fstx.d $fa6, $t3, $t532