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
58 lines
1.5 KiB
LLVM
58 lines
1.5 KiB
LLVM
; RUN: llc -verify-machineinstrs -o - %s -mtriple=arm64-apple-ios7.0 | FileCheck %s
|
|
|
|
define i64 @ror_i64(i64 %in) {
|
|
; CHECK-LABEL: ror_i64:
|
|
%left = shl i64 %in, 19
|
|
%right = lshr i64 %in, 45
|
|
%val5 = or i64 %left, %right
|
|
; CHECK: ror {{x[0-9]+}}, x0, #45
|
|
ret i64 %val5
|
|
}
|
|
|
|
define i32 @ror_i32(i32 %in) {
|
|
; CHECK-LABEL: ror_i32:
|
|
%left = shl i32 %in, 9
|
|
%right = lshr i32 %in, 23
|
|
%val5 = or i32 %left, %right
|
|
; CHECK: ror {{w[0-9]+}}, w0, #23
|
|
ret i32 %val5
|
|
}
|
|
|
|
define i32 @extr_i32(i32 %lhs, i32 %rhs) {
|
|
; CHECK-LABEL: extr_i32:
|
|
%left = shl i32 %lhs, 6
|
|
%right = lshr i32 %rhs, 26
|
|
%val = or i32 %left, %right
|
|
; Order of lhs and rhs matters here. Regalloc would have to be very odd to use
|
|
; something other than w0 and w1.
|
|
; CHECK: extr {{w[0-9]+}}, w0, w1, #26
|
|
|
|
ret i32 %val
|
|
}
|
|
|
|
define i64 @extr_i64(i64 %lhs, i64 %rhs) {
|
|
; CHECK-LABEL: extr_i64:
|
|
%right = lshr i64 %rhs, 40
|
|
%left = shl i64 %lhs, 24
|
|
%val = or i64 %right, %left
|
|
; Order of lhs and rhs matters here. Regalloc would have to be very odd to use
|
|
; something other than w0 and w1.
|
|
; CHECK: extr {{x[0-9]+}}, x0, x1, #40
|
|
|
|
ret i64 %val
|
|
}
|
|
|
|
; Regression test: a bad experimental pattern crept into git which optimised
|
|
; this pattern to a single EXTR.
|
|
define i32 @extr_regress(i32 %a, i32 %b) {
|
|
; CHECK-LABEL: extr_regress:
|
|
|
|
%sh1 = shl i32 %a, 14
|
|
%sh2 = lshr i32 %b, 14
|
|
%val = or i32 %sh2, %sh1
|
|
; CHECK-NOT: extr {{w[0-9]+}}, {{w[0-9]+}}, {{w[0-9]+}}, #{{[0-9]+}}
|
|
|
|
ret i32 %val
|
|
; CHECK: ret
|
|
}
|