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
56 lines
1.9 KiB
LLVM
56 lines
1.9 KiB
LLVM
; RUN: llc -mtriple=mipsel -mattr=+xgot \
|
|
; RUN: -relocation-model=pic < %s | FileCheck %s -check-prefix=O32
|
|
; RUN: llc -mtriple=mips64el -mcpu=mips64r2 -mattr=+xgot \
|
|
; RUN: -relocation-model=pic < %s | FileCheck %s -check-prefix=N64
|
|
; RUN: llc -mtriple=mipsel -mattr=+xgot -fast-isel \
|
|
; RUN: -relocation-model=pic < %s | FileCheck %s -check-prefix=O32
|
|
; RUN: llc -mtriple=mips64el -mcpu=mips64r2 -mattr=+xgot -fast-isel \
|
|
; RUN: -relocation-model=pic < %s | FileCheck %s -check-prefix=N64
|
|
|
|
@v0 = external global i32
|
|
|
|
define void @foo1() nounwind {
|
|
entry:
|
|
; O32-LABEL: foo1:
|
|
; O32: lui $[[R0:[0-9]+]], %got_hi(v0)
|
|
; O32: addu $[[R1:[0-9]+]], $[[R0]], ${{[a-z0-9]+}}
|
|
; O32: lw ${{[0-9]+}}, %got_lo(v0)($[[R1]])
|
|
; O32: lui $[[R2:[0-9]+]], %call_hi(foo0)
|
|
; O32: addu $[[R3:[0-9]+]], $[[R2]], ${{[a-z0-9]+}}
|
|
; O32: lw ${{[0-9]+}}, %call_lo(foo0)($[[R3]])
|
|
|
|
; N64-LABEL: foo1:
|
|
; N64-DAG: lui $[[R0:[0-9]+]], %got_hi(v0)
|
|
; N64-DAG: daddu $[[R1:[0-9]+]], $[[R0]], ${{[a-z0-9]+}}
|
|
; N64-DAG: lui $[[R2:[0-9]+]], %call_hi(foo0)
|
|
; N64-DAG: daddu $[[R3:[0-9]+]], $[[R2]], ${{[a-z0-9]+}}
|
|
; N64-DAG: ld ${{[0-9]+}}, %got_lo(v0)($[[R1]])
|
|
; N64-DAG: ld ${{[0-9]+}}, %call_lo(foo0)($[[R3]])
|
|
|
|
%0 = load i32, ptr @v0, align 4
|
|
tail call void @foo0(i32 %0) nounwind
|
|
ret void
|
|
}
|
|
|
|
declare void @foo0(i32)
|
|
|
|
; call to external function.
|
|
|
|
define void @foo2(ptr nocapture %d, ptr nocapture %s, i32 %n) nounwind {
|
|
entry:
|
|
; O32-LABEL: foo2:
|
|
; O32: lui $[[R2:[0-9]+]], %call_hi(memcpy)
|
|
; O32: addu $[[R3:[0-9]+]], $[[R2]], ${{[a-z0-9]+}}
|
|
; O32: lw ${{[0-9]+}}, %call_lo(memcpy)($[[R3]])
|
|
|
|
; N64-LABEL: foo2:
|
|
; N64: lui $[[R2:[0-9]+]], %call_hi(memcpy)
|
|
; N64: daddu $[[R3:[0-9]+]], $[[R2]], ${{[a-z0-9]+}}
|
|
; N64: ld ${{[0-9]+}}, %call_lo(memcpy)($[[R3]])
|
|
|
|
tail call void @llvm.memcpy.p0.p0.i32(ptr align 4 %d, ptr align 4 %s, i32 %n, i1 false)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.memcpy.p0.p0.i32(ptr nocapture, ptr nocapture, i32, i1) nounwind
|