diff options
| author | Daniel Sanders <daniel.sanders@imgtec.com> | 2013-08-28 12:14:50 +0000 |
|---|---|---|
| committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2013-08-28 12:14:50 +0000 |
| commit | ce09d07824b130fa1a6d424e2f52ee3377073ef5 (patch) | |
| tree | 3376d7bf7d28c8efe8bbc4f8683547ae47b50ac3 /llvm/lib/Target/Mips/MipsMSAInstrFormats.td | |
| parent | bdae3787ef23070b59532e02da2ee08365015ef4 (diff) | |
| download | bcm5719-llvm-ce09d07824b130fa1a6d424e2f52ee3377073ef5.tar.gz bcm5719-llvm-ce09d07824b130fa1a6d424e2f52ee3377073ef5.zip | |
[mips][msa] Added bnz.df, bnz.v, bz.df, and bz.v
These intrinsics are legalized to V(ALL|ANY)_(NON)?ZERO nodes,
are matched as SN?Z_[BHWDV]_PSEUDO pseudo's, and emitted as
a branch/mov sequence to evaluate to 0 or 1.
Note: The resulting code is sub-optimal since it doesnt seem to be possible
to feed the result of an intrinsic directly into a brcond. At the moment
it uses (SETCC (VALL_ZERO $ws), 0, SETEQ) and similar which unnecessarily
evaluates the boolean twice.
llvm-svn: 189478
Diffstat (limited to 'llvm/lib/Target/Mips/MipsMSAInstrFormats.td')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsMSAInstrFormats.td | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsMSAInstrFormats.td b/llvm/lib/Target/Mips/MipsMSAInstrFormats.td index f337f9d8fff..b0116747192 100644 --- a/llvm/lib/Target/Mips/MipsMSAInstrFormats.td +++ b/llvm/lib/Target/Mips/MipsMSAInstrFormats.td @@ -119,3 +119,8 @@ class MSA_VEC_FMT<bits<5> major, bits<6> minor>: MSAInst { let Inst{25-21} = major; let Inst{5-0} = minor; } + +class MSA_VECS10_FMT<bits<5> major, bits<6> minor>: MSAInst { + let Inst{25-21} = major; + let Inst{5-0} = minor; +} |

