diff options
| author | Tim Northover <tnorthover@apple.com> | 2014-04-30 13:14:03 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2014-04-30 13:14:03 +0000 |
| commit | 20ad359b77767cf588f7025271bad5ca8a0bd82e (patch) | |
| tree | f1d8772ba86e4eab6d6ecdb450ae1ead9481ad7b /llvm/lib/Target/ARM64/ARM64ISelLowering.cpp | |
| parent | 5e096411dc6735b57eb12b7e645f6144439babbf (diff) | |
| download | bcm5719-llvm-20ad359b77767cf588f7025271bad5ca8a0bd82e.tar.gz bcm5719-llvm-20ad359b77767cf588f7025271bad5ca8a0bd82e.zip | |
AArch64/ARM64: use HS instead of CS & LO instead of CC.
On instructions using the NZCV register, a couple of conditions have dual
representations: HS/CS and LO/CC (meaning unsigned-higher-or-same/carry-set and
unsigned-lower/carry-clear). The first of these is more descriptive in most
circumstances, so we should print it.
llvm-svn: 207644
Diffstat (limited to 'llvm/lib/Target/ARM64/ARM64ISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/ARM64/ARM64ISelLowering.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/ARM64/ARM64ISelLowering.cpp b/llvm/lib/Target/ARM64/ARM64ISelLowering.cpp index 869efcb4d41..029112986ec 100644 --- a/llvm/lib/Target/ARM64/ARM64ISelLowering.cpp +++ b/llvm/lib/Target/ARM64/ARM64ISelLowering.cpp @@ -822,9 +822,9 @@ static ARM64CC::CondCode changeIntCCToARM64CC(ISD::CondCode CC) { case ISD::SETUGT: return ARM64CC::HI; case ISD::SETUGE: - return ARM64CC::CS; + return ARM64CC::HS; case ISD::SETULT: - return ARM64CC::CC; + return ARM64CC::LO; case ISD::SETULE: return ARM64CC::LS; } @@ -1052,7 +1052,7 @@ getARM64XALUOOp(ARM64CC::CondCode &CC, SDValue Op, SelectionDAG &DAG) { break; case ISD::UADDO: Opc = ARM64ISD::ADDS; - CC = ARM64CC::CS; + CC = ARM64CC::HS; break; case ISD::SSUBO: Opc = ARM64ISD::SUBS; @@ -1060,7 +1060,7 @@ getARM64XALUOOp(ARM64CC::CondCode &CC, SDValue Op, SelectionDAG &DAG) { break; case ISD::USUBO: Opc = ARM64ISD::SUBS; - CC = ARM64CC::CC; + CC = ARM64CC::LO; break; // Multiply needs a little bit extra work. case ISD::SMULO: @@ -5553,7 +5553,7 @@ static SDValue EmitVectorComparison(SDValue LHS, SDValue RHS, return DAG.getNode(ARM64ISD::CMGE, dl, VT, RHS, LHS); case ARM64CC::LS: return DAG.getNode(ARM64ISD::CMHS, dl, VT, RHS, LHS); - case ARM64CC::CC: + case ARM64CC::LO: return DAG.getNode(ARM64ISD::CMHI, dl, VT, RHS, LHS); case ARM64CC::LT: if (IsZero) @@ -5561,7 +5561,7 @@ static SDValue EmitVectorComparison(SDValue LHS, SDValue RHS, return DAG.getNode(ARM64ISD::CMGT, dl, VT, RHS, LHS); case ARM64CC::HI: return DAG.getNode(ARM64ISD::CMHI, dl, VT, LHS, RHS); - case ARM64CC::CS: + case ARM64CC::HS: return DAG.getNode(ARM64ISD::CMHS, dl, VT, LHS, RHS); } } |

