diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-02-09 19:10:46 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-02-09 19:10:46 +0000 |
commit | 9b48e8d233e9013dc6a38e628350c6d76c46a58a (patch) | |
tree | 1282627a179dd49a1986fdc27a8d1128f3fb7fc9 /llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp | |
parent | 3959041d4ec6f08dd4c9b11f0e21069a7a836c08 (diff) | |
download | bcm5719-llvm-9b48e8d233e9013dc6a38e628350c6d76c46a58a.tar.gz bcm5719-llvm-9b48e8d233e9013dc6a38e628350c6d76c46a58a.zip |
[Hexagon] Add code to select QTRUE and QFALSE
Fixes http://llvm.org/PR36320.
llvm-svn: 324763
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp b/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp index f313f2fc867..99436aae201 100644 --- a/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp +++ b/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp @@ -1124,6 +1124,20 @@ bool HexagonInstrInfo::expandPostRAPseudo(MachineInstr &MI) const { MBB.erase(MI); return true; } + case Hexagon::PS_qtrue: { + BuildMI(MBB, MI, DL, get(Hexagon::V6_veqw), MI.getOperand(0).getReg()) + .addReg(Hexagon::V0, RegState::Undef) + .addReg(Hexagon::V0, RegState::Undef); + MBB.erase(MI); + return true; + } + case Hexagon::PS_qfalse: { + BuildMI(MBB, MI, DL, get(Hexagon::V6_vgtw), MI.getOperand(0).getReg()) + .addReg(Hexagon::V0, RegState::Undef) + .addReg(Hexagon::V0, RegState::Undef); + MBB.erase(MI); + return true; + } case Hexagon::PS_vmulw: { // Expand a 64-bit vector multiply into 2 32-bit scalar multiplies. unsigned DstReg = MI.getOperand(0).getReg(); |