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
129 lines
3.9 KiB
LLVM
129 lines
3.9 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=aarch64 < %s | FileCheck %s
|
|
|
|
define <16 x i8> @fn1_vector(<16 x i8> %arg) {
|
|
; CHECK-LABEL: fn1_vector:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: adrp x8, .LCPI0_0
|
|
; CHECK-NEXT: ldr q1, [x8, :lo12:.LCPI0_0]
|
|
; CHECK-NEXT: mul v0.16b, v0.16b, v1.16b
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%shl = shl <16 x i8> %arg, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
|
|
%mul = mul <16 x i8> %shl, <i8 0, i8 1, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>
|
|
ret <16 x i8> %mul
|
|
}
|
|
|
|
define <16 x i8> @fn2_vector(<16 x i8> %arg) {
|
|
; CHECK-LABEL: fn2_vector:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: adrp x8, .LCPI1_0
|
|
; CHECK-NEXT: ldr q1, [x8, :lo12:.LCPI1_0]
|
|
; CHECK-NEXT: mul v0.16b, v0.16b, v1.16b
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%mul = mul <16 x i8> %arg, <i8 0, i8 1, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>
|
|
%shl = shl <16 x i8> %mul, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
|
|
ret <16 x i8> %shl
|
|
}
|
|
|
|
define <16 x i8> @fn1_vector_undef(<16 x i8> %arg) {
|
|
; CHECK-LABEL: fn1_vector_undef:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: adrp x8, .LCPI2_0
|
|
; CHECK-NEXT: ldr q1, [x8, :lo12:.LCPI2_0]
|
|
; CHECK-NEXT: mul v0.16b, v0.16b, v1.16b
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%shl = shl <16 x i8> %arg, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
|
|
%mul = mul <16 x i8> %shl, <i8 undef, i8 1, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>
|
|
ret <16 x i8> %mul
|
|
}
|
|
|
|
define <16 x i8> @fn2_vector_undef(<16 x i8> %arg) {
|
|
; CHECK-LABEL: fn2_vector_undef:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: adrp x8, .LCPI3_0
|
|
; CHECK-NEXT: ldr q1, [x8, :lo12:.LCPI3_0]
|
|
; CHECK-NEXT: mul v0.16b, v0.16b, v1.16b
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%mul = mul <16 x i8> %arg, <i8 undef, i8 1, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>
|
|
%shl = shl <16 x i8> %mul, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
|
|
ret <16 x i8> %shl
|
|
}
|
|
|
|
define i32 @fn1_scalar(i32 %arg) {
|
|
; CHECK-LABEL: fn1_scalar:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: mov w8, #1664
|
|
; CHECK-NEXT: mul w0, w0, w8
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%shl = shl i32 %arg, 7
|
|
%mul = mul i32 %shl, 13
|
|
ret i32 %mul
|
|
}
|
|
|
|
define i32 @fn2_scalar(i32 %arg) {
|
|
; CHECK-LABEL: fn2_scalar:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: mov w8, #1664
|
|
; CHECK-NEXT: mul w0, w0, w8
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%mul = mul i32 %arg, 13
|
|
%shl = shl i32 %mul, 7
|
|
ret i32 %shl
|
|
}
|
|
|
|
define i32 @fn1_scalar_undef(i32 %arg) {
|
|
; CHECK-LABEL: fn1_scalar_undef:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: mov w0, wzr
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%shl = shl i32 %arg, 7
|
|
%mul = mul i32 %shl, undef
|
|
ret i32 %mul
|
|
}
|
|
|
|
define i32 @fn2_scalar_undef(i32 %arg) {
|
|
; CHECK-LABEL: fn2_scalar_undef:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: mov w0, wzr
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%mul = mul i32 %arg, undef
|
|
%shl = shl i32 %mul, 7
|
|
ret i32 %shl
|
|
}
|
|
|
|
define i32 @fn1_scalar_opaque(i32 %arg) {
|
|
; CHECK-LABEL: fn1_scalar_opaque:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: mov w8, #13
|
|
; CHECK-NEXT: mul w8, w0, w8
|
|
; CHECK-NEXT: lsl w0, w8, #7
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%bitcast = bitcast i32 13 to i32
|
|
%shl = shl i32 %arg, 7
|
|
%mul = mul i32 %shl, %bitcast
|
|
ret i32 %mul
|
|
}
|
|
|
|
define i32 @fn2_scalar_opaque(i32 %arg) {
|
|
; CHECK-LABEL: fn2_scalar_opaque:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: mov w8, #13
|
|
; CHECK-NEXT: mul w8, w0, w8
|
|
; CHECK-NEXT: lsl w0, w8, #7
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%bitcast = bitcast i32 13 to i32
|
|
%mul = mul i32 %arg, %bitcast
|
|
%shl = shl i32 %mul, 7
|
|
ret i32 %shl
|
|
}
|