1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+h -riscv-no-aliases -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s
3 # RUN: llvm-mc %s -triple=riscv64 -mattr=+h -riscv-no-aliases -show-encoding \
4 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s
5 # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+h < %s \
6 # RUN: | llvm-objdump --mattr=+h -M no-aliases -d - \
7 # RUN: | FileCheck -check-prefix=CHECK-INST %s
8 # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+h < %s \
9 # RUN: | llvm-objdump --mattr=+h -M no-aliases -d - \
10 # RUN: | FileCheck -check-prefix=CHECK-INST %s
12 # CHECK-INST: hfence.vvma zero, zero
13 # CHECK: encoding: [0x73,0x00,0x00,0x22]
14 hfence.vvma zero
, zero
16 # CHECK-INST: hfence.vvma a0, a1
17 # CHECK: encoding: [0x73,0x00,0xb5,0x22]
20 # CHECK-INST: hfence.gvma zero, zero
21 # CHECK: encoding: [0x73,0x00,0x00,0x62]
22 hfence.gvma zero
, zero
24 # CHECK-INST: hfence.gvma a0, a1
25 # CHECK: encoding: [0x73,0x00,0xb5,0x62]
28 # CHECK-INST: hlv.b a0, (a1)
29 # CHECK: encoding: [0x73,0xc5,0x05,0x60]
32 # CHECK-INST: hlv.bu a0, (a1)
33 # CHECK: encoding: [0x73,0xc5,0x15,0x60]
36 # CHECK-INST: hlv.h a1, (a2)
37 # CHECK: encoding: [0xf3,0x45,0x06,0x64]
40 # CHECK-INST: hlv.hu a1, (a1)
41 # CHECK: encoding: [0xf3,0xc5,0x15,0x64]
44 # CHECK-INST: hlvx.hu a1, (a2)
45 # CHECK: encoding: [0xf3,0x45,0x36,0x64]
48 # CHECK-INST: hlv.w a2, (a2)
49 # CHECK: encoding: [0x73,0x46,0x06,0x68]
52 # CHECK-INST: hlvx.wu a2, (a3)
53 # CHECK: encoding: [0x73,0xc6,0x36,0x68]
56 # CHECK-INST: hsv.b a0, (a1)
57 # CHECK: encoding: [0x73,0xc0,0xa5,0x62]
60 # CHECK-INST: hsv.h a0, (a1)
61 # CHECK: encoding: [0x73,0xc0,0xa5,0x66]
64 # CHECK-INST: hsv.w a0, (a1)
65 # CHECK: encoding: [0x73,0xc0,0xa5,0x6a]