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
207 lines
10 KiB
YAML
207 lines
10 KiB
YAML
# RUN: llc -verify-machineinstrs -run-pass=machine-outliner -run-pass=aarch64-ptrauth -outliner-leaf-descendants=false %s -o - | FileCheck %s
|
|
|
|
--- |
|
|
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
|
|
target triple = "aarch64-arm-linux-gnu"
|
|
|
|
@v = common dso_local global ptr null, align 8
|
|
|
|
; Function Attrs: nounwind
|
|
define dso_local void @legal0() #0 {
|
|
%1 = alloca i32, align 4
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
ret void
|
|
}
|
|
|
|
; Function Attrs: nounwind
|
|
define dso_local void @legal1() #0 {
|
|
%1 = alloca i32, align 4
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
ret void
|
|
}
|
|
|
|
; Function Attrs: nounwind
|
|
define dso_local void @illegal0() #0 {
|
|
%1 = alloca i32, align 4
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
ret void
|
|
}
|
|
|
|
; Function Attrs: nounwind
|
|
define dso_local void @illegal1() #0 {
|
|
%1 = alloca i32, align 4
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
store volatile ptr %1, ptr @v, align 8
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind uwtable "sign-return-address"="all" "sign-return-address-key"="a_key" noinline noredzone "frame-pointer"="all" }
|
|
|
|
...
|
|
---
|
|
name: legal0
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0 (%ir-block.0):
|
|
liveins: $lr
|
|
frame-setup PAUTH_PROLOGUE implicit-def $lr, implicit $lr, implicit $sp
|
|
$sp = frame-setup SUBXri $sp, 16, 0
|
|
renamable $x8 = ADRP target-flags(aarch64-page) @v
|
|
$x9 = ADDXri $sp, 12, 0
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui killed renamable $x9, killed renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
$sp = frame-destroy ADDXri $sp, 16, 0
|
|
frame-destroy PAUTH_EPILOGUE implicit-def $lr, implicit $lr, implicit $sp
|
|
RET undef $lr
|
|
|
|
# CHECK-LABEL: name: legal0
|
|
# CHECK: body: |
|
|
# CHECK-NEXT: bb.0 (%ir-block.0):
|
|
# CHECK-NEXT: liveins: $lr
|
|
# CHECK: frame-setup PACIASP implicit-def $lr, implicit $lr, implicit $sp
|
|
# CHECK-NEXT: frame-setup CFI_INSTRUCTION negate_ra_sign_state
|
|
# CHECK: BL @[[OUTLINED_FUNC:OUTLINED_FUNCTION_[0-9]+]]
|
|
# CHECK: frame-destroy AUTIASP implicit-def $lr, implicit $lr, implicit $sp
|
|
# CHECK-NEXT: frame-destroy CFI_INSTRUCTION negate_ra_sign_state
|
|
# CHECK-NEXT: RET undef $lr
|
|
|
|
...
|
|
---
|
|
name: legal1
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0 (%ir-block.0):
|
|
liveins: $lr
|
|
frame-setup PAUTH_PROLOGUE implicit-def $lr, implicit $lr, implicit $sp
|
|
$sp = frame-setup SUBXri $sp, 16, 0
|
|
renamable $x8 = ADRP target-flags(aarch64-page) @v
|
|
$x9 = ADDXri $sp, 12, 0
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui killed renamable $x9, killed renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
$sp = frame-destroy ADDXri $sp, 16, 0
|
|
frame-destroy PAUTH_EPILOGUE implicit-def $lr, implicit $lr, implicit $sp
|
|
RET undef $lr
|
|
|
|
# CHECK-LABEL: name: legal1
|
|
# CHECK: body: |
|
|
# CHECK-NEXT: bb.0 (%ir-block.0):
|
|
# CHECK-NEXT: liveins: $lr
|
|
# CHECK: frame-setup PACIASP implicit-def $lr, implicit $lr, implicit $sp
|
|
# CHECK-NEXT: frame-setup CFI_INSTRUCTION negate_ra_sign_state
|
|
# CHECK: BL @[[OUTLINED_FUNC]]
|
|
# CHECK: frame-destroy AUTIASP implicit-def $lr, implicit $lr, implicit $sp
|
|
# CHECK-NEXT: frame-destroy CFI_INSTRUCTION negate_ra_sign_state
|
|
# CHECK-NEXT: RET undef $lr
|
|
|
|
...
|
|
---
|
|
name: illegal0
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0 (%ir-block.0):
|
|
liveins: $lr
|
|
frame-setup PAUTH_PROLOGUE implicit-def $lr, implicit $lr, implicit $sp
|
|
$sp = frame-setup SUBXri $sp, 16, 0
|
|
renamable $x8 = ADRP target-flags(aarch64-page) @v
|
|
$x9 = ADDXri $sp, 12, 0
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui killed renamable $x9, killed renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
$sp = frame-destroy ADDXri $sp, 12, 0
|
|
frame-destroy PAUTH_EPILOGUE implicit-def $lr, implicit $lr, implicit $sp
|
|
RET undef $lr
|
|
|
|
...
|
|
---
|
|
name: illegal1
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0 (%ir-block.0):
|
|
liveins: $lr
|
|
frame-setup PAUTH_PROLOGUE implicit-def $lr, implicit $lr, implicit $sp
|
|
$sp = frame-setup SUBXri $sp, 16, 0
|
|
renamable $x8 = ADRP target-flags(aarch64-page) @v
|
|
$x9 = ADDXri $sp, 12, 0
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui renamable $x9, renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
STRXui killed renamable $x9, killed renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @v :: (volatile store (s64) into @v)
|
|
$sp = frame-destroy ADDXri $sp, 12, 0
|
|
frame-destroy PAUTH_EPILOGUE implicit-def $lr, implicit $lr, implicit $sp
|
|
RET undef $lr
|
|
|
|
# CHECK-LABEL: name: illegal0
|
|
# CHECK: body: |
|
|
# CHECK-NEXT: bb.0 (%ir-block.0):
|
|
# CHECK-NEXT: liveins: $lr
|
|
# CHECK: frame-setup PACIASP implicit-def $lr, implicit $lr, implicit $sp
|
|
# CHECK-NEXT: frame-setup CFI_INSTRUCTION negate_ra_sign_state
|
|
# CHECK-NOT: BL @OUTLINED_FUNCTION_{{.*}}
|
|
# CHECK: frame-destroy AUTIASP implicit-def $lr, implicit $lr, implicit $sp
|
|
# CHECK-NEXT: frame-destroy CFI_INSTRUCTION negate_ra_sign_state
|
|
# CHECK-NEXT: RET undef $lr
|
|
|
|
# CHECK-LABEL: name: illegal1
|
|
# CHECK: body: |
|
|
# CHECK-NEXT: bb.0 (%ir-block.0):
|
|
# CHECK-NEXT: liveins: $lr
|
|
# CHECK: frame-setup PACIASP implicit-def $lr, implicit $lr, implicit $sp
|
|
# CHECK-NEXT: frame-setup CFI_INSTRUCTION negate_ra_sign_state
|
|
# CHECK-NOT: BL @OUTLINED_FUNCTION_{{.*}}
|
|
# CHECK: frame-destroy AUTIASP implicit-def $lr, implicit $lr, implicit $sp
|
|
# CHECK-NEXT: frame-destroy CFI_INSTRUCTION negate_ra_sign_state
|
|
# CHECK-NEXT: RET undef $lr
|
|
|
|
# Outlined function that contains only legal sp modifications
|
|
# CHECK: name: [[OUTLINED_FUNC]]
|
|
# CHECK: body: |
|
|
# CHECK-NEXT: bb.0:
|
|
# CHECK-NEXT: liveins: $lr
|
|
# CHECK-NEXT: {{^ $}}
|
|
# CHECK-NEXT: frame-setup PACIASP implicit-def $lr, implicit $lr, implicit $sp
|
|
# CHECK-NEXT: frame-setup CFI_INSTRUCTION negate_ra_sign_state
|
|
# CHECK-NEXT: $sp = frame-setup SUBXri $sp, 16, 0
|
|
# CHECK: $sp = frame-destroy ADDXri $sp, 16, 0
|
|
# CHECK-NEXT: frame-destroy AUTIASP implicit-def $lr, implicit $lr, implicit $sp
|
|
# CHECK-NEXT: RET $lr
|