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
82 lines
3.0 KiB
LLVM
82 lines
3.0 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: llc -mtriple=i386--linux < %s | FileCheck -check-prefix=LINUX32 %s
|
|
; RUN: llc -mtriple=x86_64--linux < %s | FileCheck -check-prefix=LINUX64 %s
|
|
; RUN: llc -mtriple=i386--openbsd < %s | FileCheck -check-prefix=OPENBSD32 %s
|
|
; RUN: llc -mtriple=x86_64--openbsd < %s | FileCheck -check-prefix=OPENBSD64 %s
|
|
|
|
define void @func() sspreq nounwind {
|
|
; LINUX32-LABEL: func:
|
|
; LINUX32: # %bb.0:
|
|
; LINUX32-NEXT: subl $12, %esp
|
|
; LINUX32-NEXT: movl %gs:20, %eax
|
|
; LINUX32-NEXT: movl %eax, {{[0-9]+}}(%esp)
|
|
; LINUX32-NEXT: leal {{[0-9]+}}(%esp), %eax
|
|
; LINUX32-NEXT: movl %eax, (%esp)
|
|
; LINUX32-NEXT: calll capture@PLT
|
|
; LINUX32-NEXT: movl %gs:20, %eax
|
|
; LINUX32-NEXT: cmpl {{[0-9]+}}(%esp), %eax
|
|
; LINUX32-NEXT: jne .LBB0_2
|
|
; LINUX32-NEXT: # %bb.1: # %SP_return
|
|
; LINUX32-NEXT: addl $12, %esp
|
|
; LINUX32-NEXT: retl
|
|
; LINUX32-NEXT: .LBB0_2: # %CallStackCheckFailBlk
|
|
; LINUX32-NEXT: calll __stack_chk_fail@PLT
|
|
;
|
|
; LINUX64-LABEL: func:
|
|
; LINUX64: # %bb.0:
|
|
; LINUX64-NEXT: subq $24, %rsp
|
|
; LINUX64-NEXT: movq %fs:40, %rax
|
|
; LINUX64-NEXT: movq %rax, {{[0-9]+}}(%rsp)
|
|
; LINUX64-NEXT: leaq {{[0-9]+}}(%rsp), %rdi
|
|
; LINUX64-NEXT: callq capture@PLT
|
|
; LINUX64-NEXT: movq %fs:40, %rax
|
|
; LINUX64-NEXT: cmpq {{[0-9]+}}(%rsp), %rax
|
|
; LINUX64-NEXT: jne .LBB0_2
|
|
; LINUX64-NEXT: # %bb.1: # %SP_return
|
|
; LINUX64-NEXT: addq $24, %rsp
|
|
; LINUX64-NEXT: retq
|
|
; LINUX64-NEXT: .LBB0_2: # %CallStackCheckFailBlk
|
|
; LINUX64-NEXT: callq __stack_chk_fail@PLT
|
|
;
|
|
; OPENBSD32-LABEL: func:
|
|
; OPENBSD32: # %bb.0:
|
|
; OPENBSD32-NEXT: subl $8, %esp
|
|
; OPENBSD32-NEXT: movl __guard_local, %eax
|
|
; OPENBSD32-NEXT: movl %eax, {{[0-9]+}}(%esp)
|
|
; OPENBSD32-NEXT: movl %esp, %eax
|
|
; OPENBSD32-NEXT: pushl %eax
|
|
; OPENBSD32-NEXT: calll capture@PLT
|
|
; OPENBSD32-NEXT: addl $4, %esp
|
|
; OPENBSD32-NEXT: movl __guard_local, %eax
|
|
; OPENBSD32-NEXT: cmpl {{[0-9]+}}(%esp), %eax
|
|
; OPENBSD32-NEXT: jne .LBB0_2
|
|
; OPENBSD32-NEXT: # %bb.1: # %SP_return
|
|
; OPENBSD32-NEXT: addl $8, %esp
|
|
; OPENBSD32-NEXT: retl
|
|
; OPENBSD32-NEXT: .LBB0_2: # %CallStackCheckFailBlk
|
|
; OPENBSD32-NEXT: pushl $.LSSH
|
|
; OPENBSD32-NEXT: calll __stack_smash_handler@PLT
|
|
;
|
|
; OPENBSD64-LABEL: func:
|
|
; OPENBSD64: # %bb.0:
|
|
; OPENBSD64-NEXT: subq $24, %rsp
|
|
; OPENBSD64-NEXT: movq __guard_local(%rip), %rax
|
|
; OPENBSD64-NEXT: movq %rax, {{[0-9]+}}(%rsp)
|
|
; OPENBSD64-NEXT: leaq {{[0-9]+}}(%rsp), %rdi
|
|
; OPENBSD64-NEXT: callq capture@PLT
|
|
; OPENBSD64-NEXT: movq __guard_local(%rip), %rax
|
|
; OPENBSD64-NEXT: cmpq {{[0-9]+}}(%rsp), %rax
|
|
; OPENBSD64-NEXT: jne .LBB0_2
|
|
; OPENBSD64-NEXT: # %bb.1: # %SP_return
|
|
; OPENBSD64-NEXT: addq $24, %rsp
|
|
; OPENBSD64-NEXT: retq
|
|
; OPENBSD64-NEXT: .LBB0_2: # %CallStackCheckFailBlk
|
|
; OPENBSD64-NEXT: movl $.LSSH, %edi
|
|
; OPENBSD64-NEXT: callq __stack_smash_handler@PLT
|
|
%alloca = alloca i32, align 4
|
|
call void @capture(ptr %alloca)
|
|
ret void
|
|
}
|
|
|
|
declare void @capture(ptr)
|