diff options
author | Jiajie Chen <c@jia.je> | 2023-10-26 17:35:14 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2023-11-27 15:18:15 +0800 |
commit | cd51849c90e8fd13779bec69f5d4c7aadf03a532 (patch) | |
tree | ec4ca36753b60f8e06e4fb5b2eb8ee48afa13abe /gas/testsuite | |
parent | 9ff4752d0f6d46ca0f7d275ea07e05790ac8dd1d (diff) | |
download | gdb-cd51849c90e8fd13779bec69f5d4c7aadf03a532.zip gdb-cd51849c90e8fd13779bec69f5d4c7aadf03a532.tar.gz gdb-cd51849c90e8fd13779bec69f5d4c7aadf03a532.tar.bz2 |
as: Add new estimated reciprocal instructions in LoongArch v1.1
New estimated reciprocal instructions in LoongArch v1.1:
- frecipe.s/d
- frsqrte.s/d
- vfrecipe.s/d
- vfrsqrte.s/d
- xvfrecipe.s/d
- xvfrsqrte.s/d
Signed-off-by: Jiajie Chen <c@jia.je>
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/loongarch/float_op.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/loongarch/float_op.s | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/loongarch/vector.d | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/loongarch/vector.s | 8 |
4 files changed, 24 insertions, 0 deletions
diff --git a/gas/testsuite/gas/loongarch/float_op.d b/gas/testsuite/gas/loongarch/float_op.d index f9d3b89..b09e7ba 100644 --- a/gas/testsuite/gas/loongarch/float_op.d +++ b/gas/testsuite/gas/loongarch/float_op.d @@ -83,3 +83,7 @@ Disassembly of section .text: [ ]+124:[ ]+011d2820 [ ]+ffint.d.l[ ]+[ ]+\$fa0, \$fa1 [ ]+128:[ ]+011e4420 [ ]+frint.s[ ]+[ ]+\$fa0, \$fa1 [ ]+12c:[ ]+011e4820 [ ]+frint.d[ ]+[ ]+\$fa0, \$fa1 +[ ]+130:[ ]+01147420 [ ]+frecipe.s[ ]+[ ]+\$fa0, \$fa1 +[ ]+134:[ ]+01147820 [ ]+frecipe.d[ ]+[ ]+\$fa0, \$fa1 +[ ]+138:[ ]+01148420 [ ]+frsqrte.s[ ]+[ ]+\$fa0, \$fa1 +[ ]+13c:[ ]+01148820 [ ]+frsqrte.d[ ]+[ ]+\$fa0, \$fa1 diff --git a/gas/testsuite/gas/loongarch/float_op.s b/gas/testsuite/gas/loongarch/float_op.s index 2e3ec5b..a83be3e 100644 --- a/gas/testsuite/gas/loongarch/float_op.s +++ b/gas/testsuite/gas/loongarch/float_op.s @@ -74,3 +74,7 @@ ffint.d.w $f0,$f1 ffint.d.l $f0,$f1 frint.s $f0,$f1 frint.d $f0,$f1 +frecipe.s $f0,$f1 +frecipe.d $f0,$f1 +frsqrte.s $f0,$f1 +frsqrte.d $f0,$f1 diff --git a/gas/testsuite/gas/loongarch/vector.d b/gas/testsuite/gas/loongarch/vector.d index 1a092bc..4526b3d 100644 --- a/gas/testsuite/gas/loongarch/vector.d +++ b/gas/testsuite/gas/loongarch/vector.d @@ -1459,3 +1459,11 @@ Disassembly of section .text: [ ]+16a0:[ ]+77e40420[ ]+xvpermi.w[ ]+\$xr0,[ ]+\$xr1,[ ]+0x1 [ ]+16a4:[ ]+77e80420[ ]+xvpermi.d[ ]+\$xr0,[ ]+\$xr1,[ ]+0x1 [ ]+16a8:[ ]+77ec0420[ ]+xvpermi.q[ ]+\$xr0,[ ]+\$xr1,[ ]+0x1 +[ ]+16ac:[ ]+729d1420[ ]+vfrecipe.s[ ]+\$vr0,[ ]+\$vr1 +[ ]+16b0:[ ]+729d1820[ ]+vfrecipe.d[ ]+\$vr0,[ ]+\$vr1 +[ ]+16b4:[ ]+729d2420[ ]+vfrsqrte.s[ ]+\$vr0,[ ]+\$vr1 +[ ]+16b8:[ ]+729d2820[ ]+vfrsqrte.d[ ]+\$vr0,[ ]+\$vr1 +[ ]+16bc:[ ]+769d1420[ ]+xvfrecipe.s[ ]+\$xr0,[ ]+\$xr1 +[ ]+16c0:[ ]+769d1820[ ]+xvfrecipe.d[ ]+\$xr0,[ ]+\$xr1 +[ ]+16c4:[ ]+769d2420[ ]+xvfrsqrte.s[ ]+\$xr0,[ ]+\$xr1 +[ ]+16c8:[ ]+769d2820[ ]+xvfrsqrte.d[ ]+\$xr0,[ ]+\$xr1 diff --git a/gas/testsuite/gas/loongarch/vector.s b/gas/testsuite/gas/loongarch/vector.s index fe0369e..0283a4b 100644 --- a/gas/testsuite/gas/loongarch/vector.s +++ b/gas/testsuite/gas/loongarch/vector.s @@ -1449,3 +1449,11 @@ xvldi $xr0, 1 xvpermi.w $xr0, $xr1, 1 xvpermi.d $xr0, $xr1, 1 xvpermi.q $xr0, $xr1, 1 +vfrecipe.s $vr0, $vr1 +vfrecipe.d $vr0, $vr1 +vfrsqrte.s $vr0, $vr1 +vfrsqrte.d $vr0, $vr1 +xvfrecipe.s $xr0, $xr1 +xvfrecipe.d $xr0, $xr1 +xvfrsqrte.s $xr0, $xr1 +xvfrsqrte.d $xr0, $xr1 |