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
77 lines
2.0 KiB
ArmAsm
77 lines
2.0 KiB
ArmAsm
// RUN: llvm-mc -triple i686-unknown-unknown -x86-asm-syntax=intel --output-asm-variant=0 %s | FileCheck %s --check-prefixes=CHECK-32,CHECK
|
|
// RUN: llvm-mc -triple x86_64-unknown-unknown --defsym X64=1 -x86-asm-syntax=intel --output-asm-variant=0 %s | FileCheck %s --check-prefixes=CHECK-64,CHECK
|
|
|
|
// RUN: not llvm-mc -triple i686-unknown-unknown --defsym ERR=1 -x86-asm-syntax=intel --output-asm-variant=0 %s 2>&1 | FileCheck %s --check-prefixes=ERR-32
|
|
|
|
t0:
|
|
call direct_branch
|
|
jmp direct_branch
|
|
// CHECK-LABEL: t0:
|
|
// CHECK-64: callq direct_branch
|
|
// CHECK-32: calll direct_branch
|
|
// CHECK: jmp direct_branch
|
|
|
|
t1:
|
|
call [fn_ref]
|
|
jmp [fn_ref]
|
|
// CHECK-LABEL: t1:
|
|
// CHECK-64: callq *fn_ref
|
|
// CHECK-64: jmpq *fn_ref
|
|
// CHECK-32: calll *fn_ref
|
|
// CHECK-32: jmpl *fn_ref
|
|
|
|
.ifdef X64
|
|
|
|
t2:
|
|
call qword ptr [fn_ref]
|
|
jmp qword ptr [fn_ref]
|
|
// CHECK-64-LABEL: t2:
|
|
// CHECK-64: callq *fn_ref
|
|
// CHECK-64: jmpq *fn_ref
|
|
|
|
t3:
|
|
call qword ptr [rip + fn_ref]
|
|
jmp qword ptr [rip + fn_ref]
|
|
// CHECK-64-LABEL: t3:
|
|
// CHECK-64: callq *fn_ref(%rip)
|
|
// CHECK-64: jmpq *fn_ref(%rip)
|
|
|
|
.else
|
|
|
|
t4:
|
|
call dword ptr [fn_ref]
|
|
jmp dword ptr [fn_ref]
|
|
// CHECK-32-LABEL: t4:
|
|
// CHECK-32: calll *fn_ref
|
|
// CHECK-32: jmpl *fn_ref
|
|
|
|
t5:
|
|
call dword ptr fn_ref
|
|
jmp dword ptr fn_ref
|
|
// CHECK-32-LABEL: t5:
|
|
// CHECK-32: calll *fn_ref
|
|
// CHECK-32: jmpl *fn_ref
|
|
|
|
t6:
|
|
call dword ptr [offset fn_ref]
|
|
jmp dword ptr [offset fn_ref]
|
|
// CHECK-32-LABEL: t6:
|
|
// CHECK-32: calll *fn_ref
|
|
// CHECK-32: jmpl *fn_ref
|
|
|
|
.ifdef ERR
|
|
|
|
call [offset fn_ref]
|
|
// ERR-32: {{.*}}.s:[[#@LINE-1]]:8: error: `OFFSET` operator cannot be used in an unconditional branch
|
|
jmp [offset fn_ref]
|
|
// ERR-32: {{.*}}.s:[[#@LINE-1]]:7: error: `OFFSET` operator cannot be used in an unconditional branch
|
|
|
|
call offset fn_ref
|
|
// ERR-32: {{.*}}.s:[[#@LINE-1]]:3: error: invalid operand for instruction
|
|
jmp offset fn_ref
|
|
// ERR-32: {{.*}}.s:[[#@LINE-1]]:3: error: invalid operand for instruction
|
|
|
|
.endif
|
|
|
|
.endif
|