39 lines · plain
1# RUN: llvm-mc %s -triple=riscv64 -mattr=+h -M no-aliases -show-encoding \2# RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s3# RUN: llvm-mc -filetype=obj -mattr=+h -triple riscv64 < %s \4# RUN: | llvm-objdump --mattr=+h -M no-aliases -d - \5# RUN: | FileCheck -check-prefix=CHECK-INST %s6 7# RUN: not llvm-mc -triple riscv32 -mattr=+h < %s 2>&1 \8# RUN: | FileCheck -check-prefix=CHECK-RV32 %s9 10# CHECK-INST: hlv.wu a0, (a1)11# CHECK: encoding: [0x73,0xc5,0x15,0x68]12# CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}13hlv.wu a0, (a1)14 15# CHECK-INST: hlv.wu a0, (a1)16# CHECK: encoding: [0x73,0xc5,0x15,0x68]17# CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}18hlv.wu a0, 0(a1)19 20# CHECK-INST: hlv.d a0, (a1)21# CHECK: encoding: [0x73,0xc5,0x05,0x6c]22# CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}23hlv.d a0, (a1)24 25# CHECK-INST: hlv.d a0, (a1)26# CHECK: encoding: [0x73,0xc5,0x05,0x6c]27# CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}28hlv.d a0, 0(a1)29 30# CHECK-INST: hsv.d a0, (a1)31# CHECK: encoding: [0x73,0xc0,0xa5,0x6e]32# CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}33hsv.d a0, (a1)34 35# CHECK-INST: hsv.d a0, (a1)36# CHECK: encoding: [0x73,0xc0,0xa5,0x6e]37# CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}38hsv.d a0, 0(a1)39