CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
141 lines
4.8 KiB
ArmAsm
141 lines
4.8 KiB
ArmAsm
# RUN: llvm-mc %s -triple=riscv32 -mattr=+m,+zbb,+zba,+zcb -M no-aliases -show-encoding \
|
|
# RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
|
|
# RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+m,+zbb,+zba,+zcb < %s \
|
|
# RUN: | llvm-objdump --mattr=+m,+zbb,+zba,+zcb --no-print-imm-hex -M no-aliases -d -r - \
|
|
# RUN: | FileCheck --check-prefixes=CHECK-ASM-AND-OBJ %s
|
|
# RUN: llvm-mc %s -triple=riscv64 -mattr=+m,+zbb,+zba,+zcb -M no-aliases -show-encoding \
|
|
# RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
|
|
# RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+m,+zbb,+zba,+zcb < %s \
|
|
# RUN: | llvm-objdump --mattr=+m,+zbb,+zba,zcb --no-print-imm-hex -M no-aliases -d -r - \
|
|
# RUN: | FileCheck --check-prefixes=CHECK-ASM-AND-OBJ %s
|
|
#
|
|
# RUN: not llvm-mc -triple riscv32 \
|
|
# RUN: -M no-aliases -show-encoding < %s 2>&1 \
|
|
# RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s
|
|
# RUN: not llvm-mc -triple riscv64 \
|
|
# RUN: -M no-aliases -show-encoding < %s 2>&1 \
|
|
# RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s
|
|
|
|
# CHECK-ASM-AND-OBJ: c.zext.b s0
|
|
# CHECK-ASM: encoding: [0x61,0x9c]
|
|
# CHECK-NO-EXT: error: instruction requires the following: 'Zcb' (Compressed basic bit manipulation instructions){{$}}
|
|
c.zext.b s0
|
|
|
|
# CHECK-ASM-AND-OBJ: c.sext.b s0
|
|
# CHECK-ASM: encoding: [0x65,0x9c]
|
|
# CHECK-NO-EXT: error: instruction requires the following: 'Zbb' (Basic Bit-Manipulation), 'Zcb' (Compressed basic bit manipulation instructions){{$}}
|
|
c.sext.b s0
|
|
|
|
# CHECK-ASM-AND-OBJ: c.zext.h s0
|
|
# CHECK-ASM: encoding: [0x69,0x9c]
|
|
# CHECK-NO-EXT: error: instruction requires the following: 'Zbb' (Basic Bit-Manipulation), 'Zcb' (Compressed basic bit manipulation instructions){{$}}
|
|
c.zext.h s0
|
|
|
|
# CHECK-ASM-AND-OBJ: c.sext.h s0
|
|
# CHECK-ASM: encoding: [0x6d,0x9c]
|
|
# CHECK-NO-EXT: error: instruction requires the following: 'Zbb' (Basic Bit-Manipulation), 'Zcb' (Compressed basic bit manipulation instructions){{$}}
|
|
c.sext.h s0
|
|
|
|
# CHECK-ASM-AND-OBJ: c.not s0
|
|
# CHECK-ASM: encoding: [0x75,0x9c]
|
|
# CHECK-NO-EXT: error: instruction requires the following: 'Zcb' (Compressed basic bit manipulation instructions){{$}}
|
|
c.not s0
|
|
|
|
# CHECK-ASM-AND-OBJ: c.mul s0, s1
|
|
# CHECK-ASM: encoding: [0x45,0x9c]
|
|
# CHECK-NO-EXT: error: instruction requires the following: 'Zcb' (Compressed basic bit manipulation instructions), 'Zmmul' (Integer Multiplication)
|
|
c.mul s0, s1
|
|
|
|
# CHECK-ASM-AND-OBJ: c.lbu a5, 2(a4)
|
|
# CHECK-ASM: encoding: [0x3c,0x83]
|
|
# CHECK-NO-EXT: error: instruction requires the following: 'Zcb' (Compressed basic bit manipulation instructions){{$}}
|
|
c.lbu a5, 2(a4)
|
|
|
|
# CHECK-ASM-AND-OBJ: c.lhu a5, 2(a4)
|
|
# CHECK-ASM: encoding: [0x3c,0x87]
|
|
# CHECK-NO-EXT: error: instruction requires the following: 'Zcb' (Compressed basic bit manipulation instructions){{$}}
|
|
c.lhu a5, 2(a4)
|
|
|
|
# CHECK-ASM-AND-OBJ: c.lh a5, 2(a4)
|
|
# CHECK-ASM: encoding: [0x7c,0x87]
|
|
# CHECK-NO-EXT: error: instruction requires the following: 'Zcb' (Compressed basic bit manipulation instructions){{$}}
|
|
c.lh a5, 2(a4)
|
|
|
|
# CHECK-ASM-AND-OBJ: c.sb a5, 2(a4)
|
|
# CHECK-ASM: encoding: [0x3c,0x8b]
|
|
# CHECK-NO-EXT: error: instruction requires the following: 'Zcb' (Compressed basic bit manipulation instructions){{$}}
|
|
c.sb a5, 2(a4)
|
|
|
|
# CHECK-ASM-AND-OBJ: c.sh a5, 2(a4)
|
|
# CHECK-ASM: encoding: [0x3c,0x8f]
|
|
# CHECK-NO-EXT: error: instruction requires the following: 'Zcb' (Compressed basic bit manipulation instructions){{$}}
|
|
c.sh a5, 2(a4)
|
|
|
|
# CHECK-ASM-AND-OBJ: c.mul s0, s1
|
|
# CHECK-ASM: encoding: [0x45,0x9c]
|
|
mul s0, s1, s0
|
|
|
|
# CHECK-ASM-AND-OBJ: c.mul s0, s1
|
|
# CHECK-ASM: encoding: [0x45,0x9c]
|
|
mul s0, s0, s1
|
|
|
|
# CHECK-ASM-AND-OBJ: c.sext.b s0
|
|
# CHECK-ASM: encoding: [0x65,0x9c]
|
|
sext.b s0, s0
|
|
|
|
# CHECK-ASM-AND-OBJ: c.sext.h s0
|
|
# CHECK-ASM: encoding: [0x6d,0x9c]
|
|
sext.h s0, s0
|
|
|
|
# CHECK-ASM-AND-OBJ: c.zext.h s0
|
|
# CHECK-ASM: encoding: [0x69,0x9c]
|
|
zext.h s0, s0
|
|
|
|
# CHECK-ASM-AND-OBJ: c.zext.b s0
|
|
# CHECK-ASM: encoding: [0x61,0x9c]
|
|
andi s0, s0, 255
|
|
|
|
# CHECK-ASM-AND-OBJ: c.not s0
|
|
# CHECK-ASM: encoding: [0x75,0x9c]
|
|
xori s0, s0, -1
|
|
|
|
# CHECK-ASM-AND-OBJ: c.lh a5, 2(a4)
|
|
# CHECK-ASM: encoding: [0x7c,0x87]
|
|
lh a5, 2(a4)
|
|
|
|
# CHECK-ASM-AND-OBJ: c.lbu a5, 2(a4)
|
|
# CHECK-ASM: encoding: [0x3c,0x83]
|
|
lbu a5, 2(a4)
|
|
|
|
# CHECK-ASM-AND-OBJ: c.lhu a5, 2(a4)
|
|
# CHECK-ASM: encoding: [0x3c,0x87]
|
|
lhu a5, 2(a4)
|
|
|
|
# CHECK-ASM-AND-OBJ: c.sb a5, 2(a4)
|
|
# CHECK-ASM: encoding: [0x3c,0x8b]
|
|
sb a5, 2(a4)
|
|
|
|
# CHECK-ASM-AND-OBJ: c.sh a5, 2(a4)
|
|
# CHECK-ASM: encoding: [0x3c,0x8f]
|
|
sh a5, 2(a4)
|
|
|
|
# CHECK-ASM-AND-OBJ: c.lbu s0, 0(s1)
|
|
# CHECK-ASM: encoding: [0x80,0x80]
|
|
c.lbu s0, (s1)
|
|
|
|
# CHECK-ASM-AND-OBJ: c.lhu s0, 0(s1)
|
|
# CHECK-ASM: encoding: [0x80,0x84]
|
|
c.lhu s0, (s1)
|
|
|
|
# CHECK-ASM-AND-OBJ: c.lh s0, 0(s1)
|
|
# CHECK-ASM: encoding: [0xc0,0x84]
|
|
c.lh s0, (s1)
|
|
|
|
# CHECK-ASM-AND-OBJ: c.sb s0, 0(s1)
|
|
# CHECK-ASM: encoding: [0x80,0x88]
|
|
c.sb s0, (s1)
|
|
|
|
# CHECK-ASM-AND-OBJ: c.sh s0, 0(s1)
|
|
# CHECK-ASM: encoding: [0x80,0x8c]
|
|
c.sh s0, (s1)
|