|
| 1 | +# RUN: llvm-mc %s -triple=riscv32 -mattr=+xsifivecdiscarddlone,+xsifivecflushdlone -riscv-no-aliases -show-encoding \ |
| 2 | +# RUN: | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST %s |
| 3 | +# RUN: llvm-mc %s -triple=riscv64 -mattr=+xsifivecdiscarddlone,+xsifivecflushdlone -riscv-no-aliases -show-encoding \ |
| 4 | +# RUN: | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST %s |
| 5 | +# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+xsifivecdiscarddlone,+xsifivecflushdlone < %s \ |
| 6 | +# RUN: | llvm-objdump --mattr=+xsifivecdiscarddlone,+xsifivecflushdlone -M no-aliases -d - \ |
| 7 | +# RUN: | FileCheck -check-prefix=CHECK-INST %s |
| 8 | +# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+xsifivecdiscarddlone,+xsifivecflushdlone < %s \ |
| 9 | +# RUN: | llvm-objdump --mattr=+xsifivecdiscarddlone,+xsifivecflushdlone -M no-aliases -d - \ |
| 10 | +# RUN: | FileCheck -check-prefix=CHECK-INST %s |
| 11 | + |
| 12 | +# CHECK-INST: cflush.d.l1 zero |
| 13 | +# CHECK-ENC: encoding: [0x73,0x00,0x00,0xfc] |
| 14 | +cflush.d.l1 x0 |
| 15 | + |
| 16 | +# CHECK-INST: cflush.d.l1 t2 |
| 17 | +# CHECK-ENC: encoding: [0x73,0x80,0x03,0xfc] |
| 18 | +cflush.d.l1 x7 |
| 19 | + |
| 20 | +# CHECK-INST: cdiscard.d.l1 zero |
| 21 | +# CHECK-ENC: encoding: [0x73,0x00,0x20,0xfc] |
| 22 | +cdiscard.d.l1 x0 |
| 23 | + |
| 24 | +# CHECK-INST: cdiscard.d.l1 t2 |
| 25 | +# CHECK-ENC: encoding: [0x73,0x80,0x23,0xfc] |
| 26 | +cdiscard.d.l1 x7 |
0 commit comments