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
46 lines
1.6 KiB
ArmAsm
46 lines
1.6 KiB
ArmAsm
## Test that infer-fall-throughs would correctly infer the wrong fall-through
|
|
## edge count in the example
|
|
|
|
# RUN: llvm-mc --filetype=obj --triple x86_64-unknown-unknown %s -o %t.o
|
|
# RUN: link_fdata %s %t.o %t.fdata
|
|
# RUN: llvm-strip --strip-unneeded %t.o
|
|
# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q
|
|
# RUN: llvm-bolt %t.exe -o %t.bolt \
|
|
# RUN: --print-estimate-edge-counts --data=%t.fdata \
|
|
# RUN: 2>&1 | FileCheck --check-prefix=WITHOUTINFERENCE %s
|
|
# RUN: llvm-bolt %t.exe -o %t.bolt --infer-fall-throughs \
|
|
# RUN: --print-estimate-edge-counts --data=%t.fdata \
|
|
# RUN: 2>&1 | FileCheck --check-prefix=CORRECTINFERENCE %s
|
|
|
|
|
|
# WITHOUTINFERENCE: Binary Function "main" after estimate-edge-counts
|
|
# WITHOUTINFERENCE: {{^\.Ltmp0}}
|
|
# WITHOUTINFERENCE: Successors: .Ltmp1 (mispreds: 0, count: 10), .LFT0 (mispreds: 0, count: 0)
|
|
# WITHOUTINFERENCE: {{^\.LFT0}}
|
|
# WITHOUTINFERENCE: Exec Count : 490
|
|
|
|
# CORRECTINFERENCE: Binary Function "main" after estimate-edge-counts
|
|
# CORRECTINFERENCE: {{^\.Ltmp0}}
|
|
# CORRECTINFERENCE: Successors: .Ltmp1 (mispreds: 0, count: 10), .LFT0 (inferred count: 490)
|
|
# CORRECTINFERENCE: {{^\.LFT0}}
|
|
# CORRECTINFERENCE: Exec Count : 490
|
|
|
|
|
|
.globl main
|
|
.type main, @function
|
|
main:
|
|
LLmain_LLstart:
|
|
jmp LLstart
|
|
# FDATA: 1 main #LLmain_LLstart# 1 main #LLstart# 0 500
|
|
LLstart:
|
|
jge LLexit
|
|
# FDATA: 1 main #LLstart# 1 main #LLexit# 0 10
|
|
# FDATA: 1 main #LLstart# 1 main #LLmore# 0 0
|
|
LLmore:
|
|
movl $5, %eax
|
|
# FDATA: 1 main #LLmore# 1 main #LLexit# 0 490
|
|
LLexit:
|
|
ret
|
|
.LLmain_end:
|
|
.size main, .LLmain_end-main
|