The trip count calculation was incorrect for loops with large bounds. For example, for(int i=-2,000,000,000; i < 2,000,000,000; i+=50000000), the trip count calculation had overflow (trying to calculate 2,000,000,000 + 2,000,000,000 with signed integers) and wasn't giving the right value. This patch fixes this error in the runtime by using unsigned integers instead. There is still a bug in the clang compiler component because it warns that there is overflow in the testcase file when there isn't. This error isn't there for the Intel Compiler. So for now, the testcase is designated as XFAIL.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM