Files
TheRock/debug-tools/rocgdb/source/sim/testsuite/bfin/c_ccflag_a0a1.S
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

144 lines
2.6 KiB
ArmAsm

//Original:/testcases/core/c_ccflag_a0a1/c_ccflag_a0a1.dsp
// Spec Reference: ccflag a0-a1 (==, <, <=)
# mach: bfin
#include "test.h"
.include "testutils.inc"
start
imm32 r0, 0x12345778;
imm32 r1, 0x12345678;
imm32 r2, 0x056789ab;
imm32 r3, 0x80231345;
imm32 r4, 0x00770088;
imm32 r5, 0x009900aa;
imm32 r6, 0x00bb00cc;
imm32 r7, _UNSET;
ASTAT = R7;
R4 = ASTAT;
A0 = R0;
A1 = R0;
// positive a0 EQUAL to a1
CC = A0 == A1;
R5 = ASTAT;
CC = A0 < A1;
R6 = ASTAT;
CHECKREG r4, _UNSET;
CHECKREG r5, (_AC0|_CC|_AC0_COPY|_AZ);
CHECKREG r6, (_AC0|_AC0_COPY|_AZ);
CC = A0 <= A1;
R5 = ASTAT;
CC = A0 < A1;
R6 = ASTAT;
CC = A0 <= A1;
R7 = ASTAT;
CHECKREG r5, (_AC0|_CC|_AC0_COPY|_AZ);
CHECKREG r6, (_AC0|_AC0_COPY|_AZ);
CHECKREG r7, (_AC0|_CC|_AC0_COPY|_AZ);
// positive a0 GREATER than to positive a1
A1 = R1;
CC = A0 == A1;
R5 = ASTAT;
CC = A0 < A1;
R6 = ASTAT;
CC = A0 <= A1;
R7 = ASTAT;
CHECKREG r5, (_AC0|_AC0_COPY); // carry
CHECKREG r6, (_AC0|_AC0_COPY);
CHECKREG r7, (_AC0|_AC0_COPY);
// positive a0 LESS than to positive a1
A1 = R2;
CC = A0 == A1;
R5 = ASTAT;
CC = A0 < A1;
R6 = ASTAT;
CC = A0 <= A1;
R7 = ASTAT;
CHECKREG r5, (_AC0|_AC0_COPY);
CHECKREG r6, (_AC0|_AC0_COPY);
CHECKREG r7, (_AC0|_AC0_COPY);
// positive a0 GREATER than to neg a1
A1 = R3;
CC = A0 == A1;
R5 = ASTAT;
CC = A0 < A1;
R6 = ASTAT;
CC = A0 <= A1;
R7 = ASTAT;
CHECKREG r5, _UNSET;
CHECKREG r6, _UNSET;
CHECKREG r7, _UNSET;
// negative a0 and positive a1
imm32 r0, -1;
imm32 r1, 2;
imm32 r2, -3;
imm32 r3, -4;
A0 = R0;
A1 = R1;
R7 = 0;
ASTAT = R7;
R4 = ASTAT;
CC = A0 == A1;
R5 = ASTAT;
CC = A0 < A1;
R6 = ASTAT;
CC = A0 <= A1;
R7 = ASTAT;
CHECKREG r4, _UNSET;
CHECKREG r5, (_AC0|_AC0_COPY|_AN);
CHECKREG r6, (_AC0|_AC0_COPY|_CC|_AN);
CHECKREG r7, (_AC0|_AC0_COPY|_CC|_AN);
// negative a0 LESS than neg a1
A0 = R3;
A1 = R4;
CC = A0 == A1;
R5 = ASTAT;
CC = A0 < A1;
R6 = ASTAT;
CC = A0 <= A1;
R7 = ASTAT;
CHECKREG r4, _UNSET;
CHECKREG r5, (_AC0|_AC0_COPY|_AN);
CHECKREG r6, (_AC0|_AC0_COPY|_CC|_AN);
CHECKREG r7, (_AC0|_AC0_COPY|_CC|_AN);
// negative a0 GREATER neg a1
A0 = R0;
A1 = R3;
CC = A0 == A1;
R5 = ASTAT;
CC = A0 < A1;
R6 = ASTAT;
CC = A0 <= A1;
R7 = ASTAT;
CHECKREG r4, _UNSET;
CHECKREG r5, (_AC0|_AC0_COPY);
CHECKREG r6, (_AC0|_AC0_COPY);
CHECKREG r7, (_AC0|_AC0_COPY);
// negative a0 EQUAL neg imm3
A0 = R3;
A1 = R3;
CC = A0 == A1;
R5 = ASTAT;
CC = A0 < A1;
R6 = ASTAT;
CC = A0 <= A1;
R7 = ASTAT;
CHECKREG r4, _UNSET;
CHECKREG r5, (_AC0|_CC|_AC0_COPY|_AZ);
CHECKREG r6, (_AC0|_AC0_COPY|_AZ);
CHECKREG r7, (_AC0|_CC|_AC0_COPY|_AZ);
pass