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
63 lines
2.1 KiB
LLVM
63 lines
2.1 KiB
LLVM
;; Check if manually reserved EDI is always excluded from being saved by the
|
|
;; function prolog/epilog, as per GCC behavior, and that REP MOVS/STOS are not
|
|
;; selected when EDI is reserved on x86-32.
|
|
|
|
; RUN: llc < %s -mtriple=i386-unknown-linux-gnu -verify-machineinstrs | FileCheck %s
|
|
|
|
declare void @llvm.memcpy.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg)
|
|
declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg)
|
|
|
|
define void @tedi() "target-features"="+reserve-edi" {
|
|
; CHECK-LABEL: tedi:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: movl $256, %edi
|
|
; CHECK-NEXT: #APP
|
|
; CHECK-NEXT: #NO_APP
|
|
; CHECK-NEXT: retl
|
|
call i32 asm sideeffect "", "={edi},{edi}"(i32 256)
|
|
ret void
|
|
}
|
|
|
|
define void @no_reserve_edi() {
|
|
; CHECK-LABEL: no_reserve_edi:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: pushl %edi
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 8
|
|
; CHECK-NEXT: .cfi_offset %edi, -8
|
|
; CHECK-NEXT: movl $256, %edi
|
|
; CHECK-NEXT: #APP
|
|
; CHECK-NEXT: #NO_APP
|
|
; CHECK-NEXT: popl %edi
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 4
|
|
; CHECK-NEXT: retl
|
|
call i32 asm sideeffect "", "={edi},{edi}"(i32 256)
|
|
ret void
|
|
}
|
|
|
|
define void @copy_reserved_edi(ptr %dst, ptr %src) minsize "target-features"="+reserve-edi" {
|
|
; CHECK-LABEL: copy_reserved_edi:
|
|
; CHECK-NOT: rep;movs
|
|
call void @llvm.memcpy.p0.p0.i32(ptr align 4 %dst, ptr align 4 %src, i32 128, i1 false)
|
|
ret void
|
|
}
|
|
|
|
define void @set_reserved_edi(ptr %dst) minsize "target-features"="+reserve-edi" {
|
|
; CHECK-LABEL: set_reserved_edi:
|
|
; CHECK-NOT: rep;stos
|
|
call void @llvm.memset.p0.i32(ptr align 4 %dst, i8 0, i32 128, i1 false)
|
|
ret void
|
|
}
|
|
|
|
define void @copy_no_reserved(ptr %dst, ptr %src) minsize {
|
|
; CHECK-LABEL: copy_no_reserved:
|
|
; CHECK: rep;movs
|
|
call void @llvm.memcpy.p0.p0.i32(ptr align 4 %dst, ptr align 4 %src, i32 128, i1 false)
|
|
ret void
|
|
}
|
|
|
|
define void @set_no_reserved(ptr %dst) minsize {
|
|
; CHECK-LABEL: set_no_reserved:
|
|
; CHECK: rep;stos
|
|
call void @llvm.memset.p0.i32(ptr align 4 %dst, i8 0, i32 128, i1 false)
|
|
ret void
|
|
} |