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
128 lines
4.6 KiB
LLVM
128 lines
4.6 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lasx < %s | FileCheck %s --check-prefix=LA32
|
|
; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s --check-prefix=LA64
|
|
|
|
define <64 x i64> @test1(<64 x i64> %0) nounwind {
|
|
; LA32-LABEL: test1:
|
|
; LA32: # %bb.0: # %entry
|
|
; LA32-NEXT: addi.w $sp, $sp, -32
|
|
; LA32-NEXT: st.w $ra, $sp, 28 # 4-byte Folded Spill
|
|
; LA32-NEXT: st.w $fp, $sp, 24 # 4-byte Folded Spill
|
|
; LA32-NEXT: addi.w $fp, $sp, 32
|
|
; LA32-NEXT: bstrins.w $sp, $zero, 4, 0
|
|
; LA32-NEXT: xvld $xr8, $fp, 0
|
|
; LA32-NEXT: xvld $xr9, $fp, 32
|
|
; LA32-NEXT: xvld $xr10, $fp, 64
|
|
; LA32-NEXT: xvld $xr11, $fp, 96
|
|
; LA32-NEXT: xvld $xr12, $fp, 224
|
|
; LA32-NEXT: xvld $xr13, $fp, 192
|
|
; LA32-NEXT: xvld $xr14, $fp, 160
|
|
; LA32-NEXT: xvld $xr15, $fp, 128
|
|
; LA32-NEXT: xvst $xr12, $a0, 480
|
|
; LA32-NEXT: xvst $xr13, $a0, 448
|
|
; LA32-NEXT: xvst $xr14, $a0, 416
|
|
; LA32-NEXT: xvst $xr15, $a0, 384
|
|
; LA32-NEXT: xvst $xr11, $a0, 352
|
|
; LA32-NEXT: xvst $xr10, $a0, 320
|
|
; LA32-NEXT: xvst $xr9, $a0, 288
|
|
; LA32-NEXT: xvst $xr8, $a0, 256
|
|
; LA32-NEXT: xvst $xr7, $a0, 224
|
|
; LA32-NEXT: xvst $xr6, $a0, 192
|
|
; LA32-NEXT: xvst $xr5, $a0, 160
|
|
; LA32-NEXT: xvst $xr4, $a0, 128
|
|
; LA32-NEXT: xvst $xr3, $a0, 96
|
|
; LA32-NEXT: xvst $xr2, $a0, 64
|
|
; LA32-NEXT: xvst $xr1, $a0, 32
|
|
; LA32-NEXT: xvst $xr0, $a0, 0
|
|
; LA32-NEXT: addi.w $sp, $fp, -32
|
|
; LA32-NEXT: ld.w $fp, $sp, 24 # 4-byte Folded Reload
|
|
; LA32-NEXT: ld.w $ra, $sp, 28 # 4-byte Folded Reload
|
|
; LA32-NEXT: addi.w $sp, $sp, 32
|
|
; LA32-NEXT: ret
|
|
;
|
|
; LA64-LABEL: test1:
|
|
; LA64: # %bb.0: # %entry
|
|
; LA64-NEXT: addi.d $sp, $sp, -32
|
|
; LA64-NEXT: st.d $ra, $sp, 24 # 8-byte Folded Spill
|
|
; LA64-NEXT: st.d $fp, $sp, 16 # 8-byte Folded Spill
|
|
; LA64-NEXT: addi.d $fp, $sp, 32
|
|
; LA64-NEXT: bstrins.d $sp, $zero, 4, 0
|
|
; LA64-NEXT: xvld $xr8, $fp, 0
|
|
; LA64-NEXT: xvld $xr9, $fp, 32
|
|
; LA64-NEXT: xvld $xr10, $fp, 64
|
|
; LA64-NEXT: xvld $xr11, $fp, 96
|
|
; LA64-NEXT: xvld $xr12, $fp, 224
|
|
; LA64-NEXT: xvld $xr13, $fp, 192
|
|
; LA64-NEXT: xvld $xr14, $fp, 160
|
|
; LA64-NEXT: xvld $xr15, $fp, 128
|
|
; LA64-NEXT: xvst $xr12, $a0, 480
|
|
; LA64-NEXT: xvst $xr13, $a0, 448
|
|
; LA64-NEXT: xvst $xr14, $a0, 416
|
|
; LA64-NEXT: xvst $xr15, $a0, 384
|
|
; LA64-NEXT: xvst $xr11, $a0, 352
|
|
; LA64-NEXT: xvst $xr10, $a0, 320
|
|
; LA64-NEXT: xvst $xr9, $a0, 288
|
|
; LA64-NEXT: xvst $xr8, $a0, 256
|
|
; LA64-NEXT: xvst $xr7, $a0, 224
|
|
; LA64-NEXT: xvst $xr6, $a0, 192
|
|
; LA64-NEXT: xvst $xr5, $a0, 160
|
|
; LA64-NEXT: xvst $xr4, $a0, 128
|
|
; LA64-NEXT: xvst $xr3, $a0, 96
|
|
; LA64-NEXT: xvst $xr2, $a0, 64
|
|
; LA64-NEXT: xvst $xr1, $a0, 32
|
|
; LA64-NEXT: xvst $xr0, $a0, 0
|
|
; LA64-NEXT: addi.d $sp, $fp, -32
|
|
; LA64-NEXT: ld.d $fp, $sp, 16 # 8-byte Folded Reload
|
|
; LA64-NEXT: ld.d $ra, $sp, 24 # 8-byte Folded Reload
|
|
; LA64-NEXT: addi.d $sp, $sp, 32
|
|
; LA64-NEXT: ret
|
|
entry:
|
|
ret <64 x i64> %0
|
|
}
|
|
|
|
define <32 x double> @test2(<32 x double> %0, <32 x double> %1) nounwind {
|
|
; LA32-LABEL: test2:
|
|
; LA32: # %bb.0: # %entry
|
|
; LA32-NEXT: addi.w $sp, $sp, -32
|
|
; LA32-NEXT: st.w $ra, $sp, 28 # 4-byte Folded Spill
|
|
; LA32-NEXT: st.w $fp, $sp, 24 # 4-byte Folded Spill
|
|
; LA32-NEXT: addi.w $fp, $sp, 32
|
|
; LA32-NEXT: bstrins.w $sp, $zero, 4, 0
|
|
; LA32-NEXT: xvst $xr7, $a0, 224
|
|
; LA32-NEXT: xvst $xr6, $a0, 192
|
|
; LA32-NEXT: xvst $xr5, $a0, 160
|
|
; LA32-NEXT: xvst $xr4, $a0, 128
|
|
; LA32-NEXT: xvst $xr3, $a0, 96
|
|
; LA32-NEXT: xvst $xr2, $a0, 64
|
|
; LA32-NEXT: xvst $xr1, $a0, 32
|
|
; LA32-NEXT: xvst $xr0, $a0, 0
|
|
; LA32-NEXT: addi.w $sp, $fp, -32
|
|
; LA32-NEXT: ld.w $fp, $sp, 24 # 4-byte Folded Reload
|
|
; LA32-NEXT: ld.w $ra, $sp, 28 # 4-byte Folded Reload
|
|
; LA32-NEXT: addi.w $sp, $sp, 32
|
|
; LA32-NEXT: ret
|
|
;
|
|
; LA64-LABEL: test2:
|
|
; LA64: # %bb.0: # %entry
|
|
; LA64-NEXT: addi.d $sp, $sp, -32
|
|
; LA64-NEXT: st.d $ra, $sp, 24 # 8-byte Folded Spill
|
|
; LA64-NEXT: st.d $fp, $sp, 16 # 8-byte Folded Spill
|
|
; LA64-NEXT: addi.d $fp, $sp, 32
|
|
; LA64-NEXT: bstrins.d $sp, $zero, 4, 0
|
|
; LA64-NEXT: xvst $xr7, $a0, 224
|
|
; LA64-NEXT: xvst $xr6, $a0, 192
|
|
; LA64-NEXT: xvst $xr5, $a0, 160
|
|
; LA64-NEXT: xvst $xr4, $a0, 128
|
|
; LA64-NEXT: xvst $xr3, $a0, 96
|
|
; LA64-NEXT: xvst $xr2, $a0, 64
|
|
; LA64-NEXT: xvst $xr1, $a0, 32
|
|
; LA64-NEXT: xvst $xr0, $a0, 0
|
|
; LA64-NEXT: addi.d $sp, $fp, -32
|
|
; LA64-NEXT: ld.d $fp, $sp, 16 # 8-byte Folded Reload
|
|
; LA64-NEXT: ld.d $ra, $sp, 24 # 8-byte Folded Reload
|
|
; LA64-NEXT: addi.d $sp, $sp, 32
|
|
; LA64-NEXT: ret
|
|
entry:
|
|
ret <32 x double> %0
|
|
}
|