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
160 lines
4.5 KiB
LLVM
160 lines
4.5 KiB
LLVM
; RUN: llc < %s -mtriple=ve-unknown-unknown | FileCheck %s
|
|
|
|
@vi8 = common dso_local local_unnamed_addr global i8 0, align 4
|
|
@vi16 = common dso_local local_unnamed_addr global i16 0, align 4
|
|
@vi32 = common dso_local local_unnamed_addr global i32 0, align 4
|
|
@vi64 = common dso_local local_unnamed_addr global i64 0, align 4
|
|
@vf32 = common dso_local local_unnamed_addr global float 0.000000e+00, align 4
|
|
@vf64 = common dso_local local_unnamed_addr global double 0.000000e+00, align 4
|
|
|
|
; Function Attrs: norecurse nounwind readonly
|
|
define double @loadf64stk() {
|
|
; CHECK-LABEL: loadf64stk:
|
|
; CHECK: .LBB{{[0-9]+}}_2:
|
|
; CHECK-NEXT: ld %s0, 8(, %s11)
|
|
; CHECK-NEXT: adds.l %s11, 16, %s11
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%addr = alloca double, align 4
|
|
%1 = load double, ptr %addr, align 4
|
|
ret double %1
|
|
}
|
|
|
|
; Function Attrs: norecurse nounwind readonly
|
|
define float @loadf32stk() {
|
|
; CHECK-LABEL: loadf32stk:
|
|
; CHECK: .LBB{{[0-9]+}}_2:
|
|
; CHECK-NEXT: ldu %s0, 12(, %s11)
|
|
; CHECK-NEXT: adds.l %s11, 16, %s11
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%addr = alloca float, align 4
|
|
%1 = load float, ptr %addr, align 4
|
|
ret float %1
|
|
}
|
|
|
|
; Function Attrs: norecurse nounwind readonly
|
|
define i64 @loadi64stk() {
|
|
; CHECK-LABEL: loadi64stk:
|
|
; CHECK: .LBB{{[0-9]+}}_2:
|
|
; CHECK-NEXT: ld %s0, 8(, %s11)
|
|
; CHECK-NEXT: adds.l %s11, 16, %s11
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%addr = alloca i64, align 4
|
|
%1 = load i64, ptr %addr, align 4
|
|
ret i64 %1
|
|
}
|
|
|
|
; Function Attrs: norecurse nounwind readonly
|
|
define i32 @loadi32stk() {
|
|
; CHECK-LABEL: loadi32stk:
|
|
; CHECK: .LBB{{[0-9]+}}_2:
|
|
; CHECK-NEXT: ldl.sx %s0, 12(, %s11)
|
|
; CHECK-NEXT: adds.l %s11, 16, %s11
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%addr = alloca i32, align 4
|
|
%1 = load i32, ptr %addr, align 4
|
|
ret i32 %1
|
|
}
|
|
|
|
; Function Attrs: norecurse nounwind readonly
|
|
define i16 @loadi16stk() {
|
|
; CHECK-LABEL: loadi16stk:
|
|
; CHECK: .LBB{{[0-9]+}}_2:
|
|
; CHECK-NEXT: ld2b.zx %s0, 12(, %s11)
|
|
; CHECK-NEXT: adds.l %s11, 16, %s11
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%addr = alloca i16, align 4
|
|
%1 = load i16, ptr %addr, align 4
|
|
ret i16 %1
|
|
}
|
|
|
|
; Function Attrs: norecurse nounwind readonly
|
|
define i8 @loadi8stk() {
|
|
; CHECK-LABEL: loadi8stk:
|
|
; CHECK: .LBB{{[0-9]+}}_2:
|
|
; CHECK-NEXT: ld1b.zx %s0, 12(, %s11)
|
|
; CHECK-NEXT: adds.l %s11, 16, %s11
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%addr = alloca i8, align 4
|
|
%1 = load i8, ptr %addr, align 4
|
|
ret i8 %1
|
|
}
|
|
|
|
; Function Attrs: norecurse nounwind readonly
|
|
define double @loadf64com() {
|
|
; CHECK-LABEL: loadf64com:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lea %s0, vf64@lo
|
|
; CHECK-NEXT: and %s0, %s0, (32)0
|
|
; CHECK-NEXT: lea.sl %s0, vf64@hi(, %s0)
|
|
; CHECK-NEXT: ld %s0, (, %s0)
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%1 = load double, ptr @vf64, align 4
|
|
ret double %1
|
|
}
|
|
|
|
; Function Attrs: norecurse nounwind readonly
|
|
define float @loadf32com() {
|
|
; CHECK-LABEL: loadf32com:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lea %s0, vf32@lo
|
|
; CHECK-NEXT: and %s0, %s0, (32)0
|
|
; CHECK-NEXT: lea.sl %s0, vf32@hi(, %s0)
|
|
; CHECK-NEXT: ldu %s0, (, %s0)
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%1 = load float, ptr @vf32, align 4
|
|
ret float %1
|
|
}
|
|
|
|
; Function Attrs: norecurse nounwind readonly
|
|
define i64 @loadi64com() {
|
|
; CHECK-LABEL: loadi64com:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lea %s0, vi64@lo
|
|
; CHECK-NEXT: and %s0, %s0, (32)0
|
|
; CHECK-NEXT: lea.sl %s0, vi64@hi(, %s0)
|
|
; CHECK-NEXT: ld %s0, (, %s0)
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%1 = load i64, ptr @vi64, align 4
|
|
ret i64 %1
|
|
}
|
|
|
|
; Function Attrs: norecurse nounwind readonly
|
|
define i32 @loadi32com() {
|
|
; CHECK-LABEL: loadi32com:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lea %s0, vi32@lo
|
|
; CHECK-NEXT: and %s0, %s0, (32)0
|
|
; CHECK-NEXT: lea.sl %s0, vi32@hi(, %s0)
|
|
; CHECK-NEXT: ldl.sx %s0, (, %s0)
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%1 = load i32, ptr @vi32, align 4
|
|
ret i32 %1
|
|
}
|
|
|
|
; Function Attrs: norecurse nounwind readonly
|
|
define i16 @loadi16com() {
|
|
; CHECK-LABEL: loadi16com:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lea %s0, vi16@lo
|
|
; CHECK-NEXT: and %s0, %s0, (32)0
|
|
; CHECK-NEXT: lea.sl %s0, vi16@hi(, %s0)
|
|
; CHECK-NEXT: ld2b.zx %s0, (, %s0)
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%1 = load i16, ptr @vi16, align 4
|
|
ret i16 %1
|
|
}
|
|
|
|
; Function Attrs: norecurse nounwind readonly
|
|
define i8 @loadi8com() {
|
|
; CHECK-LABEL: loadi8com:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lea %s0, vi8@lo
|
|
; CHECK-NEXT: and %s0, %s0, (32)0
|
|
; CHECK-NEXT: lea.sl %s0, vi8@hi(, %s0)
|
|
; CHECK-NEXT: ld1b.zx %s0, (, %s0)
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%1 = load i8, ptr @vi8, align 4
|
|
ret i8 %1
|
|
}
|
|
|