Files
TheRock/compiler/amd-llvm/llvm/test/MC/Mips/micromips-trap-instructions.s
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

51 lines
2.6 KiB
ArmAsm

# RUN: llvm-mc %s -triple=mipsel -show-encoding -mattr=micromips \
# RUN: | FileCheck -check-prefix=CHECK-EL %s
# RUN: llvm-mc %s -triple=mips -show-encoding -mattr=micromips \
# RUN: | FileCheck -check-prefix=CHECK-EB %s
# Check that the assembler can handle the documented syntax
# for miscellaneous instructions
#------------------------------------------------------------------------------
# Miscellaneous Instructions
#------------------------------------------------------------------------------
# Little endian
#------------------------------------------------------------------------------
# CHECK-EL: teq $8, $9 # encoding: [0x28,0x01,0x3c,0x00]
# CHECK-EL: tge $8, $9 # encoding: [0x28,0x01,0x3c,0x02]
# CHECK-EL: tgeu $8, $9 # encoding: [0x28,0x01,0x3c,0x04]
# CHECK-EL: tlt $8, $9 # encoding: [0x28,0x01,0x3c,0x08]
# CHECK-EL: tltu $8, $9 # encoding: [0x28,0x01,0x3c,0x0a]
# CHECK-EL: tne $8, $9 # encoding: [0x28,0x01,0x3c,0x0c]
# CHECK-EL: teqi $9, 17767 # encoding: [0xc9,0x41,0x67,0x45]
# CHECK-EL: tgei $9, 17767 # encoding: [0x29,0x41,0x67,0x45]
# CHECK-EL: tgeiu $9, 17767 # encoding: [0x69,0x41,0x67,0x45]
# CHECK-EL: tlti $9, 17767 # encoding: [0x09,0x41,0x67,0x45]
# CHECK-EL: tltiu $9, 17767 # encoding: [0x49,0x41,0x67,0x45]
# CHECK-EL: tnei $9, 17767 # encoding: [0x89,0x41,0x67,0x45]
#------------------------------------------------------------------------------
# Big endian
#------------------------------------------------------------------------------
# CHECK-EB: teq $8, $9 # encoding: [0x01,0x28,0x00,0x3c]
# CHECK-EB: tge $8, $9 # encoding: [0x01,0x28,0x02,0x3c]
# CHECK-EB: tgeu $8, $9 # encoding: [0x01,0x28,0x04,0x3c]
# CHECK-EB: tlt $8, $9 # encoding: [0x01,0x28,0x08,0x3c]
# CHECK-EB: tltu $8, $9 # encoding: [0x01,0x28,0x0a,0x3c]
# CHECK-EB: tne $8, $9 # encoding: [0x01,0x28,0x0c,0x3c]
# CHECK-EB: teqi $9, 17767 # encoding: [0x41,0xc9,0x45,0x67]
# CHECK-EB: tgei $9, 17767 # encoding: [0x41,0x29,0x45,0x67]
# CHECK-EB: tgeiu $9, 17767 # encoding: [0x41,0x69,0x45,0x67]
# CHECK-EB: tlti $9, 17767 # encoding: [0x41,0x09,0x45,0x67]
# CHECK-EB: tltiu $9, 17767 # encoding: [0x41,0x49,0x45,0x67]
# CHECK-EB: tnei $9, 17767 # encoding: [0x41,0x89,0x45,0x67]
teq $8, $9, 0
tge $8, $9, 0
tgeu $8, $9, 0
tlt $8, $9, 0
tltu $8, $9, 0
tne $8, $9, 0
teqi $9, 17767
tgei $9, 17767
tgeiu $9, 17767
tlti $9, 17767
tltiu $9, 17767
tnei $9, 17767