mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Allow binary and for tblgen math.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214851 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -911,6 +911,7 @@ Init *TGParser::ParseOperation(Record *CurRec, RecTy *ItemType) {
|
||||
|
||||
case tgtok::XConcat:
|
||||
case tgtok::XADD:
|
||||
case tgtok::XAND:
|
||||
case tgtok::XSRA:
|
||||
case tgtok::XSRL:
|
||||
case tgtok::XSHL:
|
||||
@ -928,6 +929,7 @@ Init *TGParser::ParseOperation(Record *CurRec, RecTy *ItemType) {
|
||||
default: llvm_unreachable("Unhandled code!");
|
||||
case tgtok::XConcat: Code = BinOpInit::CONCAT;Type = DagRecTy::get(); break;
|
||||
case tgtok::XADD: Code = BinOpInit::ADD; Type = IntRecTy::get(); break;
|
||||
case tgtok::XAND: Code = BinOpInit::AND; Type = IntRecTy::get(); break;
|
||||
case tgtok::XSRA: Code = BinOpInit::SRA; Type = IntRecTy::get(); break;
|
||||
case tgtok::XSRL: Code = BinOpInit::SRL; Type = IntRecTy::get(); break;
|
||||
case tgtok::XSHL: Code = BinOpInit::SHL; Type = IntRecTy::get(); break;
|
||||
@ -1446,6 +1448,7 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType,
|
||||
case tgtok::XCast: // Value ::= !unop '(' Value ')'
|
||||
case tgtok::XConcat:
|
||||
case tgtok::XADD:
|
||||
case tgtok::XAND:
|
||||
case tgtok::XSRA:
|
||||
case tgtok::XSRL:
|
||||
case tgtok::XSHL:
|
||||
|
Reference in New Issue
Block a user