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
93 lines
1.8 KiB
LLVM
93 lines
1.8 KiB
LLVM
; RUN: llc -mtriple=mips64 -mcpu=octeon -target-abi=n64 < %s -o - | FileCheck %s
|
|
|
|
define i64 @cins_zext(i32 signext %n) {
|
|
entry:
|
|
%shl = shl i32 %n, 5
|
|
%conv = zext i32 %shl to i64
|
|
ret i64 %conv
|
|
|
|
; CHECK-LABEL: cins_zext:
|
|
; CHECK: cins $[[R0:[0-9]+]], $[[R1:[0-9]+]], 5, 26
|
|
|
|
}
|
|
|
|
define i64 @cins_and_shl(i64 zeroext %n) {
|
|
entry:
|
|
%and = shl i64 %n, 8
|
|
%shl = and i64 %and, 16776960
|
|
ret i64 %shl
|
|
|
|
; CHECK-LABEL: cins_and_shl:
|
|
; CHECK: cins $[[R0:[0-9]+]], $[[R1:[0-9]+]], 8, 15
|
|
|
|
}
|
|
|
|
define i64 @cins_and_shl32(i64 zeroext %n) {
|
|
entry:
|
|
%and = shl i64 %n, 38
|
|
%shl = and i64 %and, 18014123631575040
|
|
ret i64 %shl
|
|
|
|
; CHECK-LABEL: cins_and_shl32:
|
|
; CHECK: cins32 $[[R0:[0-9]+]], $[[R1:[0-9]+]], 6, 15
|
|
|
|
}
|
|
|
|
define zeroext i16 @cins_and_shl_16(i16 zeroext %n) {
|
|
entry:
|
|
%0 = shl i16 %n, 2
|
|
%1 = and i16 %0, 60
|
|
ret i16 %1
|
|
|
|
; CHECK-LABEL: cins_and_shl_16:
|
|
; CHECK: cins $[[R0:[0-9]+]], $[[R1:[0-9]+]], 2, 3
|
|
|
|
}
|
|
|
|
define zeroext i8 @cins_and_shl_8(i8 zeroext %n) {
|
|
entry:
|
|
%0 = shl i8 %n, 2
|
|
%1 = and i8 %0, 12
|
|
ret i8 %1
|
|
|
|
; CHECK-LABEL: cins_and_shl_8:
|
|
; CHECK: cins $[[R0:[0-9]+]], $[[R1:[0-9]+]], 2, 1
|
|
|
|
}
|
|
|
|
define i32 @cins_i32(i32 signext %a) {
|
|
entry:
|
|
%and = shl i32 %a, 17
|
|
%shl = and i32 %and, 536739840
|
|
ret i32 %shl
|
|
|
|
; CHECK-LABEL: cins_i32:
|
|
; CHECK: cins $[[R0:[0-9]+]], $[[R1:[0-9]+]], 17, 11
|
|
|
|
}
|
|
|
|
define i64 @cins_shl_and(i32 signext %n) {
|
|
entry:
|
|
%and = and i32 %n, 65535
|
|
%conv = zext i32 %and to i64
|
|
%shl = shl nuw nsw i64 %conv, 31
|
|
ret i64 %shl
|
|
|
|
; CHECK-LABEL: cins_shl_and:
|
|
; CHECK: cins $[[R0:[0-9]+]], $[[R1:[0-9]+]], 31, 15
|
|
|
|
}
|
|
|
|
|
|
define i64 @cins_shl_and32(i32 signext %n) {
|
|
entry:
|
|
%and = and i32 %n, 65535
|
|
%conv = zext i32 %and to i64
|
|
%shl = shl nuw nsw i64 %conv, 47
|
|
ret i64 %shl
|
|
|
|
; CHECK-LABEL: cins_shl_and32:
|
|
; CHECK: cins32 $[[R0:[0-9]+]], $[[R1:[0-9]+]], 15, 15
|
|
|
|
}
|