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

66 lines
2.1 KiB
LLVM

; RUN: llc -mtriple=hexagon < %s | FileCheck %s
; Check that we can compile these functions. Don't check anything else for now.
; CHECK-LABEL: test_0:
; CHECK: tstbit
; CHECK-LABEL: test_1:
; CHECK: tstbit
; CHECK-LABEL: test_2:
; CHECK: tstbit
define i32 @test_0(i32 %a0, i32 %a1) #0 {
%t0 = trunc i32 %a0 to i1
%t1 = trunc i32 %a1 to i1
%t2 = insertelement <2 x i1> undef, i1 %t0, i32 0
%t3 = insertelement <2 x i1> %t2, i1 %t1, i32 1
%t4 = shufflevector <2 x i1> %t3, <2 x i1> undef, <8 x i32> <i32 0, i32 1, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>
%t5 = bitcast <8 x i1> %t4 to i8
%t6 = zext i8 %t5 to i32
ret i32 %t6
}
define i32 @test_1(i32 %a0, i32 %a1, i32 %a2, i32 %a3) #0 {
%t0 = trunc i32 %a0 to i1
%t1 = trunc i32 %a1 to i1
%t2 = trunc i32 %a2 to i1
%t3 = trunc i32 %a3 to i1
%t4 = insertelement <4 x i1> undef, i1 %t0, i32 0
%t5 = insertelement <4 x i1> %t4, i1 %t1, i32 1
%t6 = insertelement <4 x i1> %t5, i1 %t2, i32 2
%t7 = insertelement <4 x i1> %t6, i1 %t3, i32 3
%t8 = shufflevector <4 x i1> %t7, <4 x i1> undef, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef>
%t9 = bitcast <8 x i1> %t8 to i8
%ta = zext i8 %t9 to i32
ret i32 %ta
}
define i32 @test_2(i32 %a0, i32 %a1, i32 %a2, i32 %a3, i32 %a4, i32 %a5, i32 %a6, i32 %a7) #0 {
%t0 = trunc i32 %a0 to i1
%t1 = trunc i32 %a1 to i1
%t2 = trunc i32 %a2 to i1
%t3 = trunc i32 %a3 to i1
%t4 = trunc i32 %a4 to i1
%t5 = trunc i32 %a5 to i1
%t6 = trunc i32 %a6 to i1
%t7 = trunc i32 %a7 to i1
%t8 = insertelement <8 x i1> undef, i1 %t0, i32 0
%t9 = insertelement <8 x i1> %t8, i1 %t1, i32 1
%ta = insertelement <8 x i1> %t9, i1 %t2, i32 2
%tb = insertelement <8 x i1> %ta, i1 %t3, i32 3
%tc = insertelement <8 x i1> %tb, i1 %t4, i32 4
%td = insertelement <8 x i1> %tc, i1 %t5, i32 5
%te = insertelement <8 x i1> %td, i1 %t6, i32 6
%tf = insertelement <8 x i1> %te, i1 %t7, i32 7
%tg = bitcast <8 x i1> %tf to i8
%th = zext i8 %tg to i32
ret i32 %th
}
attributes #0 = { nounwind readnone }