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
76 lines
2.5 KiB
YAML
76 lines
2.5 KiB
YAML
# RUN: llc -mtriple=x86_64-unknown-linux -start-before=x86-flags-copy-lowering -o - %s | FileCheck %s
|
|
#
|
|
# Test the emission of pre- and post-instruction labels.
|
|
|
|
--- |
|
|
declare void @f(i32 %x) nounwind
|
|
|
|
declare void @g(i32 %x) nounwind
|
|
|
|
declare void @h(i32 %x) nounwind
|
|
|
|
define i64 @test(i32 %x) nounwind {
|
|
entry:
|
|
call void @f(i32 %x)
|
|
call void @g(i32 %x)
|
|
call void @h(i32 %x)
|
|
ret i64 undef
|
|
}
|
|
|
|
...
|
|
---
|
|
name: test
|
|
# CHECK-LABEL: {{^}}test:
|
|
tracksRegLiveness: true
|
|
frameInfo:
|
|
adjustsStack: true
|
|
hasCalls: true
|
|
body: |
|
|
bb.0.entry:
|
|
liveins: $edi
|
|
|
|
%0:gr32 = COPY $edi
|
|
%1:gr32 = COPY killed %0
|
|
ADJCALLSTACKDOWN64 0, 0, 0, implicit-def $rsp, implicit-def $eflags, implicit-def $ssp, implicit $rsp, implicit $ssp
|
|
$edi = COPY %1
|
|
|
|
CALL64pcrel32 @f, csr_64, implicit $rsp, implicit $ssp, implicit $edi, pre-instr-symbol <mcsymbol .Lpre_f>, post-instr-symbol <mcsymbol .Lpost_f>
|
|
; CHECK: .Lpre_f:
|
|
; CHECK-NEXT: callq f
|
|
; CHECK-NEXT: .Lpost_f:
|
|
|
|
ADJCALLSTACKUP64 0, 0, implicit-def $rsp, implicit-def $eflags, implicit-def $ssp, implicit $rsp, implicit $ssp
|
|
ADJCALLSTACKDOWN64 0, 0, 0, implicit-def $rsp, implicit-def $eflags, implicit-def $ssp, implicit $rsp, implicit $ssp
|
|
$edi = COPY %1
|
|
|
|
CALL64pcrel32 @g, csr_64, implicit $rsp, implicit $ssp, implicit $edi, pre-instr-symbol <mcsymbol .Lpre_g>
|
|
; CHECK: .Lpre_g:
|
|
; CHECK-NEXT: callq g
|
|
|
|
ADJCALLSTACKUP64 0, 0, implicit-def $rsp, implicit-def $eflags, implicit-def $ssp, implicit $rsp, implicit $ssp
|
|
ADJCALLSTACKDOWN64 0, 0, 0, implicit-def $rsp, implicit-def $eflags, implicit-def $ssp, implicit $rsp, implicit $ssp
|
|
$edi = COPY %1
|
|
|
|
CALL64pcrel32 @h, csr_64, implicit $rsp, implicit $ssp, implicit $edi, post-instr-symbol <mcsymbol .Lpost_h>
|
|
; CHECK: callq h
|
|
; CHECK-NEXT: .Lpost_h:
|
|
|
|
ADJCALLSTACKUP64 0, 0, implicit-def $rsp, implicit-def $eflags, implicit-def $ssp, implicit $rsp, implicit $ssp
|
|
|
|
%2:gr64 = MOV64ri32 <mcsymbol .Lpre_f>
|
|
%3:gr64 = MOV64ri32 <mcsymbol .Lpost_f>
|
|
%4:gr64 = MOV64ri32 <mcsymbol .Lpre_g>
|
|
%5:gr64 = MOV64ri32 <mcsymbol .Lpost_h>
|
|
; CHECK: movq $.Lpre_f, %{{.*}}
|
|
; CHECK-NEXT: movq $.Lpost_f, %{{.*}}
|
|
; CHECK-NEXT: movq $.Lpre_g, %{{.*}}
|
|
; CHECK-NEXT: movq $.Lpost_h, %{{.*}}
|
|
|
|
%6:gr64 = ADD64rr killed %2, killed %3, implicit-def $eflags
|
|
%7:gr64 = ADD64rr killed %4, killed %5, implicit-def $eflags
|
|
%8:gr64 = ADD64rr killed %6, killed %7, implicit-def $eflags
|
|
$rax = COPY %8
|
|
RET64 implicit $rax
|
|
|
|
...
|