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
68 lines
2.2 KiB
LLVM
68 lines
2.2 KiB
LLVM
; RUN: llc -mtriple=mips -relocation-model=pic < %s \
|
|
; RUN: | FileCheck --check-prefixes=CHECK,EB %s
|
|
; RUN: llc -mtriple=mipsel -relocation-model=pic < %s \
|
|
; RUN: | FileCheck --check-prefixes=CHECK,EL %s
|
|
|
|
; Simple memory
|
|
@g1 = external global i32
|
|
|
|
define i32 @f1(i32 %x) nounwind {
|
|
entry:
|
|
; CHECK-LABEL: f1:
|
|
; CHECK: #APP
|
|
; CHECK: sw $4, [[OFFSET:[0-9]+]]($sp)
|
|
; CHECK: #NO_APP
|
|
; CHECK: lw $[[T1:[0-9]+]], %got(g1)
|
|
; CHECK: #APP
|
|
; CHECK: lw $[[T3:[0-9]+]], [[OFFSET]]($sp)
|
|
; CHECK: #NO_APP
|
|
; CHECK: sw $[[T3]], 0($[[T1]])
|
|
|
|
%l1 = alloca i32, align 4
|
|
call void asm "sw $1, $0", "=*m,r"(ptr elementtype(i32) %l1, i32 %x) nounwind
|
|
%0 = call i32 asm "lw $0, $1", "=r,*m"(ptr elementtype(i32) %l1) nounwind
|
|
store i32 %0, ptr @g1, align 4
|
|
ret i32 %0
|
|
}
|
|
|
|
; CHECK-LABEL: main:
|
|
; "D": Second word of a double word. This works for any memory element
|
|
; double or single.
|
|
; CHECK: #APP
|
|
; CHECK: lw ${{[0-9]+}}, 16(${{[0-9]+}})
|
|
; CHECK: #NO_APP
|
|
|
|
; No "D": First word of a double word. This works for any memory element
|
|
; double or single.
|
|
; CHECK: #APP
|
|
; CHECK: lw ${{[0-9]+}}, 12(${{[0-9]+}})
|
|
; CHECK: #NO_APP
|
|
|
|
; "M": High-order word of a double word.
|
|
; CHECK: #APP
|
|
; EB: lw ${{[0-9]+}}, 12(${{[0-9]+}})
|
|
; EL: lw ${{[0-9]+}}, 16(${{[0-9]+}})
|
|
; CHECK: #NO_APP
|
|
|
|
; "L": Low-order word of a double word.
|
|
; CHECK: #APP
|
|
; EB: lw ${{[0-9]+}}, 16(${{[0-9]+}})
|
|
; EL: lw ${{[0-9]+}}, 12(${{[0-9]+}})
|
|
; CHECK: #NO_APP
|
|
|
|
@b = common global [20 x i32] zeroinitializer, align 4
|
|
|
|
define void @main() {
|
|
entry:
|
|
; Second word:
|
|
tail call void asm sideeffect " lw $0, ${1:D}", "r,*m,~{$11}"(i32 undef, ptr elementtype(i32) getelementptr inbounds ([20 x i32], ptr @b, i32 0, i32 3))
|
|
; First word. Notice, no 'D':
|
|
tail call void asm sideeffect " lw $0, ${1}", "r,*m,~{$11}"(i32 undef, ptr elementtype(i32) getelementptr inbounds ([20 x i32], ptr @b, i32 0, i32 3))
|
|
|
|
; High-order part.
|
|
tail call void asm sideeffect " lw $0, ${1:M}", "r,*m,~{$11}"(i32 undef, ptr elementtype(i32) getelementptr inbounds ([20 x i32], ptr @b, i32 0, i32 3))
|
|
; Low-order part.
|
|
tail call void asm sideeffect " lw $0, ${1:L}", "r,*m,~{$11}"(i32 undef, ptr elementtype(i32) getelementptr inbounds ([20 x i32], ptr @b, i32 0, i32 3))
|
|
ret void
|
|
}
|