1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+h \
2 # RUN: | FileCheck -check-prefixes=CHECK-INST,CHECK-ALIAS-INST %s
3 # RUN: llvm-mc %s -triple=riscv64 -mattr=+h \
4 # RUN: | FileCheck -check-prefixes=CHECK-INST,CHECK-ALIAS-INST %s
5 # RUN: llvm-mc -filetype=obj -mattr=+h -triple riscv32 < %s \
6 # RUN: | llvm-objdump --mattr=+h -M no-aliases -d - \
7 # RUN: | FileCheck -check-prefixes=CHECK-INST,CHECK-NOALIAS-INST %s
8 # RUN: llvm-mc -filetype=obj -mattr=+h -triple riscv64 < %s \
9 # RUN: | llvm-objdump --mattr=+h -M no-aliases -d - \
10 # RUN: | FileCheck -check-prefixes=CHECK-INST,CHECK-NOALIAS-INST %s
12 # CHECK-ALIAS-INST: hfence.gvma{{$}}
13 # CHECK-NOALIAS-INST: hfence.gvma zero, zero
16 # CHECK-ALIAS-INST: hfence.gvma a0{{$}}
17 # CHECK-NOALIAS-INST: hfence.gvma a0, zero
20 # CHECK-ALIAS-INST: hfence.vvma{{$}}
21 # CHECK-NOALIAS-INST: hfence.vvma zero, zero
24 # CHECK-ALIAS-INST: hfence.vvma a0{{$}}
25 # CHECK-NOALIAS-INST: hfence.vvma a0, zero
28 # CHECK-INST: hlv.b a0, (a1)
31 # CHECK-INST: hlv.bu a0, (a1)
34 # CHECK-INST: hlv.h a1, (a2)
37 # CHECK-INST: hlv.hu a1, (a1)
40 # CHECK-INST: hlvx.hu a1, (a2)
43 # CHECK-INST: hlv.w a2, (a2)
46 # CHECK-INST: hlvx.wu a2, (a3)
49 # CHECK-INST: hsv.b a0, (a1)
52 # CHECK-INST: hsv.h a0, (a1)
55 # CHECK-INST: hsv.w a0, (a1)