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
136 lines
4.6 KiB
LLVM
136 lines
4.6 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 4
|
|
; RUN: llc -mtriple=aarch64-linux-gnu -O0 -stop-after=irtranslator -global-isel -verify-machineinstrs %s -o - 2>&1 | FileCheck %s
|
|
|
|
define i32 @call_nneg(i16 %a) {
|
|
; CHECK-LABEL: name: call_nneg
|
|
; CHECK: bb.1.entry:
|
|
; CHECK-NEXT: liveins: $w0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(i32) = COPY $w0
|
|
; CHECK-NEXT: [[TRUNC:%[0-9]+]]:_(i16) = G_TRUNC [[COPY]](i32)
|
|
; CHECK-NEXT: [[ZEXT:%[0-9]+]]:_(i32) = nneg G_ZEXT [[TRUNC]](i16)
|
|
; CHECK-NEXT: $w0 = COPY [[ZEXT]](i32)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $w0
|
|
entry:
|
|
%result = zext nneg i16 %a to i32
|
|
ret i32 %result
|
|
}
|
|
|
|
define i32 @call_not_nneg(i16 %a) {
|
|
; CHECK-LABEL: name: call_not_nneg
|
|
; CHECK: bb.1.entry:
|
|
; CHECK-NEXT: liveins: $w0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(i32) = COPY $w0
|
|
; CHECK-NEXT: [[TRUNC:%[0-9]+]]:_(i16) = G_TRUNC [[COPY]](i32)
|
|
; CHECK-NEXT: [[ZEXT:%[0-9]+]]:_(i32) = G_ZEXT [[TRUNC]](i16)
|
|
; CHECK-NEXT: $w0 = COPY [[ZEXT]](i32)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $w0
|
|
entry:
|
|
%result = zext i16 %a to i32
|
|
ret i32 %result
|
|
}
|
|
|
|
define i32 @call_disjoint(i32 %a, i32 %b) {
|
|
; CHECK-LABEL: name: call_disjoint
|
|
; CHECK: bb.1.entry:
|
|
; CHECK-NEXT: liveins: $w0, $w1
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(i32) = COPY $w0
|
|
; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(i32) = COPY $w1
|
|
; CHECK-NEXT: [[OR:%[0-9]+]]:_(i32) = disjoint G_OR [[COPY]], [[COPY1]]
|
|
; CHECK-NEXT: $w0 = COPY [[OR]](i32)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $w0
|
|
entry:
|
|
%result = or disjoint i32 %a, %b
|
|
ret i32 %result
|
|
}
|
|
|
|
define i32 @call_add(i32 %a, i32 %b) {
|
|
; CHECK-LABEL: name: call_add
|
|
; CHECK: bb.1.entry:
|
|
; CHECK-NEXT: liveins: $w0, $w1
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(i32) = COPY $w0
|
|
; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(i32) = COPY $w1
|
|
; CHECK-NEXT: [[ADD:%[0-9]+]]:_(i32) = nsw G_ADD [[COPY]], [[COPY1]]
|
|
; CHECK-NEXT: $w0 = COPY [[ADD]](i32)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $w0
|
|
entry:
|
|
%result = add nsw i32 %a, %b
|
|
ret i32 %result
|
|
}
|
|
|
|
define i32 @call_not_disjoint(i32 %a, i32 %b) {
|
|
; CHECK-LABEL: name: call_not_disjoint
|
|
; CHECK: bb.1.entry:
|
|
; CHECK-NEXT: liveins: $w0, $w1
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(i32) = COPY $w0
|
|
; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(i32) = COPY $w1
|
|
; CHECK-NEXT: [[OR:%[0-9]+]]:_(i32) = G_OR [[COPY]], [[COPY1]]
|
|
; CHECK-NEXT: $w0 = COPY [[OR]](i32)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $w0
|
|
entry:
|
|
%result = or i32 %a, %b
|
|
ret i32 %result
|
|
}
|
|
|
|
define <2 x i64> @call_not_disjoint_vector(<2 x i64> %a, <2 x i64> %b) {
|
|
; CHECK-LABEL: name: call_not_disjoint_vector
|
|
; CHECK: bb.1.entry:
|
|
; CHECK-NEXT: liveins: $q0, $q1
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(<2 x i64>) = COPY $q0
|
|
; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(<2 x i64>) = COPY $q1
|
|
; CHECK-NEXT: [[OR:%[0-9]+]]:_(<2 x i64>) = G_OR [[COPY]], [[COPY1]]
|
|
; CHECK-NEXT: $q0 = COPY [[OR]](<2 x i64>)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $q0
|
|
entry:
|
|
%result = or <2 x i64> %a, %b
|
|
ret <2 x i64> %result
|
|
}
|
|
|
|
define <2 x i64> @call_disjoint_vector(<2 x i64> %a, <2 x i64> %b) {
|
|
; CHECK-LABEL: name: call_disjoint_vector
|
|
; CHECK: bb.1.entry:
|
|
; CHECK-NEXT: liveins: $q0, $q1
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(<2 x i64>) = COPY $q0
|
|
; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(<2 x i64>) = COPY $q1
|
|
; CHECK-NEXT: [[OR:%[0-9]+]]:_(<2 x i64>) = disjoint G_OR [[COPY]], [[COPY1]]
|
|
; CHECK-NEXT: $q0 = COPY [[OR]](<2 x i64>)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $q0
|
|
entry:
|
|
%result = or disjoint <2 x i64> %a, %b
|
|
ret <2 x i64> %result
|
|
}
|
|
|
|
define <2 x i64> @call_nneg_vector(<2 x i32> %a) {
|
|
; CHECK-LABEL: name: call_nneg_vector
|
|
; CHECK: bb.1.entry:
|
|
; CHECK-NEXT: liveins: $d0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(<2 x i32>) = COPY $d0
|
|
; CHECK-NEXT: [[ZEXT:%[0-9]+]]:_(<2 x i64>) = nneg G_ZEXT [[COPY]](<2 x i32>)
|
|
; CHECK-NEXT: $q0 = COPY [[ZEXT]](<2 x i64>)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $q0
|
|
entry:
|
|
%result = zext nneg <2 x i32> %a to <2 x i64>
|
|
ret <2 x i64> %result
|
|
}
|
|
|
|
define <2 x i64> @call_not_nneg_vector(<2 x i32> %a) {
|
|
; CHECK-LABEL: name: call_not_nneg_vector
|
|
; CHECK: bb.1.entry:
|
|
; CHECK-NEXT: liveins: $d0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(<2 x i32>) = COPY $d0
|
|
; CHECK-NEXT: [[ZEXT:%[0-9]+]]:_(<2 x i64>) = G_ZEXT [[COPY]](<2 x i32>)
|
|
; CHECK-NEXT: $q0 = COPY [[ZEXT]](<2 x i64>)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $q0
|
|
entry:
|
|
%result = zext <2 x i32> %a to <2 x i64>
|
|
ret <2 x i64> %result
|
|
}
|