brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · c1ab6bc Raw
30 lines · plain
1# RUN: llvm-mc %s -triple=riscv32 -M no-aliases -mattr=+zcmt -show-encoding \2# RUN:     | FileCheck -check-prefixes=CHECK-INST,CHECK-ENC %s3# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+zcmt < %s \4# RUN:     | llvm-objdump -d --mattr=+zcmt - \5# RUN:     | FileCheck -check-prefix=CHECK-INST-ALIAS %s6#7# RUN: llvm-mc %s -triple=riscv64 -M no-aliases -mattr=+zcmt -show-encoding \8# RUN:     | FileCheck -check-prefixes=CHECK-INST,CHECK-ENC %s9# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+zcmt < %s \10# RUN:     | llvm-objdump -d --mattr=+zcmt - \11# RUN:     | FileCheck -check-prefix=CHECK-INST-ALIAS %s12 13##################################14# Jump Vector Table CSR15##################################16 17# jvt18# name19# CHECK-INST: csrrs t1, jvt, zero20# CHECK-ENC:  encoding: [0x73,0x23,0x70,0x01]21# CHECK-INST-ALIAS: csrr t1, jvt22# uimm1223# CHECK-INST: csrrs t2, jvt, zero24# CHECK-ENC:  encoding: [0xf3,0x23,0x70,0x01]25# CHECK-INST-ALIAS: csrr t2, jvt26# name27csrrs t1, jvt, zero28# uimm1229csrrs t2, 0x017, zero30