Files
TheRock/debug-tools/rocgdb/source/sim/testsuite/bfin/c_logi2op_bitset.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

93 lines
2.4 KiB
ArmAsm

//Original:/testcases/core/c_logi2op_bitset/c_logi2op_bitset.dsp
// Spec Reference: Logi2op
# mach: bfin
.include "testutils.inc"
start
imm32 r0, 0x00000000;
imm32 r1, 0x00000000;
imm32 r2, 0x00000000;
imm32 r3, 0x00000000;
imm32 r4, 0x00000000;
imm32 r5, 0x00000000;
imm32 r6, 0x00000000;
imm32 r7, 0x00000000;
// bit set
BITSET( R0 , 0 ); /* r0 = 0x00000001 */
BITSET( R1 , 1 ); /* r1 = 0x00000002 */
BITSET( R2 , 2 ); /* r2 = 0x00000004 */
BITSET( R3 , 3 ); /* r3 = 0x00000008 */
BITSET( R4 , 4 ); /* r4 = 0x00000010 */
BITSET( R5 , 5 ); /* r5 = 0x00000020 */
BITSET( R6 , 6 ); /* r6 = 0x00000040 */
BITSET( R7 , 7 ); /* r7 = 0x00000080 */
CHECKREG r0, 0x00000001;
CHECKREG r1, 0x00000002;
CHECKREG r2, 0x00000004;
CHECKREG r3, 0x00000008;
CHECKREG r4, 0x00000010;
CHECKREG r5, 0x00000020;
CHECKREG r6, 0x00000040;
CHECKREG r7, 0x00000080;
// bit set
BITSET( R0 , 8 ); /* r0 = 0x00000100 */
BITSET( R1 , 9 ); /* r1 = 0x00000200 */
BITSET( R2 , 10 ); /* r2 = 0x00000400 */
BITSET( R3 , 11 ); /* r3 = 0x00000800 */
BITSET( R4 , 12 ); /* r4 = 0x00001000 */
BITSET( R5 , 13 ); /* r5 = 0x00002000 */
BITSET( R6 , 14 ); /* r6 = 0x00004000 */
BITSET( R7 , 15 ); /* r7 = 0x00008000 */
CHECKREG r0, 0x00000101;
CHECKREG r1, 0x00000202;
CHECKREG r2, 0x00000404;
CHECKREG r3, 0x00000808;
CHECKREG r4, 0x00001010;
CHECKREG r5, 0x00002020;
CHECKREG r6, 0x00004040;
CHECKREG r7, 0x00008080;
// bit set
BITSET( R0 , 16 ); /* r0 = 0x00000100 */
BITSET( R1 , 17 ); /* r1 = 0x00000200 */
BITSET( R2 , 18 ); /* r2 = 0x00000400 */
BITSET( R3 , 19 ); /* r3 = 0x00000800 */
BITSET( R4 , 20 ); /* r4 = 0x00001000 */
BITSET( R5 , 21 ); /* r5 = 0x00002000 */
BITSET( R6 , 22 ); /* r6 = 0x00004000 */
BITSET( R7 , 23 ); /* r7 = 0x00008000 */
CHECKREG r0, 0x00010101;
CHECKREG r1, 0x00020202;
CHECKREG r2, 0x00040404;
CHECKREG r3, 0x00080808;
CHECKREG r4, 0x00101010;
CHECKREG r5, 0x00202020;
CHECKREG r6, 0x00404040;
CHECKREG r7, 0x00808080;
// bit set
BITSET( R0 , 24 ); /* r0 = 0x00000100 */
BITSET( R1 , 25 ); /* r1 = 0x00000200 */
BITSET( R2 , 26 ); /* r2 = 0x00000400 */
BITSET( R3 , 27 ); /* r3 = 0x00000800 */
BITSET( R4 , 28 ); /* r4 = 0x00001000 */
BITSET( R5 , 29 ); /* r5 = 0x00002000 */
BITSET( R6 , 30 ); /* r6 = 0x00004000 */
BITSET( R7 , 31 ); /* r7 = 0x00008000 */
CHECKREG r0, 0x01010101;
CHECKREG r1, 0x02020202;
CHECKREG r2, 0x04040404;
CHECKREG r3, 0x08080808;
CHECKREG r4, 0x10101010;
CHECKREG r5, 0x20202020;
CHECKREG r6, 0x40404040;
CHECKREG r7, 0x80808080;
pass