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
69 lines
1.5 KiB
LLVM
69 lines
1.5 KiB
LLVM
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \
|
|
; RUN: not grep addi
|
|
; RUN: llc -verify-machineinstrs -code-model=small < %s -mtriple=ppc64-- | \
|
|
; RUN: not grep addi
|
|
|
|
@Glob = global i64 4
|
|
|
|
define ptr @test0(ptr %X, ptr %dest) nounwind {
|
|
%Y = getelementptr i32, ptr %X, i32 4
|
|
%A = load i32, ptr %Y
|
|
store i32 %A, ptr %dest
|
|
ret ptr %Y
|
|
}
|
|
|
|
define ptr @test1(ptr %X, ptr %dest) nounwind {
|
|
%Y = getelementptr i32, ptr %X, i32 4
|
|
%A = load i32, ptr %Y
|
|
store i32 %A, ptr %dest
|
|
ret ptr %Y
|
|
}
|
|
|
|
define ptr @test2(ptr %X, ptr %dest) nounwind {
|
|
%Y = getelementptr i16, ptr %X, i32 4
|
|
%A = load i16, ptr %Y
|
|
%B = sext i16 %A to i32
|
|
store i32 %B, ptr %dest
|
|
ret ptr %Y
|
|
}
|
|
|
|
define ptr @test3(ptr %X, ptr %dest) nounwind {
|
|
%Y = getelementptr i16, ptr %X, i32 4
|
|
%A = load i16, ptr %Y
|
|
%B = zext i16 %A to i32
|
|
store i32 %B, ptr %dest
|
|
ret ptr %Y
|
|
}
|
|
|
|
define ptr @test3a(ptr %X, ptr %dest) nounwind {
|
|
%Y = getelementptr i16, ptr %X, i32 4
|
|
%A = load i16, ptr %Y
|
|
%B = sext i16 %A to i64
|
|
store i64 %B, ptr %dest
|
|
ret ptr %Y
|
|
}
|
|
|
|
define ptr @test4(ptr %X, ptr %dest) nounwind {
|
|
%Y = getelementptr i64, ptr %X, i32 4
|
|
%A = load i64, ptr %Y
|
|
store i64 %A, ptr %dest
|
|
ret ptr %Y
|
|
}
|
|
|
|
define ptr @test5(ptr %X) nounwind {
|
|
%Y = getelementptr i16, ptr %X, i32 4
|
|
store i16 7, ptr %Y
|
|
ret ptr %Y
|
|
}
|
|
|
|
define ptr @test6(ptr %X, i64 %A) nounwind {
|
|
%Y = getelementptr i64, ptr %X, i32 4
|
|
store i64 %A, ptr %Y
|
|
ret ptr %Y
|
|
}
|
|
|
|
define ptr @test7(ptr %X, i64 %A) nounwind {
|
|
store i64 %A, ptr @Glob
|
|
ret ptr @Glob
|
|
}
|