llvm-6502/utils
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
..
buildit Remove dead code. 2008-02-12 18:20:50 +00:00
emacs
fpcmp
PerfectShuffle
TableGen Make tblgen a little smarter about constants smaller than i32. Currently, 2008-02-15 23:05:48 +00:00
vim Update this file for 2.0 syntax. 2008-01-29 12:35:50 +00:00
cgiplotNLT.pl
check-each-file
codegen-diff
countloc.sh
DSAclean.py
DSAextract.py
findmisopt
findoptdiff
findsym.pl
GenLibDeps.pl
getsrcs.sh
importNLT.pl
llvm-native-gcc
llvm-native-gxx
llvmdo
llvmgrep
Makefile
makellvm
mkpatch
NewNightlyTest.pl Need a space to separate Make options. 2008-01-14 17:58:03 +00:00
NightlyTest.gnuplot
NightlyTestTemplate.html
NLT.schema
OldenDataRecover.pl
parseNLT.pl
plotNLT.pl
profile.pl
RegressionFinder.pl
userloc.pl
webNLT.pl