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
135 lines
3.7 KiB
LLVM
135 lines
3.7 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: llc %s -o - | FileCheck %s
|
|
; RUN: llc -combiner-disabled %s -o - | FileCheck %s
|
|
|
|
target triple = "aarch64-unknown-linux-gnu"
|
|
|
|
; Verify lowering code in isolation to ensure we can lower shifts that would
|
|
; normally be optimised away.
|
|
|
|
define i32 @fshl_i32_by_zero(i32 %unused, i32 %a, i32 %b) {
|
|
; CHECK-LABEL: fshl_i32_by_zero:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: mov w0, w1
|
|
; CHECK-NEXT: ret
|
|
%r = call i32 @llvm.fshl.i32(i32 %a, i32 %b, i32 0)
|
|
ret i32 %r
|
|
}
|
|
|
|
define i32 @fshl_i32_by_half_srclen(i32 %unused, i32 %a, i32 %b) {
|
|
; CHECK-LABEL: fshl_i32_by_half_srclen:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: extr w0, w1, w2, #16
|
|
; CHECK-NEXT: ret
|
|
%r = call i32 @llvm.fshl.i32(i32 %a, i32 %b, i32 16)
|
|
ret i32 %r
|
|
}
|
|
|
|
define i32 @fshl_i32_by_srclen(i32 %unused, i32 %a, i32 %b) {
|
|
; CHECK-LABEL: fshl_i32_by_srclen:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: mov w0, w1
|
|
; CHECK-NEXT: ret
|
|
%r = call i32 @llvm.fshl.i32(i32 %a, i32 %b, i32 32)
|
|
ret i32 %r
|
|
}
|
|
|
|
define i32 @fshl_i32_by_srclen_plus1(i32 %unused, i32 %a, i32 %b) {
|
|
; CHECK-LABEL: fshl_i32_by_srclen_plus1:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: extr w0, w1, w2, #31
|
|
; CHECK-NEXT: ret
|
|
%r = call i32 @llvm.fshl.i32(i32 %a, i32 %b, i32 33)
|
|
ret i32 %r
|
|
}
|
|
|
|
define i64 @fshl_i64_by_zero(i64 %unused, i64 %a, i64 %b) {
|
|
; CHECK-LABEL: fshl_i64_by_zero:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: mov x0, x1
|
|
; CHECK-NEXT: ret
|
|
%r = call i64 @llvm.fshl.i64(i64 %a, i64 %b, i64 0)
|
|
ret i64 %r
|
|
}
|
|
|
|
define i64 @fshl_i64_by_srclen(i64 %unused, i64 %a, i64 %b) {
|
|
; CHECK-LABEL: fshl_i64_by_srclen:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: mov x0, x1
|
|
; CHECK-NEXT: ret
|
|
%r = call i64 @llvm.fshl.i64(i64 %a, i64 %b, i64 64)
|
|
ret i64 %r
|
|
}
|
|
|
|
define i64 @fshl_i64_by_srclen_plus1(i64 %unused, i64 %a, i64 %b) {
|
|
; CHECK-LABEL: fshl_i64_by_srclen_plus1:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: extr x0, x1, x2, #63
|
|
; CHECK-NEXT: ret
|
|
%r = call i64 @llvm.fshl.i64(i64 %a, i64 %b, i64 65)
|
|
ret i64 %r
|
|
}
|
|
|
|
define i32 @fshr_i32_by_zero(i32 %unused, i32 %a, i32 %b) {
|
|
; CHECK-LABEL: fshr_i32_by_zero:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: mov w0, w2
|
|
; CHECK-NEXT: ret
|
|
%r = call i32 @llvm.fshr.i32(i32 %a, i32 %b, i32 0)
|
|
ret i32 %r
|
|
}
|
|
|
|
define i32 @fshr_i32_by_srclen(i32 %unused, i32 %a, i32 %b) {
|
|
; CHECK-LABEL: fshr_i32_by_srclen:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: mov w0, w2
|
|
; CHECK-NEXT: ret
|
|
%r = call i32 @llvm.fshr.i32(i32 %a, i32 %b, i32 32)
|
|
ret i32 %r
|
|
}
|
|
|
|
define i32 @fshr_i32_by_half_srclen(i32 %unused, i32 %a, i32 %b) {
|
|
; CHECK-LABEL: fshr_i32_by_half_srclen:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: extr w0, w1, w2, #16
|
|
; CHECK-NEXT: ret
|
|
%r = call i32 @llvm.fshr.i32(i32 %a, i32 %b, i32 16)
|
|
ret i32 %r
|
|
}
|
|
|
|
define i32 @fshr_i32_by_srclen_plus1(i32 %unused, i32 %a, i32 %b) {
|
|
; CHECK-LABEL: fshr_i32_by_srclen_plus1:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: extr w0, w1, w2, #1
|
|
; CHECK-NEXT: ret
|
|
%r = call i32 @llvm.fshr.i32(i32 %a, i32 %b, i32 33)
|
|
ret i32 %r
|
|
}
|
|
|
|
define i64 @fshr_i64_by_zero(i64 %unused, i64 %a, i64 %b) {
|
|
; CHECK-LABEL: fshr_i64_by_zero:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: mov x0, x2
|
|
; CHECK-NEXT: ret
|
|
%r = call i64 @llvm.fshr.i64(i64 %a, i64 %b, i64 0)
|
|
ret i64 %r
|
|
}
|
|
|
|
define i64 @fshr_i64_by_srclen(i64 %unused, i64 %a, i64 %b) {
|
|
; CHECK-LABEL: fshr_i64_by_srclen:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: mov x0, x2
|
|
; CHECK-NEXT: ret
|
|
%r = call i64 @llvm.fshr.i64(i64 %a, i64 %b, i64 64)
|
|
ret i64 %r
|
|
}
|
|
|
|
define i64 @fshr_i64_by_srclen_plus1(i64 %unused, i64 %a, i64 %b) {
|
|
; CHECK-LABEL: fshr_i64_by_srclen_plus1:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: extr x0, x1, x2, #1
|
|
; CHECK-NEXT: ret
|
|
%r = call i64 @llvm.fshr.i64(i64 %a, i64 %b, i64 65)
|
|
ret i64 %r
|
|
}
|