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
99 lines
1.5 KiB
ArmAsm
99 lines
1.5 KiB
ArmAsm
# mach: aarch64
|
|
|
|
# Check the basic integer compare instructions: adds, adds64, subs, subs64.
|
|
# For add, check value pairs 1 and -1 (Z), -1 and -1 (N), 2 and -1 (C),
|
|
# and MIN_INT and -1 (V),
|
|
# Also check -2 and 1 (not C).
|
|
# For sub, negate the second value.
|
|
|
|
.include "testutils.inc"
|
|
|
|
start
|
|
mov w0, #1
|
|
mov w1, #-1
|
|
adds w2, w0, w1
|
|
bne .Lfailure
|
|
mov w0, #-1
|
|
mov w1, #-1
|
|
adds w2, w0, w1
|
|
bpl .Lfailure
|
|
mov w0, #2
|
|
mov w1, #-1
|
|
adds w2, w0, w1
|
|
bcc .Lfailure
|
|
mov w0, #0x80000000
|
|
mov w1, #-1
|
|
adds w2, w0, w1
|
|
bvc .Lfailure
|
|
mov w0, #-2
|
|
mov w1, #1
|
|
adds w2, w0, w1
|
|
bcs .Lfailure
|
|
|
|
mov x0, #1
|
|
mov x1, #-1
|
|
adds x2, x0, x1
|
|
bne .Lfailure
|
|
mov x0, #-1
|
|
mov x1, #-1
|
|
adds x2, x0, x1
|
|
bpl .Lfailure
|
|
mov x0, #2
|
|
mov x1, #-1
|
|
adds x2, x0, x1
|
|
bcc .Lfailure
|
|
mov x0, #0x8000000000000000
|
|
mov x1, #-1
|
|
adds x2, x0, x1
|
|
bvc .Lfailure
|
|
mov x0, #-2
|
|
mov x1, #1
|
|
adds x2, x0, x1
|
|
bcs .Lfailure
|
|
|
|
mov w0, #1
|
|
mov w1, #1
|
|
subs w2, w0, w1
|
|
bne .Lfailure
|
|
mov w0, #-1
|
|
mov w1, #1
|
|
subs w2, w0, w1
|
|
bpl .Lfailure
|
|
mov w0, #2
|
|
mov w1, #1
|
|
subs w2, w0, w1
|
|
bcc .Lfailure
|
|
mov w0, #0x80000000
|
|
mov w1, #1
|
|
subs w2, w0, w1
|
|
bvc .Lfailure
|
|
mov w0, #-2
|
|
mov w1, #-1
|
|
subs w2, w0, w1
|
|
bcs .Lfailure
|
|
|
|
mov x0, #1
|
|
mov x1, #1
|
|
subs x2, x0, x1
|
|
bne .Lfailure
|
|
mov x0, #-1
|
|
mov x1, #1
|
|
subs x2, x0, x1
|
|
bpl .Lfailure
|
|
mov x0, #2
|
|
mov x1, #1
|
|
subs x2, x0, x1
|
|
bcc .Lfailure
|
|
mov x0, #0x8000000000000000
|
|
mov x1, #1
|
|
subs x2, x0, x1
|
|
bvc .Lfailure
|
|
mov x0, #-2
|
|
mov x1, #-1
|
|
subs x2, x0, x1
|
|
bcs .Lfailure
|
|
|
|
pass
|
|
.Lfailure:
|
|
fail
|