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
70 lines
2.6 KiB
LLVM
70 lines
2.6 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
|
|
;; Test the strict-align feature which is similar to AArch64/arm64-strict-align.ll.
|
|
|
|
; RUN: llc --mtriple=mipsisa32r6 < %s | FileCheck %s --check-prefix=MIPS32R6-UNALIGNED
|
|
; RUN: llc --mtriple=mipsisa32r6 --mattr=-strict-align < %s | FileCheck %s --check-prefix=MIPS32R6-UNALIGNED
|
|
; RUN: llc --mtriple=mipsisa32r6 --mattr=+strict-align < %s | FileCheck %s --check-prefix=MIPS32R6-ALIGNED
|
|
|
|
; RUN: llc --mtriple=mipsisa64r6 < %s | FileCheck %s --check-prefix=MIPS64R6-UNALIGNED
|
|
; RUN: llc --mtriple=mipsisa64r6 --mattr=-strict-align < %s | FileCheck %s --check-prefix=MIPS64R6-UNALIGNED
|
|
; RUN: llc --mtriple=mipsisa64r6 --mattr=+strict-align < %s | FileCheck %s --check-prefix=MIPS64R6-ALIGNED
|
|
|
|
define i32 @f0(ptr %p) nounwind {
|
|
; MIPS32R6-UNALIGNED-LABEL: f0:
|
|
; MIPS32R6-UNALIGNED: # %bb.0:
|
|
; MIPS32R6-UNALIGNED-NEXT: lw $2, 0($4)
|
|
; MIPS32R6-UNALIGNED-NEXT: jrc $ra
|
|
;
|
|
; MIPS32R6-ALIGNED-LABEL: f0:
|
|
; MIPS32R6-ALIGNED: # %bb.0:
|
|
; MIPS32R6-ALIGNED-NEXT: lhu $1, 2($4)
|
|
; MIPS32R6-ALIGNED-NEXT: lhu $2, 0($4)
|
|
; MIPS32R6-ALIGNED-NEXT: sll $2, $2, 16
|
|
; MIPS32R6-ALIGNED-NEXT: jr $ra
|
|
; MIPS32R6-ALIGNED-NEXT: or $2, $2, $1
|
|
;
|
|
; MIPS64R6-UNALIGNED-LABEL: f0:
|
|
; MIPS64R6-UNALIGNED: # %bb.0:
|
|
; MIPS64R6-UNALIGNED-NEXT: lw $2, 0($4)
|
|
; MIPS64R6-UNALIGNED-NEXT: jrc $ra
|
|
;
|
|
; MIPS64R6-ALIGNED-LABEL: f0:
|
|
; MIPS64R6-ALIGNED: # %bb.0:
|
|
; MIPS64R6-ALIGNED-NEXT: lhu $1, 2($4)
|
|
; MIPS64R6-ALIGNED-NEXT: lhu $2, 0($4)
|
|
; MIPS64R6-ALIGNED-NEXT: sll $2, $2, 16
|
|
; MIPS64R6-ALIGNED-NEXT: jr $ra
|
|
; MIPS64R6-ALIGNED-NEXT: or $2, $2, $1
|
|
%tmp = load i32, ptr %p, align 2
|
|
ret i32 %tmp
|
|
}
|
|
|
|
define i64 @f1(ptr %p) nounwind {
|
|
; MIPS32R6-UNALIGNED-LABEL: f1:
|
|
; MIPS32R6-UNALIGNED: # %bb.0:
|
|
; MIPS32R6-UNALIGNED-NEXT: lw $2, 0($4)
|
|
; MIPS32R6-UNALIGNED-NEXT: lw $3, 4($4)
|
|
; MIPS32R6-UNALIGNED-NEXT: jrc $ra
|
|
;
|
|
; MIPS32R6-ALIGNED-LABEL: f1:
|
|
; MIPS32R6-ALIGNED: # %bb.0:
|
|
; MIPS32R6-ALIGNED-NEXT: lw $2, 0($4)
|
|
; MIPS32R6-ALIGNED-NEXT: lw $3, 4($4)
|
|
; MIPS32R6-ALIGNED-NEXT: jrc $ra
|
|
;
|
|
; MIPS64R6-UNALIGNED-LABEL: f1:
|
|
; MIPS64R6-UNALIGNED: # %bb.0:
|
|
; MIPS64R6-UNALIGNED-NEXT: ld $2, 0($4)
|
|
; MIPS64R6-UNALIGNED-NEXT: jrc $ra
|
|
;
|
|
; MIPS64R6-ALIGNED-LABEL: f1:
|
|
; MIPS64R6-ALIGNED: # %bb.0:
|
|
; MIPS64R6-ALIGNED-NEXT: lwu $1, 4($4)
|
|
; MIPS64R6-ALIGNED-NEXT: lwu $2, 0($4)
|
|
; MIPS64R6-ALIGNED-NEXT: dsll $2, $2, 32
|
|
; MIPS64R6-ALIGNED-NEXT: jr $ra
|
|
; MIPS64R6-ALIGNED-NEXT: or $2, $2, $1
|
|
%tmp = load i64, ptr %p, align 4
|
|
ret i64 %tmp
|
|
}
|