[X86][MC,LLD][NFC] Rename R_X86_64_REX2_GOTPCRELX (#116737)
[llvm-project.git] / llvm / test / MC / RISCV / rv32ih-valid.s
blob6f80a24a1f8a289195a9006c283189fcba49d17f
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]
18 hfence.vvma a0, a1
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]
26 hfence.gvma a0, a1
28 # CHECK-INST: hlv.b a0, (a1)
29 # CHECK: encoding: [0x73,0xc5,0x05,0x60]
30 hlv.b a0, (a1)
32 # CHECK-INST: hlv.bu a0, (a1)
33 # CHECK: encoding: [0x73,0xc5,0x15,0x60]
34 hlv.bu a0, (a1)
36 # CHECK-INST: hlv.h a1, (a2)
37 # CHECK: encoding: [0xf3,0x45,0x06,0x64]
38 hlv.h a1, (a2)
40 # CHECK-INST: hlv.hu a1, (a1)
41 # CHECK: encoding: [0xf3,0xc5,0x15,0x64]
42 hlv.hu a1, (a1)
44 # CHECK-INST: hlvx.hu a1, (a2)
45 # CHECK: encoding: [0xf3,0x45,0x36,0x64]
46 hlvx.hu a1, (a2)
48 # CHECK-INST: hlv.w a2, (a2)
49 # CHECK: encoding: [0x73,0x46,0x06,0x68]
50 hlv.w a2, (a2)
52 # CHECK-INST: hlvx.wu a2, (a3)
53 # CHECK: encoding: [0x73,0xc6,0x36,0x68]
54 hlvx.wu a2, (a3)
56 # CHECK-INST: hsv.b a0, (a1)
57 # CHECK: encoding: [0x73,0xc0,0xa5,0x62]
58 hsv.b a0, (a1)
60 # CHECK-INST: hsv.h a0, (a1)
61 # CHECK: encoding: [0x73,0xc0,0xa5,0x66]
62 hsv.h a0, (a1)
64 # CHECK-INST: hsv.w a0, (a1)
65 # CHECK: encoding: [0x73,0xc0,0xa5,0x6a]
66 hsv.w a0, (a1)