Home | History | Annotate | Download | only in RISCV
      1 # RUN: llvm-mc %s -triple=riscv32 -riscv-no-aliases -show-encoding \
      2 # RUN:     | FileCheck -check-prefixes=CHECK,CHECK-INST %s
      3 # RUN: llvm-mc %s -triple=riscv64 -riscv-no-aliases -show-encoding \
      4 # RUN:     | FileCheck -check-prefixes=CHECK,CHECK-INST %s
      5 # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \
      6 # RUN:     | llvm-objdump -riscv-no-aliases -d - \
      7 # RUN:     | FileCheck -check-prefix=CHECK-INST %s
      8 # RUN: llvm-mc -filetype=obj -triple riscv64 < %s \
      9 # RUN:     | llvm-objdump -riscv-no-aliases -d - \
     10 # RUN:     | FileCheck -check-prefix=CHECK-INST %s
     11 
     12 # CHECK-INST: uret
     13 # CHECK: encoding: [0x73,0x00,0x20,0x00]
     14 uret
     15 
     16 # CHECK-INST: sret
     17 # CHECK: encoding: [0x73,0x00,0x20,0x10]
     18 sret
     19 
     20 # CHECK-INST: mret
     21 # CHECK: encoding: [0x73,0x00,0x20,0x30]
     22 mret
     23 
     24 # CHECK-INST: wfi
     25 # CHECK: encoding: [0x73,0x00,0x50,0x10]
     26 wfi
     27 
     28 # CHECK-INST: sfence.vma zero, zero
     29 # CHECK: encoding: [0x73,0x00,0x00,0x12]
     30 sfence.vma zero, zero
     31 
     32 # CHECK-INST: sfence.vma a0, a1
     33 # CHECK: encoding: [0x73,0x00,0xb5,0x12]
     34 sfence.vma a0, a1
     35