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
70 lines
1.7 KiB
LLVM
70 lines
1.7 KiB
LLVM
; RUN: llc -mtriple=hexagon < %s | FileCheck %s
|
|
|
|
; Check if S4_subi_asl_ri is being generated correctly.
|
|
|
|
; CHECK-LABEL: yes_sub_asl
|
|
; FIXME: We no longer get subi_asl here.
|
|
; XCHECK: [[REG1:(r[0-9]+)]] = sub(#0,asl([[REG1]],#1))
|
|
; CHECK: [[REG1:(r[0-9]+)]] = asl([[REG1]],#1)
|
|
; CHECK: = sub(#0,[[REG1]])
|
|
|
|
; CHECK-LABEL: no_sub_asl
|
|
; CHECK: [[REG2:(r[0-9]+)]] = asl(r{{[0-9]+}},#1)
|
|
; CHECK: r{{[0-9]+}} = sub([[REG2]],r{{[0-9]+}})
|
|
|
|
%struct.rtx_def = type { i16, i8 }
|
|
|
|
@this_insn_number = external global i32, align 4
|
|
|
|
; Function Attrs: nounwind
|
|
define void @yes_sub_asl(ptr %reg, ptr nocapture readonly %setter) #0 {
|
|
entry:
|
|
%0 = load i16, ptr %reg, align 4
|
|
switch i16 %0, label %return [
|
|
i16 2, label %if.end
|
|
i16 5, label %if.end
|
|
]
|
|
|
|
if.end:
|
|
%1 = load i16, ptr %setter, align 4
|
|
%cmp8 = icmp eq i16 %1, 56
|
|
%conv9 = zext i1 %cmp8 to i32
|
|
%2 = load i32, ptr @this_insn_number, align 4
|
|
%3 = mul i32 %2, -2
|
|
%sub = add nsw i32 %conv9, %3
|
|
tail call void @reg_is_born(ptr nonnull %reg, i32 %sub) #2
|
|
br label %return
|
|
|
|
return:
|
|
ret void
|
|
}
|
|
|
|
declare void @reg_is_born(ptr, i32) #1
|
|
|
|
; Function Attrs: nounwind
|
|
define void @no_sub_asl(ptr %reg, ptr nocapture readonly %setter) #0 {
|
|
entry:
|
|
%0 = load i16, ptr %reg, align 4
|
|
switch i16 %0, label %return [
|
|
i16 2, label %if.end
|
|
i16 5, label %if.end
|
|
]
|
|
|
|
if.end:
|
|
%1 = load i32, ptr @this_insn_number, align 4
|
|
%mul = mul nsw i32 %1, 2
|
|
%2 = load i16, ptr %setter, align 4
|
|
%cmp8 = icmp eq i16 %2, 56
|
|
%conv9 = zext i1 %cmp8 to i32
|
|
%sub = sub nsw i32 %mul, %conv9
|
|
tail call void @reg_is_born(ptr nonnull %reg, i32 %sub) #2
|
|
br label %return
|
|
|
|
return:
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind "target-cpu"="hexagonv5" }
|
|
attributes #1 = { "target-cpu"="hexagonv5" }
|
|
attributes #2 = { nounwind }
|