Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/CSKY/bseti_bclri.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

118 lines
2.7 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
; RUN: llc -verify-machineinstrs -csky-no-aliases -mattr=+e2 < %s -mtriple=csky | FileCheck %s
define i32 @test_or_128(i32 noundef %0) {
; CHECK-LABEL: test_or_128:
; CHECK: # %bb.0:
; CHECK-NEXT: ori32 a0, a0, 128
; CHECK-NEXT: rts16
%2 = or i32 %0, 128
ret i32 %2
}
define i32 @test_or_131072(i32 noundef %0) {
; CHECK-LABEL: test_or_131072:
; CHECK: # %bb.0:
; CHECK-NEXT: bseti16 a0, 17
; CHECK-NEXT: rts16
%2 = or i32 %0, 131072
ret i32 %2
}
define i32 @test_or_192(i32 noundef %0) {
; CHECK-LABEL: test_or_192:
; CHECK: # %bb.0:
; CHECK-NEXT: ori32 a0, a0, 192
; CHECK-NEXT: rts16
%2 = or i32 %0, 192
ret i32 %2
}
define i32 @test_or_3072(i32 noundef %0) {
; CHECK-LABEL: test_or_3072:
; CHECK: # %bb.0:
; CHECK-NEXT: ori32 a0, a0, 3072
; CHECK-NEXT: rts16
%2 = or i32 %0, 3072
ret i32 %2
}
define i32 @test_or_196608(i32 noundef %0) {
; CHECK-LABEL: test_or_196608:
; CHECK: # %bb.0:
; CHECK-NEXT: movih32 a1, 3
; CHECK-NEXT: or16 a0, a1
; CHECK-NEXT: rts16
%2 = or i32 %0, 196608
ret i32 %2
}
define i32 @test_or_65540(i32 noundef %0) {
; CHECK-LABEL: test_or_65540:
; CHECK: # %bb.0:
; CHECK-NEXT: movih32 a1, 1
; CHECK-NEXT: ori32 a1, a1, 4
; CHECK-NEXT: or16 a0, a1
; CHECK-NEXT: rts16
%2 = or i32 %0, 65540
ret i32 %2
}
define i32 @test_andnot_128(i32 noundef %0) {
; CHECK-LABEL: test_andnot_128:
; CHECK: # %bb.0:
; CHECK-NEXT: andni32 a0, a0, 128
; CHECK-NEXT: rts16
%2 = and i32 %0, -129
ret i32 %2
}
define i32 @test_andnot_131072(i32 noundef %0) {
; CHECK-LABEL: test_andnot_131072:
; CHECK: # %bb.0:
; CHECK-NEXT: bclri16 a0, 17
; CHECK-NEXT: rts16
%2 = and i32 %0, -131073
ret i32 %2
}
define i32 @test_andnot_192(i32 noundef %0) {
; CHECK-LABEL: test_andnot_192:
; CHECK: # %bb.0:
; CHECK-NEXT: andni32 a0, a0, 192
; CHECK-NEXT: rts16
%2 = and i32 %0, -193
ret i32 %2
}
define i32 @test_andnot_3072(i32 noundef %0) {
; CHECK-LABEL: test_andnot_3072:
; CHECK: # %bb.0:
; CHECK-NEXT: andni32 a0, a0, 3072
; CHECK-NEXT: rts16
%2 = and i32 %0, -3073
ret i32 %2
}
define i32 @test_andnot_1966608(i32 noundef %0) {
; CHECK-LABEL: test_andnot_1966608:
; CHECK: # %bb.0:
; CHECK-NEXT: movih32 a1, 65505
; CHECK-NEXT: ori32 a1, a1, 65007
; CHECK-NEXT: and16 a0, a1
; CHECK-NEXT: rts16
%2 = and i32 %0, -1966609
ret i32 %2
}
define i32 @test_andnot_65540(i32 noundef %0) {
; CHECK-LABEL: test_andnot_65540:
; CHECK: # %bb.0:
; CHECK-NEXT: movih32 a1, 65534
; CHECK-NEXT: ori32 a1, a1, 65531
; CHECK-NEXT: and16 a0, a1
; CHECK-NEXT: rts16
%2 = and i32 %0, -65541
ret i32 %2
}