> 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.
In "A rem B", I hope you mean A when you talk of the divisor! Because A rem B has the sign of A (unless B exactly divides A, in which case the sign is zero). There is what is also called "mod" which differs in that A mod B has the sign of B. In gcc, mod is called FLOOR_MOD_EXPR and rem is called TRUNC_MOD_EXPR. When I implemented FLOOR_MOD_EXPR in turns of rem, I checked that LLVM's rem operator behaves as I describe above. Ciao, Duncan. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits