mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
1368b914e9
Now that all port tests live under testsuite/sim/*/, and none live in testsuite/ directly, flatten the structure by moving all of the dirs under testsuite/sim/ to testsuite/ directly. We need to stop passing --tool to dejagnu so that it searches all dirs and not just ones that start with "sim". Since we have no other dirs in this tree, and no plans to add any, should be fine.
34 lines
418 B
ArmAsm
34 lines
418 B
ArmAsm
# mach: aarch64
|
|
|
|
# Check the popcount instruction: cnt.
|
|
|
|
.include "testutils.inc"
|
|
|
|
.data
|
|
.align 4
|
|
input:
|
|
.word 0x04030201
|
|
.word 0x0f070605
|
|
.word 0x44332211
|
|
.word 0xff776655
|
|
|
|
start
|
|
adrp x0, input
|
|
ldr q0, [x0, #:lo12:input]
|
|
|
|
cnt v1.8b, v0.8b
|
|
addv b2, v1.8b
|
|
mov x1, v2.d[0]
|
|
cmp x1, #16
|
|
bne .Lfailure
|
|
|
|
cnt v1.16b, v0.16b
|
|
addv b2, v1.16b
|
|
mov x1, v2.d[0]
|
|
cmp x1, #48
|
|
bne .Lfailure
|
|
|
|
pass
|
|
.Lfailure:
|
|
fail
|