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
92 lines
2.1 KiB
LLVM
92 lines
2.1 KiB
LLVM
; RUN: llc < %s -O0 -mtriple=i686--
|
|
; RUN: llc < %s -O0 -mtriple=x86_64--
|
|
; RUN: llc < %s -O2 -mtriple=i686--
|
|
; RUN: llc < %s -O2 -mtriple=x86_64--
|
|
|
|
|
|
; Test big index trunc to pointer size:
|
|
|
|
define ptr @test_trunc65(ptr %ptr) nounwind {
|
|
; CHECK-LABEL: test_trunc65
|
|
; CHECK: 3
|
|
%d = getelementptr i8, ptr %ptr, i65 18446744073709551619 ; 2^64 + 3
|
|
ret ptr %d
|
|
}
|
|
|
|
define ptr @test_trunc128(ptr %ptr) nounwind {
|
|
; CHECK-LABEL: test_trunc128
|
|
; CHECK: 5
|
|
%d = getelementptr i8, ptr %ptr, i128 18446744073709551621 ; 2^64 + 5
|
|
ret ptr %d
|
|
}
|
|
|
|
define ptr @test_trunc160(ptr %ptr) nounwind {
|
|
; CHECK-LABEL: test_trunc160
|
|
; CHECK: 8
|
|
%d = getelementptr i8, ptr %ptr, i160 18446744073709551624 ; 2^64 + 8
|
|
ret ptr %d
|
|
}
|
|
|
|
define ptr @test_trunc256(ptr %ptr) nounwind {
|
|
; CHECK-LABEL: test_trunc256
|
|
; CHECK: 13
|
|
%d = getelementptr i8, ptr %ptr, i256 18446744073709551629 ; 2^64 + 13
|
|
ret ptr %d
|
|
}
|
|
|
|
define ptr @test_trunc2048(ptr %ptr) nounwind {
|
|
; CHECK-LABEL: test_trunc2048
|
|
; CHECK: 21
|
|
%d = getelementptr i8, ptr %ptr, i2048 18446744073709551637 ; 2^64 + 21
|
|
ret ptr %d
|
|
}
|
|
|
|
|
|
; Test small index sext to pointer size
|
|
|
|
define ptr @test_sext3(ptr %ptr) nounwind {
|
|
; CHECK-LABEL: test_sext3
|
|
; CHECK: -3
|
|
%d = getelementptr i8, ptr %ptr, i3 -3
|
|
ret ptr %d
|
|
}
|
|
|
|
define ptr @test_sext5(ptr %ptr) nounwind {
|
|
; CHECK-LABEL: test_sext5
|
|
; CHECK: -5
|
|
%d = getelementptr i8, ptr %ptr, i5 -5
|
|
ret ptr %d
|
|
}
|
|
|
|
define ptr @test_sext8(ptr %ptr) nounwind {
|
|
; CHECK-LABEL: test_sext8
|
|
; CHECK: -8
|
|
%d = getelementptr i8, ptr %ptr, i8 -8
|
|
ret ptr %d
|
|
}
|
|
|
|
define ptr @test_sext13(ptr %ptr) nounwind {
|
|
; CHECK-LABEL: test_sext13
|
|
; CHECK: -13
|
|
%d = getelementptr i8, ptr %ptr, i8 -13
|
|
ret ptr %d
|
|
}
|
|
|
|
define ptr @test_sext16(ptr %ptr) nounwind {
|
|
; CHECK-LABEL: test_sext16
|
|
; CHECK: -21
|
|
%d = getelementptr i8, ptr %ptr, i8 -21
|
|
ret ptr %d
|
|
}
|
|
|
|
|
|
; Test out of int64_t range indices
|
|
|
|
; OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7173
|
|
define void @test_outofrange(ptr %ptr) nounwind {
|
|
; CHECK-LABEL: test_outofrange
|
|
%d = getelementptr i96, ptr %ptr, i96 39614081257132168796771975167
|
|
%ld = load i96, ptr %d, align 1
|
|
unreachable
|
|
}
|