mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +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.
60 lines
868 B
ArmAsm
60 lines
868 B
ArmAsm
# mach: aarch64
|
|
|
|
# Check the FP convert to longer precision: fcvtl, fcvtl2.
|
|
# Test values 1.5, -1.5, INTMAX, and INT_MIN.
|
|
|
|
.include "testutils.inc"
|
|
|
|
.data
|
|
.align 4
|
|
input:
|
|
.word 1069547520
|
|
.word 3217031168
|
|
.word 1325400064
|
|
.word 3472883712
|
|
d1p5:
|
|
.word 0
|
|
.word 1073217536
|
|
dm1p5:
|
|
.word 0
|
|
.word -1074266112
|
|
dimax:
|
|
.word 0
|
|
.word 1105199104
|
|
dimin:
|
|
.word 0
|
|
.word -1042284544
|
|
|
|
start
|
|
adrp x0, input
|
|
add x0, x0, #:lo12:input
|
|
ld1 {v0.4s}, [x0]
|
|
|
|
fcvtl v1.2d, v0.2s
|
|
mov x1, v1.d[0]
|
|
adrp x2, d1p5
|
|
ldr x3, [x2, #:lo12:d1p5]
|
|
cmp x1, x3
|
|
bne .Lfailure
|
|
mov x1, v1.d[1]
|
|
adrp x2, dm1p5
|
|
ldr x3, [x2, #:lo12:dm1p5]
|
|
cmp x1, x3
|
|
bne .Lfailure
|
|
|
|
fcvtl2 v2.2d, v0.4s
|
|
mov x1, v2.d[0]
|
|
adrp x2, dimax
|
|
ldr x3, [x2, #:lo12:dimax]
|
|
cmp x1, x3
|
|
bne .Lfailure
|
|
mov x1, v2.d[1]
|
|
adrp x2, dimin
|
|
ldr x3, [x2, #:lo12:dimin]
|
|
cmp x1, x3
|
|
bne .Lfailure
|
|
|
|
pass
|
|
.Lfailure:
|
|
fail
|