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

100 lines
1.7 KiB
LLVM

; RUN: llc -mtriple=hexagon < %s | FileCheck %s
; s4_0Imm
; CHECK: memb(r0++#-1) = r1
define ptr @foo1(ptr %a, i8 %b) {
store i8 %b, ptr %a
%c = getelementptr i8, ptr %a, i32 -1
ret ptr %c
}
; s4_1Imm
; CHECK: memh(r0++#-2) = r1
define ptr @foo2(ptr %a, i16 %b) {
store i16 %b, ptr %a
%c = getelementptr i16, ptr %a, i32 -1
ret ptr %c
}
; s4_2Imm
; CHECK: memw(r0++#-4) = r1
define ptr @foo3(ptr %a, i32 %b) {
store i32 %b, ptr %a
%c = getelementptr i32, ptr %a, i32 -1
ret ptr %c
}
; s4_3Imm
; CHECK: memd(r0++#-8) = r3:2
define ptr @foo4(ptr %a, i64 %b) {
store i64 %b, ptr %a
%c = getelementptr i64, ptr %a, i32 -1
ret ptr %c
}
; s6Ext
; CHECK: if (p0.new) memw(r0+#0) = #-1
define void @foo5(ptr %a, i1 %b) {
br i1 %b, label %x, label %y
x:
store i32 -1, ptr %a
ret void
y:
ret void
}
; s10Ext
; CHECK: p0 = cmp.eq(r0,#-1)
define i1 @foo7(i32 %a) {
%b = icmp eq i32 %a, -1
ret i1 %b
}
; s11_0Ext
; CHECK: memb(r0+#-1) = r1
define void @foo8(ptr %a, i8 %b) {
%c = getelementptr i8, ptr %a, i32 -1
store i8 %b, ptr %c
ret void
}
; s11_1Ext
; CHECK: memh(r0+#-2) = r1
define void @foo9(ptr %a, i16 %b) {
%c = getelementptr i16, ptr %a, i32 -1
store i16 %b, ptr %c
ret void
}
; s11_2Ext
; CHECK: memw(r0+#-4) = r1
define void @foo10(ptr %a, i32 %b) {
%c = getelementptr i32, ptr %a, i32 -1
store i32 %b, ptr %c
ret void
}
; s11_3Ext
; CHECK: memd(r0+#-8) = r3:2
define void @foo11(ptr %a, i64 %b) {
%c = getelementptr i64, ptr %a, i32 -1
store i64 %b, ptr %c
ret void
}
; s12Ext
; CHECK: r1 = mux(p0,#-1,r0)
define i32 @foo12(i32 %a, i1 %b) {
br i1 %b, label %x, label %y
x:
ret i32 -1
y:
ret i32 %a
}
; s16Ext
; CHECK: r0 = #-2
define i32 @foo13() {
ret i32 -2
}