diff options
| author | Stefan Maksimovic <stefan.maksimovic@mips.com> | 2018-01-23 10:09:39 +0000 |
|---|---|---|
| committer | Stefan Maksimovic <stefan.maksimovic@mips.com> | 2018-01-23 10:09:39 +0000 |
| commit | 98749e0249892886dcbdf1c972b762660dc09029 (patch) | |
| tree | debaae0bad82fba699608af77ee2153791e45565 /llvm/test/MC/Disassembler/Mips/mips32r2 | |
| parent | 007b425b776a50b3b8d3caa482bb8ca96c48a80d (diff) | |
| download | bcm5719-llvm-98749e0249892886dcbdf1c972b762660dc09029.tar.gz bcm5719-llvm-98749e0249892886dcbdf1c972b762660dc09029.zip | |
[mips] Properly select abs and sqrt instructions
- Alter abs for micromips to have both AFGR64 and FGR64
variants, same as sqrt
- Remove sqrt and abs from MicroMips32r6InstrInfo.td,
use micromips FGR64 variants
- Restrict non-micromips abs/sqrt with NotInMicroMips
predicate
Differential revision: https://reviews.llvm.org/D41439
llvm-svn: 323184
Diffstat (limited to 'llvm/test/MC/Disassembler/Mips/mips32r2')
| -rw-r--r-- | llvm/test/MC/Disassembler/Mips/mips32r2/valid-fp64-el.txt | 7 | ||||
| -rw-r--r-- | llvm/test/MC/Disassembler/Mips/mips32r2/valid-fp64.txt | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/MC/Disassembler/Mips/mips32r2/valid-fp64-el.txt b/llvm/test/MC/Disassembler/Mips/mips32r2/valid-fp64-el.txt new file mode 100644 index 00000000000..80eaa5b11f9 --- /dev/null +++ b/llvm/test/MC/Disassembler/Mips/mips32r2/valid-fp64-el.txt @@ -0,0 +1,7 @@ +# RUN: llvm-mc --disassemble -arch=mipsel -mcpu=mips32r2 -mattr=+fp64 %s | \ +# RUN: FileCheck %s + +0x04 0x60 0x00 0x46 # CHECK: sqrt.s $f0, $f12 +0x05 0x60 0x00 0x46 # CHECK: abs.s $f0, $f12 +0x04 0x60 0x20 0x46 # CHECK: sqrt.d $f0, $f12 +0x05 0x60 0x20 0x46 # CHECK: abs.d $f0, $f12 diff --git a/llvm/test/MC/Disassembler/Mips/mips32r2/valid-fp64.txt b/llvm/test/MC/Disassembler/Mips/mips32r2/valid-fp64.txt new file mode 100644 index 00000000000..56de5c78b36 --- /dev/null +++ b/llvm/test/MC/Disassembler/Mips/mips32r2/valid-fp64.txt @@ -0,0 +1,7 @@ +# RUN: llvm-mc --disassemble -arch=mips -mcpu=mips32r2 -mattr=+fp64 %s | \ +# RUN: FileCheck %s + +0x46 0x00 0x60 0x04 # CHECK: sqrt.s $f0, $f12 +0x46 0x00 0x60 0x05 # CHECK: abs.s $f0, $f12 +0x46 0x20 0x60 0x04 # CHECK: sqrt.d $f0, $f12 +0x46 0x20 0x60 0x05 # CHECK: abs.d $f0, $f12 |

