Commit Graph

7 Commits

Author SHA1 Message Date
Reid Spencer 71a6ef7f0e Fix incorrect test cases for srem. The definition of srem is a remainder so
that the sign of the result follows the sign of the divisor.

llvm-svn: 35301
2007-03-24 21:55:26 +00:00
Reid Spencer e4f65e1983 Update for constant folding now generating undef and overflow correctly.
llvm-svn: 34676
2007-02-27 19:26:40 +00:00
Reid Spencer 5c41e96631 Remove test cases that produce undefined results.
llvm-svn: 34650
2007-02-27 02:34:02 +00:00
Reid Spencer 2341c22ec7 Changes to support making the shift instructions be true BinaryOperators.
This feature is needed in order to support shifts of more than 255 bits
on large integer types.  This changes the syntax for llvm assembly to
make shl, ashr and lshr instructions look like a binary operator:
   shl i32 %X, 1
instead of
   shl i32 %X, i8 1
Additionally, this should help a few passes perform additional optimizations.

llvm-svn: 33776
2007-02-02 02:16:23 +00:00
Reid Spencer ce380568b5 For PR761:
Remove "target endian/pointersize" or add "target datalayout" to make
the test parse properly or set the datalayout because defaults changes.

For PR645:
Make global names use the @ prefix.

For llvm-upgrade changes:
Fix test cases or completely remove use of llvm-upgrade for test cases
that cannot survive the new renaming or upgrade capabilities.

llvm-svn: 33533
2007-01-26 08:25:06 +00:00
Zhou Sheng a335d27e2b Cover more arithmetics for arbitrary bitwidth integers.
llvm-svn: 33355
2007-01-19 14:26:57 +00:00
Zhou Sheng fb51713cef Add one test case for Arbitrary BitWidth Integers.
llvm-svn: 33348
2007-01-19 01:35:08 +00:00