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
62 lines
1.8 KiB
LLVM
62 lines
1.8 KiB
LLVM
; RUN: llc -mtriple=mipsel-linux-gnu -mcpu=mips32 -mattr=+mips16 -verify-machineinstrs < %s | FileCheck %s -check-prefixes=MIPS16
|
|
|
|
define i32 @cttz_i32(i32 %a) {
|
|
; MIPS16-LABEL: cttz_i32:
|
|
; MIPS16: # %bb.0: # %entry
|
|
; MIPS16-NEXT: not $2, $4
|
|
; MIPS16-NEXT: addiu $4, -1 # 16 bit inst
|
|
; MIPS16-NEXT: and $4, $2
|
|
; MIPS16-NEXT: srl $2, $4, 1
|
|
; MIPS16-NEXT: lw $3, $CPI0_0 # 16 bit inst
|
|
; MIPS16-NEXT: and $3, $2
|
|
; MIPS16-NEXT: subu $2, $4, $3
|
|
; MIPS16-NEXT: lw $3, $CPI0_1 # 16 bit inst
|
|
; MIPS16-NEXT: srl $4, $2, 2
|
|
; MIPS16-NEXT: and $2, $3
|
|
; MIPS16-NEXT: and $4, $3
|
|
; MIPS16-NEXT: addu $2, $2, $4
|
|
; MIPS16-NEXT: srl $3, $2, 4
|
|
; MIPS16-NEXT: addu $2, $2, $3
|
|
; MIPS16-NEXT: lw $3, $CPI0_2 # 16 bit inst
|
|
; MIPS16-NEXT: and $3, $2
|
|
; MIPS16-NEXT: lw $2, $CPI0_3 # 16 bit inst
|
|
; MIPS16-NEXT: mult $3, $2
|
|
; MIPS16-NEXT: mflo $2
|
|
; MIPS16-NEXT: srl $2, $2, 24
|
|
; MIPS16-NEXT: jrc $ra
|
|
|
|
entry:
|
|
%0 = call i32 @llvm.cttz.i32(i32 %a, i1 false)
|
|
ret i32 %0
|
|
}
|
|
declare i32 @llvm.cttz.i32(i32, i1 immarg)
|
|
|
|
define i64 @cttz_i64(i64 %a) {
|
|
; MIPS16-LABEL: cttz_i64:
|
|
; MIPS16: # %bb.1: # %entry
|
|
; MIPS16-NEXT: not $4, $5
|
|
; MIPS16-NEXT: addiu $5, -1 # 16 bit inst
|
|
; MIPS16-NEXT: and $5, $4
|
|
; MIPS16-NEXT: srl $4, $5, 1
|
|
; MIPS16-NEXT: and $4, $7
|
|
; MIPS16-NEXT: subu $4, $5, $4
|
|
; MIPS16-NEXT: srl $5, $4, 2
|
|
; MIPS16-NEXT: and $4, $6
|
|
; MIPS16-NEXT: and $5, $6
|
|
; MIPS16-NEXT: addu $4, $4, $5
|
|
; MIPS16-NEXT: srl $5, $4, 4
|
|
; MIPS16-NEXT: addu $4, $4, $5
|
|
; MIPS16-NEXT: and $4, $3
|
|
; MIPS16-NEXT: mult $4, $2
|
|
; MIPS16-NEXT: mflo $2
|
|
; MIPS16-NEXT: srl $2, $2, 24
|
|
; MIPS16-NEXT: addiu $2, 32 # 16 bit inst
|
|
; MIPS16-NEXT: li $3, 0
|
|
; MIPS16-NEXT: jrc $ra
|
|
|
|
entry:
|
|
%0 = call i64 @llvm.cttz.i64(i64 %a, i1 false)
|
|
ret i64 %0
|
|
}
|
|
declare i64 @llvm.cttz.i64(i64, i1 immarg)
|