Debian Codegraph @

llvm/test/MC/RISCV/rvv/rv32-immediate.s

raw
1 # RUN: llvm-mc -triple=riscv32 -show-encoding --mattr=+v %s \
2 # RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 # RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+v %s \
4 # RUN: | llvm-objdump -d --mattr=+v --no-print-imm-hex - \
5 # RUN: | FileCheck %s --check-prefix=CHECK-INST
6
7 # For rv32, allow 32 bit constants that contains a simm5 value.
8
9 vadd.vi v8, v4, 0xfffffff0
10 # CHECK-INST: vadd.vi v8, v4, -16
11 # CHECK-ENCODING: [0x57,0x34,0x48,0x02]
12
13 vmsltu.vi v8, v4, 0xfffffff1
14 # CHECK-INST: vmsleu.vi v8, v4, -16
15 # CHECK-ENCODING: [0x57,0x34,0x48,0x72]