diff options
| author | Dan Gohman <gohman@apple.com> | 2010-02-08 23:58:47 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-02-08 23:58:47 +0000 |
| commit | 9a9d9ea7bcadc2e58b3b37b795ad6b416ef2cf99 (patch) | |
| tree | ba4d11e2aab8c8864c838f3098fbd27405eb8df2 /llvm/lib | |
| parent | 3f91c4b289d42c2b8e480740eb5a8a3ded279d6e (diff) | |
| download | bcm5719-llvm-9a9d9ea7bcadc2e58b3b37b795ad6b416ef2cf99.tar.gz bcm5719-llvm-9a9d9ea7bcadc2e58b3b37b795ad6b416ef2cf99.zip | |
Document that MCExpr::Mod is actually remainder.
Document that MCExpr::Div, Mod, and the comparison operators are all
signed operators.
Document that the comparison operators' results are target-dependent.
Document that the behavior of shr is target-dependent.
llvm-svn: 95619
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/MC/MCExpr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCExpr.cpp b/llvm/lib/MC/MCExpr.cpp index afdaa00926c..e419043a771 100644 --- a/llvm/lib/MC/MCExpr.cpp +++ b/llvm/lib/MC/MCExpr.cpp @@ -252,8 +252,8 @@ bool MCExpr::EvaluateAsRelocatable(MCValue &Res) const { } // FIXME: We need target hooks for the evaluation. It may be limited in - // width, and gas defines the result of comparisons differently from Apple - // as (the result is sign extended). + // width, and gas defines the result of comparisons and right shifts + // differently from Apple as. int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant(); int64_t Result = 0; switch (ABE->getOpcode()) { |

