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

44 lines
1.8 KiB
LLVM

; RUN: llc -mcpu=pwr7 -ppc-asm-full-reg-names -mtriple=powerpc-- \
; RUN: -verify-machineinstrs < %s | FileCheck %s
; RUN: llc -mattr=allow-unaligned-fp-access -ppc-asm-full-reg-names \
; RUN: -mtriple=powerpc-- -verify-machineinstrs < %s | FileCheck %s
; RUN: llc -ppc-asm-full-reg-names -mtriple=powerpc-- \
; RUN: -verify-machineinstrs < %s | FileCheck %s --check-prefix=UNALIGN
; Test case as provided by author in https://bugs.llvm.org/show_bug.cgi?id=40554
%struct.anon = type { i32, [5 x i8] }
@s = dso_local local_unnamed_addr global %struct.anon { i32 0, [5 x i8] c"\00B\F6\E9y" }, align 4
@.str = private unnamed_addr constant [4 x i8] c"%g\0A\00", align 1
; Function Attrs: nofree nounwind
define dso_local i32 @main() local_unnamed_addr {
; CHECK-LABEL: main:
; CHECK: lfs f1, 5(r3)
; CHECK: blr
;
; UNALIGN-LABEL: main:
; UNALIGN: lfs f1, 12(r1)
; UNALIGN: blr
entry:
%0 = load i8, ptr getelementptr inbounds (%struct.anon, ptr @s, i32 0, i32 1, i32 1), align 1
%conv = zext i8 %0 to i32
%shl = shl nuw i32 %conv, 24
%1 = load i8, ptr getelementptr inbounds (%struct.anon, ptr @s, i32 0, i32 1, i32 2), align 2
%conv1 = zext i8 %1 to i32
%shl2 = shl nuw nsw i32 %conv1, 16
%add = or i32 %shl2, %shl
%2 = load i8, ptr getelementptr inbounds (%struct.anon, ptr @s, i32 0, i32 1, i32 3), align 1
%conv3 = zext i8 %2 to i32
%shl4 = shl nuw nsw i32 %conv3, 8
%add5 = or i32 %add, %shl4
%3 = load i8, ptr getelementptr inbounds (%struct.anon, ptr @s, i32 0, i32 1, i32 4), align 4
%conv6 = zext i8 %3 to i32
%add7 = or i32 %add5, %conv6
%4 = bitcast i32 %add7 to float
%conv8 = fpext float %4 to double
%call = tail call i32 (ptr, ...) @printf(ptr nonnull dereferenceable(1) @.str, double %conv8)
ret i32 0
}
; Function Attrs: nofree nounwind
declare i32 @printf(ptr nocapture readonly, ...) local_unnamed_addr