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
64 lines
2.0 KiB
LLVM
64 lines
2.0 KiB
LLVM
; RUN: llc < %s -mtriple=ve | FileCheck %s
|
|
; RUN: llc < %s -mtriple=ve -relocation-model=pic \
|
|
; RUN: | FileCheck %s --check-prefix=PIC
|
|
|
|
;;; Tests for lea instruction and its optimizations
|
|
|
|
%struct.buffer = type { i64, [1 x i8] }
|
|
|
|
@data = internal global i8 0, align 1
|
|
@buf = internal global %struct.buffer zeroinitializer, align 8
|
|
|
|
; Function Attrs: norecurse nounwind readnone
|
|
define nonnull ptr @lea_basic() {
|
|
; CHECK-LABEL: lea_basic:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lea %s0, data@lo
|
|
; CHECK-NEXT: and %s0, %s0, (32)0
|
|
; CHECK-NEXT: lea.sl %s0, data@hi(, %s0)
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
;
|
|
; PIC-LABEL: lea_basic:
|
|
; PIC: # %bb.0:
|
|
; PIC-NEXT: st %s15, 24(, %s11)
|
|
; PIC-NEXT: st %s16, 32(, %s11)
|
|
; PIC-NEXT: lea %s15, _GLOBAL_OFFSET_TABLE_@pc_lo(-24)
|
|
; PIC-NEXT: and %s15, %s15, (32)0
|
|
; PIC-NEXT: sic %s16
|
|
; PIC-NEXT: lea.sl %s15, _GLOBAL_OFFSET_TABLE_@pc_hi(%s16, %s15)
|
|
; PIC-NEXT: lea %s0, data@gotoff_lo
|
|
; PIC-NEXT: and %s0, %s0, (32)0
|
|
; PIC-NEXT: lea.sl %s0, data@gotoff_hi(%s0, %s15)
|
|
; PIC-NEXT: ld %s16, 32(, %s11)
|
|
; PIC-NEXT: ld %s15, 24(, %s11)
|
|
; PIC-NEXT: b.l.t (, %s10)
|
|
ret ptr @data
|
|
}
|
|
|
|
; Function Attrs: norecurse nounwind readnone
|
|
define ptr @lea_offset() {
|
|
; CHECK-LABEL: lea_offset:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lea %s0, buf@lo
|
|
; CHECK-NEXT: and %s0, %s0, (32)0
|
|
; CHECK-NEXT: lea.sl %s0, buf@hi(8, %s0)
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
;
|
|
; PIC-LABEL: lea_offset:
|
|
; PIC: # %bb.0:
|
|
; PIC-NEXT: st %s15, 24(, %s11)
|
|
; PIC-NEXT: st %s16, 32(, %s11)
|
|
; PIC-NEXT: lea %s15, _GLOBAL_OFFSET_TABLE_@pc_lo(-24)
|
|
; PIC-NEXT: and %s15, %s15, (32)0
|
|
; PIC-NEXT: sic %s16
|
|
; PIC-NEXT: lea.sl %s15, _GLOBAL_OFFSET_TABLE_@pc_hi(%s16, %s15)
|
|
; PIC-NEXT: lea %s0, buf@gotoff_lo
|
|
; PIC-NEXT: and %s0, %s0, (32)0
|
|
; PIC-NEXT: lea.sl %s0, buf@gotoff_hi(, %s0)
|
|
; PIC-NEXT: lea %s0, 8(%s0, %s15)
|
|
; PIC-NEXT: ld %s16, 32(, %s11)
|
|
; PIC-NEXT: ld %s15, 24(, %s11)
|
|
; PIC-NEXT: b.l.t (, %s10)
|
|
ret ptr getelementptr inbounds (%struct.buffer, ptr @buf, i64 0, i32 1, i64 0)
|
|
}
|