Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-objdump/ELF/ARM/literal-arm.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

67 lines
2.1 KiB
ArmAsm

@@ Check that PC-relative memory addressing is annotated
@ RUN: llvm-mc %s -triple=armv7 -filetype=obj | \
@ RUN: llvm-objdump --no-print-imm-hex -d --no-show-raw-insn --triple=armv7 - | \
@ RUN: FileCheck %s
.text
foo:
@ CHECK: 00000000 <foo>:
.word 0x01020304
_start:
@ CHECK: 00000004 <_start>:
@@ Check a special case immediate for AddrMode_i12
ldr r1, [pc, #-0]
@ CHECK-NEXT: 4: ldr r1, [pc, #-0] @ 0xc <_start+0x8>
@@ Check AddrMode_i12 instructions, with positive and negative immediates
ldr r0, foo
ldrb r0, bar
pli _start
pld bar
@ CHECK-NEXT: 8: ldr r0, [pc, #-16] @ 0x0 <foo>
@ CHECK-NEXT: c: ldrb r0, [pc, #48] @ 0x44 <bar>
@ CHECK-NEXT: 10: pli [pc, #-20] @ 0x4 <_start>
@ CHECK-NEXT: 14: pld [pc, #40] @ 0x44 <bar>
@@ Check that AddrMode_i12 instructions that do not use PC-relative addressing
@@ are not annotated
ldr r0, [r1, #8]
@ CHECK-NEXT: 18: ldr r0, [r1, #8]{{$}}
@@ Check AddrMode3 instructions, with positive and negative immediates
ldrd r0, r1, foo
ldrh r0, bar
@ CHECK-NEXT: 1c: ldrd r0, r1, [pc, #-36] @ 0x0 <foo>
@ CHECK-NEXT: 20: ldrh r0, [pc, #28] @ 0x44 <bar>
@@ Check that AddrMode3 instruction that do not use PC+imm addressing are not
@@ annotated
ldrh r0, [r1, #8]
ldrh r0, [pc, r2]
@ CHECK-NEXT: 24: ldrh r0, [r1, #8]{{$}}
@ CHECK-NEXT: 28: ldrh r0, [pc, r2]{{$}}
@@ Check AddrMode5 instructions, with positive and negative immediates
ldc p14, c5, foo
ldcl p6, c4, bar
ldc2 p5, c2, foo
ldc2l p3, c1, bar
@ CHECK-NEXT: 2c: ldc p14, c5, [pc, #-52] @ 0x0 <foo>
@ CHECK-NEXT: 30: ldcl p6, c4, [pc, #12] @ 0x44 <bar>
@ CHECK-NEXT: 34: ldc2 p5, c2, [pc, #-60] @ 0x0 <foo>
@ CHECK-NEXT: 38: ldc2l p3, c1, [pc, #4] @ 0x44 <bar>
@@ Check that AddrMode5 instruction that do not use PC+imm addressing are not
@@ annotated
ldc p14, c5, [r1, #8]
ldc p14, c5, [pc], {16}
@ CHECK-NEXT: 3c: ldc p14, c5, [r1, #8]{{$}}
@ CHECK-NEXT: 40: ldc p14, c5, [pc], {16}{{$}}
bar:
@ CHECK: 00000044 <bar>:
.word 0x01020304