[X86][MC,LLD][NFC] Rename R_X86_64_REX2_GOTPCRELX (#116737)
[llvm-project.git] / llvm / test / MC / RISCV / rv32zbkb-only-valid.s
blob39f306c8b7671d23865b6957dd96e8ea4a9bc95d
1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+zbkb -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
3 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+zbkb < %s \
4 # RUN: | llvm-objdump --mattr=+zbkb -d -r - \
5 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
7 # CHECK-ASM-AND-OBJ: rev8 t0, t1
8 # CHECK-ASM: encoding: [0x93,0x52,0x83,0x69]
9 rev8 t0, t1
11 # CHECK-ASM-AND-OBJ: zip t0, t1
12 # CHECK-ASM: encoding: [0x93,0x12,0xf3,0x08]
13 zip t0, t1
14 # CHECK-S-OBJ-NOALIAS: unzip t0, t1
15 # CHECK-ASM: encoding: [0x93,0x52,0xf3,0x08]
16 unzip t0, t1
18 # Test the encoding used for zext.h for RV32.
19 # CHECK-ASM-AND-OBJ: zext.h t0, t1
20 # CHECK-ASM: encoding: [0xb3,0x42,0x03,0x08]
21 pack t0, t1, x0
23 # CHECK-ASM-AND-OBJ: zext.h t0, t1
24 # CHECK-ASM: encoding: [0xb3,0x42,0x03,0x08]
25 zext.h t0, t1