llvm-6502/lib
Scott Michel 0123b7dcfa Make tblgen a little smarter about constants smaller than i32. Currently,
tblgen will complain if a sign-extended constant does not fit into a
data type smaller than i32, e.g., i16. This causes a problem when certain
hex constants are used, such as 0xff for byte masks or immediate xor
values.

tblgen will try the sign-extended value first and, if the sign extended
value would overflow, it tries to see if the unsigned value will fit.
Consequently, a software developer can now safely incant:

	(XORHIr16 R16C:$rA, 0xffff)

which is somewhat clearer and more informative than incanting:

	(XORHIr16 R16C:$rA, (i16 -1))

even if the two are bitwise equivalent.

Tblgen also outputs the 64-bit unsigned constant in the generated ISel code
when getTargetConstant() is invoked.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47188 91177308-0d34-0410-b5e6-96231b3b80d8
2008-02-15 23:05:48 +00:00
..
Analysis Fix typo. Thanks to Duncan for noticing. 2008-02-13 12:21:32 +00:00
Archive Use empty() instead of comparing size() with zero. 2008-01-29 13:02:09 +00:00
AsmParser Back out mods to llvmAsmParser, incorrectly committed 2008-01-30 03:10:00 +00:00
Bitcode Use empty() instead of comparing size() with zero. 2008-01-29 13:02:09 +00:00
CodeGen Make tblgen a little smarter about constants smaller than i32. Currently, 2008-02-15 23:05:48 +00:00
Debugger Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
ExecutionEngine Support vector constant zeros, thanks to Zack Rusin for the testcase. 2008-02-15 00:57:28 +00:00
Linker Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
Support Fixed bug in FoldingSetIteratorImpl where we did not correctly check if 2008-02-15 21:12:46 +00:00
System It is not safe to call fork in PrintStackTrace. Sometimes it freezes the program. 2008-02-15 18:05:54 +00:00
Target Handle \n's in value names for more targets. The asm printers 2008-02-15 19:04:54 +00:00
Transforms Fix PR2028 2008-02-15 01:24:49 +00:00
VMCore targets that support quotes for mangled names still need to escape newlines 2008-02-15 18:54:56 +00:00
Makefile remove attribution from lib Makefiles. 2007-12-29 20:09:26 +00:00