# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --show-encoding \
# RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s
# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --show-encoding \
# RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s
# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --filetype=obj \
# RUN: | llvm-objdump -d --mattr=+d - \
# RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s
# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --filetype=obj \
# RUN: | llvm-objdump -d --mattr=+d - \
# RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s
## Support for the 'D' extension implies support for 'F'
# ASM-AND-OBJ: bceqz $fcc6, 12
# ASM: encoding: [0xc0,0x0c,0x00,0x48]
bceqz $fcc6, 12