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
129 lines
2.7 KiB
ArmAsm
129 lines
2.7 KiB
ArmAsm
# REQUIRES: x86
|
|
## basic-block-sections tests.
|
|
## This simple test checks if redundant direct jumps are converted to
|
|
## implicit fallthrus. The jcc's must be converted to their inverted
|
|
## opcode, for instance jne to je and jmp must be deleted.
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
|
|
# RUN: ld.lld --optimize-bb-jumps %t.o -o %t.out
|
|
# RUN: llvm-objdump -d %t.out| FileCheck %s
|
|
|
|
# CHECK: <foo>:
|
|
# CHECK-NEXT: nopl (%rax)
|
|
# CHECK-NEXT: jne 0x{{[[:xdigit:]]+}} <r.BB.foo>
|
|
# CHECK-NOT: jmp
|
|
|
|
|
|
.section .text,"ax",@progbits
|
|
.type foo,@function
|
|
foo:
|
|
nopl (%rax)
|
|
je a.BB.foo
|
|
jmp r.BB.foo
|
|
|
|
# CHECK: <a.BB.foo>:
|
|
# CHECK-NEXT: nopl (%rax)
|
|
# CHECK-NEXT: je 0x{{[[:xdigit:]]+}} <r.BB.foo>
|
|
# CHECK-NOT: jmp
|
|
|
|
.section .text,"ax",@progbits,unique,3
|
|
a.BB.foo:
|
|
nopl (%rax)
|
|
jne aa.BB.foo
|
|
jmp r.BB.foo
|
|
|
|
# CHECK: <aa.BB.foo>:
|
|
# CHECK-NEXT: nopl (%rax)
|
|
# CHECK-NEXT: jle 0x{{[[:xdigit:]]+}} <r.BB.foo>
|
|
# CHECK-NOT: jmp
|
|
#
|
|
.section .text,"ax",@progbits,unique,4
|
|
aa.BB.foo:
|
|
nopl (%rax)
|
|
jg aaa.BB.foo
|
|
jmp r.BB.foo
|
|
|
|
# CHECK: <aaa.BB.foo>:
|
|
# CHECK-NEXT: nopl (%rax)
|
|
# CHECK-NEXT: jl 0x{{[[:xdigit:]]+}} <r.BB.foo>
|
|
# CHECK-NOT: jmp
|
|
#
|
|
.section .text,"ax",@progbits,unique,5
|
|
aaa.BB.foo:
|
|
nopl (%rax)
|
|
jge aaaa.BB.foo
|
|
jmp r.BB.foo
|
|
|
|
# CHECK: <aaaa.BB.foo>:
|
|
# CHECK-NEXT: nopl (%rax)
|
|
# CHECK-NEXT: jae 0x{{[[:xdigit:]]+}} <r.BB.foo>
|
|
# CHECK-NOT: jmp
|
|
#
|
|
.section .text,"ax",@progbits,unique,6
|
|
aaaa.BB.foo:
|
|
nopl (%rax)
|
|
jb aaaaa.BB.foo
|
|
jmp r.BB.foo
|
|
|
|
# CHECK: <aaaaa.BB.foo>:
|
|
# CHECK-NEXT: nopl (%rax)
|
|
# CHECK-NEXT: ja 0x{{[[:xdigit:]]+}} <r.BB.foo>
|
|
# CHECK-NOT: jmp
|
|
#
|
|
.section .text,"ax",@progbits,unique,7
|
|
aaaaa.BB.foo:
|
|
nopl (%rax)
|
|
jbe aaaaaa.BB.foo
|
|
jmp r.BB.foo
|
|
|
|
# CHECK: <aaaaaa.BB.foo>:
|
|
# CHECK-NEXT: nopl (%rax)
|
|
# CHECK-NEXT: jge 0x{{[[:xdigit:]]+}} <r.BB.foo>
|
|
# CHECK-NOT: jmp
|
|
#
|
|
.section .text,"ax",@progbits,unique,8
|
|
aaaaaa.BB.foo:
|
|
nopl (%rax)
|
|
jl aaaaaaa.BB.foo
|
|
jmp r.BB.foo
|
|
|
|
# CHECK: <aaaaaaa.BB.foo>:
|
|
# CHECK-NEXT: nopl (%rax)
|
|
# CHECK-NEXT: jg 0x{{[[:xdigit:]]+}} <r.BB.foo>
|
|
# CHECK-NOT: jmp
|
|
#
|
|
.section .text,"ax",@progbits,unique,9
|
|
aaaaaaa.BB.foo:
|
|
nopl (%rax)
|
|
jle aaaaaaaa.BB.foo
|
|
jmp r.BB.foo
|
|
|
|
# CHECK: <aaaaaaaa.BB.foo>:
|
|
# CHECK-NEXT: nopl (%rax)
|
|
# CHECK-NEXT: jbe 0x{{[[:xdigit:]]+}} <r.BB.foo>
|
|
# CHECK-NOT: jmp
|
|
#
|
|
.section .text,"ax",@progbits,unique,10
|
|
aaaaaaaa.BB.foo:
|
|
nopl (%rax)
|
|
ja aaaaaaaaa.BB.foo
|
|
jmp r.BB.foo
|
|
|
|
# CHECK: <aaaaaaaaa.BB.foo>:
|
|
# CHECK-NEXT: nopl (%rax)
|
|
# CHECK-NEXT: jb 0x{{[[:xdigit:]]+}} <r.BB.foo>
|
|
# CHECK-NOT: jmp
|
|
#
|
|
.section .text,"ax",@progbits,unique,11
|
|
aaaaaaaaa.BB.foo:
|
|
nopl (%rax)
|
|
jae aaaaaaaaaa.BB.foo
|
|
jmp r.BB.foo
|
|
|
|
.section .text,"ax",@progbits,unique,20
|
|
aaaaaaaaaa.BB.foo:
|
|
nopl (%rax)
|
|
|
|
r.BB.foo:
|
|
ret
|