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
73 lines
2.2 KiB
LLVM
73 lines
2.2 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=hexagon -hexagon-instsimplify=0 < %s | FileCheck %s
|
|
|
|
; Check that this compiles successfully.
|
|
|
|
target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"
|
|
target triple = "hexagon"
|
|
|
|
define i32 @fred(ptr %a0, i32 %cond) #0 {
|
|
; CHECK-LABEL: fred:
|
|
; CHECK: // %bb.0: // %b0
|
|
; CHECK-NEXT: {
|
|
; CHECK-NEXT: p0 = cmp.eq(r1,#5); if (!p0.new) jump:t .LBB0_2
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: // %bb.1: // %b2
|
|
; CHECK-NEXT: {
|
|
; CHECK-NEXT: r3:2 = combine(#0,#0)
|
|
; CHECK-NEXT: r1:0 = memd(r0+#0)
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: {
|
|
; CHECK-NEXT: p0 = vcmph.eq(r1:0,r3:2)
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: {
|
|
; CHECK-NEXT: r1:0 = mask(p0)
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: {
|
|
; CHECK-NEXT: r0 = and(r0,#1)
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: {
|
|
; CHECK-NEXT: p0 = cmp.eq(r0,#11)
|
|
; CHECK-NEXT: r0 = #1
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: {
|
|
; CHECK-NEXT: if (p0) r0 = #0
|
|
; CHECK-NEXT: jumpr r31
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: .LBB0_2: // %b14
|
|
; CHECK-NEXT: {
|
|
; CHECK-NEXT: r0 = #0
|
|
; CHECK-NEXT: jumpr r31
|
|
; CHECK-NEXT: }
|
|
b0:
|
|
switch i32 %cond, label %b14 [
|
|
i32 5, label %b2
|
|
i32 3, label %b1
|
|
]
|
|
|
|
b1: ; preds = %b0
|
|
br label %b14
|
|
|
|
b2: ; preds = %b0
|
|
%v2 = load <8 x i16>, ptr %a0, align 64
|
|
%v3 = icmp eq <8 x i16> %v2, zeroinitializer
|
|
%v4 = zext <8 x i1> %v3 to <8 x i16>
|
|
%v5 = add <8 x i16> zeroinitializer, %v4
|
|
%v6 = add <8 x i16> %v5, zeroinitializer
|
|
%v7 = add <8 x i16> %v6, zeroinitializer
|
|
%v8 = extractelement <8 x i16> %v7, i32 0
|
|
%v9 = add i16 %v8, 0
|
|
%v10 = add i16 %v9, 0
|
|
%v11 = add i16 %v10, 0
|
|
%v12 = icmp eq i16 %v11, 11
|
|
br i1 %v12, label %b14, label %b13
|
|
|
|
b13: ; preds = %b2
|
|
ret i32 1
|
|
|
|
b14: ; preds = %b2, %b1, %b0
|
|
ret i32 0
|
|
}
|
|
|
|
attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvx-length64b,+hvxv60" }
|