Files
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

63 lines
2.4 KiB
LLVM

; RUN: llc < %s -mtriple=mips -mcpu=mips32 -mips-ssection-threshold=8 -verify-machineinstrs \
; RUN: -relocation-model=static -mattr=+noabicalls -mgpopt \
; RUN: | FileCheck %s --check-prefixes=BASIC,COMMON,ADDR32
; RUN: llc < %s -mtriple=mips -mcpu=mips32 -mips-ssection-threshold=8 -verify-machineinstrs \
; RUN: -relocation-model=static -mattr=+noabicalls -mgpopt -membedded-data \
; RUN: | FileCheck %s --check-prefixes=EMBDATA,COMMON,ADDR32
; RUN: llc < %s -mtriple=mips64 -mcpu=mips4 -mips-ssection-threshold=8 -verify-machineinstrs \
; RUN: -relocation-model=static -mattr=+noabicalls -mgpopt -target-abi n64 \
; RUN: | FileCheck %s --check-prefixes=BASIC,COMMON,N64
; RUN: llc < %s -mtriple=mips64 -mcpu=mips4 -mips-ssection-threshold=8 -verify-machineinstrs \
; RUN: -relocation-model=static -mattr=+noabicalls,+sym32 -mgpopt -target-abi n64 \
; RUN: | FileCheck %s --check-prefixes=BASIC,COMMON,N64
; RUN: llc < %s -mtriple=mips64 -mcpu=mips4 -mips-ssection-threshold=8 -verify-machineinstrs \
; RUN: -relocation-model=static -mattr=+noabicalls -mgpopt -target-abi n32 \
; RUN: | FileCheck %s --check-prefixes=BASIC,COMMON,ADDR32
; Test the layout of objects when compiling for static, noabicalls environment.
%struct.anon = type { i32, i32 }
; Check that when synthesizing a pointer to the second element of foo, that
; we use the correct addition operation. O32 and N32 have 32-bit address
; spaces, so they use addiu. N64 has a 64bit address space, but has a submode
; where symbol sizes are 32 bits. In those cases we use daddiu.
; CHECK-LABEL: A1:
; N64: daddiu ${{[0-9]+}}, $gp, %gp_rel(foo)
; ADDR32: addiu ${{[0-9]+}}, $gp, %gp_rel(foo)
; BASIC: .type s0,@object
; BASIC-NEXT: .section .sdata,"aw",@progbits
; EMDATA: .type s0,@object
; EMDATA-NEXT: .section .rodata,"a",@progbits
@s0 = constant [8 x i8] c"AAAAAAA\00", align 4
; BASIC: .type foo,@object
; BASIC-NOT: .section
; EMBDATA: .type foo,@object
; EMBDATA-NEXT: .section .sdata,"aw",@progbits
@foo = global %struct.anon { i32 2, i32 3 }
; COMMON: .type bar,@object
; COMMON-NEXT: .section .sbss,"aw",@nobits
@bar = global %struct.anon zeroinitializer
define ptr @A0() nounwind {
entry:
ret ptr @s0
}
define i32 @A1() nounwind {
entry:
load i32, ptr @foo, align 8
load i32, ptr getelementptr (%struct.anon, ptr @foo, i32 0, i32 1), align 4
add i32 %1, %0
ret i32 %2
}