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
98 lines
4.3 KiB
ArmAsm
98 lines
4.3 KiB
ArmAsm
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu --position-independent -show-encoding | \
|
|
# RUN: FileCheck %s
|
|
|
|
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu --position-independent -filetype=obj -o -| \
|
|
# RUN: llvm-objdump --no-print-imm-hex -d -r - | FileCheck %s --check-prefix=CHECK-FOR-STORE
|
|
|
|
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mattr=+micromips --position-independent -show-encoding | \
|
|
# RUN: FileCheck %s -check-prefix=MICROMIPS
|
|
|
|
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -show-encoding | \
|
|
# RUN: FileCheck %s -check-prefix=NO-PIC
|
|
|
|
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 --position-independent -show-encoding | \
|
|
# RUN: FileCheck %s -check-prefixes=BAD-ABI,BAD-ABI-N32
|
|
|
|
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnu --position-independent -show-encoding | \
|
|
# RUN: FileCheck %s -check-prefixes=BAD-ABI,BAD-ABI-N64
|
|
|
|
.text
|
|
.ent foo
|
|
foo:
|
|
.frame $sp, 0, $ra
|
|
.set noreorder
|
|
.cpload $25
|
|
.set reorder
|
|
|
|
.cprestore 8
|
|
|
|
jal $25
|
|
jal $4, $25
|
|
jal foo
|
|
|
|
.end foo
|
|
|
|
# CHECK-FOR-STORE: sw $gp, 8($sp)
|
|
|
|
# CHECK: .cprestore 8
|
|
# CHECK: jalr $25 # encoding: [0x03,0x20,0xf8,0x09]
|
|
# CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
|
|
# CHECK: lw $gp, 8($sp) # encoding: [0x8f,0xbc,0x00,0x08]
|
|
|
|
# CHECK: jalr $4, $25 # encoding: [0x03,0x20,0x20,0x09]
|
|
# CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
|
|
# CHECK: lw $gp, 8($sp) # encoding: [0x8f,0xbc,0x00,0x08]
|
|
|
|
# CHECK: lw $25, %got(foo)($gp) # encoding: [0x8f,0x99,A,A]
|
|
# CHECK: # fixup A - offset: 0, value: %got(foo), kind: fixup_Mips_GOT
|
|
# CHECK: addiu $25, $25, %lo(foo) # encoding: [0x27,0x39,A,A]
|
|
# CHECK: # fixup A - offset: 0, value: %lo(foo), kind: fixup_Mips_LO16
|
|
# CHECK: jalr $25 # encoding: [0x03,0x20,0xf8,0x09]
|
|
# CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
|
|
# CHECK: lw $gp, 8($sp) # encoding: [0x8f,0xbc,0x00,0x08]
|
|
# CHECK: .end foo
|
|
|
|
# MICROMIPS: .cprestore 8
|
|
# MICROMIPS: jalrs16 $25 # encoding: [0x45,0xf9]
|
|
# MICROMIPS: nop # encoding: [0x0c,0x00]
|
|
# MICROMIPS: lw $gp, 8($sp) # encoding: [0xff,0x9d,0x00,0x08]
|
|
|
|
# MICROMIPS: jalrs $4, $25 # encoding: [0x00,0x99,0x4f,0x3c]
|
|
# MICROMIPS: nop # encoding: [0x0c,0x00]
|
|
# MICROMIPS: lw $gp, 8($sp) # encoding: [0xff,0x9d,0x00,0x08]
|
|
|
|
# MICROMIPS: lw $25, %got(foo)($gp) # encoding: [0xff,0x3c,A,A]
|
|
# MICROMIPS: # fixup A - offset: 0, value: %got(foo), kind: fixup_MICROMIPS_GOT16
|
|
# MICROMIPS: addiu $25, $25, %lo(foo) # encoding: [0x33,0x39,A,A]
|
|
# MICROMIPS: # fixup A - offset: 0, value: %lo(foo), kind: fixup_MICROMIPS_LO16
|
|
# MICROMIPS: jalrs $ra, $25 # encoding: [0x03,0xf9,0x4f,0x3c]
|
|
# MICROMIPS: nop # encoding: [0x0c,0x00]
|
|
# MICROMIPS: lw $gp, 8($sp) # encoding: [0xff,0x9d,0x00,0x08]
|
|
# MICROMIPS: .end foo
|
|
|
|
# NO-PIC: .cprestore 8
|
|
# NO-PIC: jalr $25 # encoding: [0x03,0x20,0xf8,0x09]
|
|
# NO-PIC-NOT: lw $gp, 8($sp) # encoding: [0x8f,0xbc,0x00,0x08]
|
|
|
|
# NO-PIC: jalr $4, $25 # encoding: [0x03,0x20,0x20,0x09]
|
|
# NO-PIC-NOT: lw $gp, 8($sp) # encoding: [0x8f,0xbc,0x00,0x08]
|
|
|
|
# NO-PIC: jal foo # encoding: [0b000011AA,A,A,A]
|
|
# NO-PIC: # fixup A - offset: 0, value: foo, kind: fixup_Mips_26
|
|
# NO-PIC-NOT: lw $gp, 8($sp) # encoding: [0x8f,0xbc,0x00,0x08]
|
|
# NO-PIC: .end foo
|
|
|
|
# BAD-ABI: .cprestore 8
|
|
# BAD-ABI: jalr $25 # encoding: [0x03,0x20,0xf8,0x09]
|
|
# BAD-ABI-NOT: lw $gp, 8($sp) # encoding: [0x8f,0xbc,0x00,0x08]
|
|
|
|
# BAD-ABI: jalr $4, $25 # encoding: [0x03,0x20,0x20,0x09]
|
|
# BAD-ABI-NOT: lw $gp, 8($sp) # encoding: [0x8f,0xbc,0x00,0x08]
|
|
|
|
# BAD-ABI-N32: lw $25, %got_disp(foo)($gp) # encoding: [0x8f,0x99,A,A]
|
|
# BAD-ABI-N64: ld $25, %got_disp(foo)($gp) # encoding: [0xdf,0x99,A,A]
|
|
# BAD-ABI: # fixup A - offset: 0, value: %got_disp(foo), kind: fixup_Mips_GOT_DISP
|
|
# BAD-ABI: jalr $25 # encoding: [0x03,0x20,0xf8,0x09]
|
|
# BAD-ABI-NOT: lw $gp, 8($sp) # encoding: [0x8f,0xbc,0x00,0x08]
|
|
# BAD-ABI: .end foo
|