llvm.org GIT mirror llvm / 8b88679
Correction to assert statemtent to allow 32-bit unsigned numbers with the top bit set. This fixes an ARM assembler crash - regression test added. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207747 91177308-0d34-0410-b5e6-96231b3b80d8 Richard Barton 6 years ago
2 changed file(s) with 9 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
94869486 int64_t Value;
94879487 if (!SOExpr->EvaluateAsAbsolute(Value))
94889488 return Match_Success;
9489 assert((Value >= INT32_MIN && Value <= INT32_MAX) &&
9490 "expression value must be representiable in 32 bits");
9489 assert((Value >= INT32_MIN && Value <= UINT32_MAX) &&
9490 "expression value must be representable in 32 bits");
94919491 }
94929492 break;
94939493 case MCK_GPRPair:
8080 @ CHECK-ERRORS: ^
8181 @ CHECK-ERRORS: error: immediate expression for mov requires :lower16: or :upper16
8282 @ CHECK-ERRORS: ^
83
84 and sp, r1, #80008000
85 and pc, r1, #80008000
86 @ CHECK-ERRORS: error: invalid operand for instruction
87 @ CHECK-ERRORS: error: invalid operand for instruction
88
89