diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:27:26 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:27:26 +0000 |
| commit | 628d41952001784bcd5b45156eefb2eed1fd6c43 (patch) | |
| tree | 339e29a9f73cc6caca7bcc20a8473cb4179757f1 /lib/Target/SystemZ/SystemZInstrInfo.cpp | |
| parent | 05a0b8bc661b5a1565c54e021c353ef191fa3f61 (diff) | |
Add missed condbranch opcodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZInstrInfo.cpp')
| -rw-r--r-- | lib/Target/SystemZ/SystemZInstrInfo.cpp | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrInfo.cpp b/lib/Target/SystemZ/SystemZInstrInfo.cpp index 0826437f33..0e597a835a 100644 --- a/lib/Target/SystemZ/SystemZInstrInfo.cpp +++ b/lib/Target/SystemZ/SystemZInstrInfo.cpp @@ -347,24 +347,48 @@ SystemZInstrInfo::getBrCond(SystemZCC::CondCodes CC) const { switch (CC) { default: assert(0 && "Unknown condition code!"); - case SystemZCC::E: - Opc = SystemZ::JE; - break; - case SystemZCC::NE: - Opc = SystemZ::JNE; + case SystemZCC::O: + Opc = SystemZ::JO; break; case SystemZCC::H: Opc = SystemZ::JH; break; + case SystemZCC::NLE: + Opc = SystemZ::JNLE; + break; case SystemZCC::L: Opc = SystemZ::JL; break; + case SystemZCC::NHE: + Opc = SystemZ::JNHE; + break; + case SystemZCC::LH: + Opc = SystemZ::JLH; + break; + case SystemZCC::NE: + Opc = SystemZ::JNE; + break; + case SystemZCC::E: + Opc = SystemZ::JE; + break; + case SystemZCC::NLH: + Opc = SystemZ::JNLH; + break; case SystemZCC::HE: Opc = SystemZ::JHE; break; + case SystemZCC::NL: + Opc = SystemZ::JNL; + break; case SystemZCC::LE: Opc = SystemZ::JLE; break; + case SystemZCC::NH: + Opc = SystemZ::JNH; + break; + case SystemZCC::NO: + Opc = SystemZ::JNO; + break; } return get(Opc); |
