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
54 lines
1.2 KiB
LLVM
54 lines
1.2 KiB
LLVM
; RUN: llc -mtriple=aarch64-none-linux-gnu < %s | FileCheck %s
|
|
; RUN: llc %s -pass-remarks-missed=gisel* -mtriple=aarch64-none-linux-gnu -global-isel -o - 2>&1 | FileCheck %s
|
|
|
|
; CHECK-NOT: remark
|
|
|
|
; Check that the eon instruction is generated instead of eor,movn
|
|
define i64 @test1(i64 %a, i64 %b, i64 %c) {
|
|
; CHECK-LABEL: test1:
|
|
; CHECK: eon
|
|
; CHECK: ret
|
|
entry:
|
|
%shl = shl i64 %b, 4
|
|
%neg = xor i64 %a, -1
|
|
%xor = xor i64 %shl, %neg
|
|
ret i64 %xor
|
|
}
|
|
|
|
; Same check with multiple uses of %neg
|
|
define i64 @test2(i64 %a, i64 %b, i64 %c) {
|
|
; CHECK-LABEL: test2:
|
|
; CHECK: eon
|
|
; CHECK: eon
|
|
; CHECK: lsl
|
|
; CHECK: ret
|
|
entry:
|
|
%shl = shl i64 %b, 4
|
|
%neg = xor i64 %shl, -1
|
|
%xor = xor i64 %neg, %a
|
|
%xor1 = xor i64 %c, %neg
|
|
%shl2 = shl i64 %xor, %xor1
|
|
ret i64 %shl2
|
|
}
|
|
|
|
; Check that eon is generated if the xor is a disjoint or.
|
|
define i64 @disjoint_or(i64 %a, i64 %b) {
|
|
; CHECK-LABEL: disjoint_or:
|
|
; CHECK: eon
|
|
; CHECK: ret
|
|
%or = or disjoint i64 %a, %b
|
|
%eon = xor i64 %or, -1
|
|
ret i64 %eon
|
|
}
|
|
|
|
; Check that eon is *not* generated if the or is not disjoint.
|
|
define i64 @normal_or(i64 %a, i64 %b) {
|
|
; CHECK-LABEL: normal_or:
|
|
; CHECK: orr
|
|
; CHECK: mvn
|
|
; CHECK: ret
|
|
%or = or i64 %a, %b
|
|
%not = xor i64 %or, -1
|
|
ret i64 %not
|
|
}
|