search for: apinttest

Displaying 7 results from an estimated 7 matches for "apinttest".

2016 Jul 21
2
FreeBSD user willing to try fix a unit test?
Hi all In unittests/ADT/APIntTest.cpp I came across this test: // XFAIL this test on FreeBSD where the system gcc-4.2.1 seems to miscompile it. #if defined(__llvm__) || !defined(__FreeBSD__) TEST(APIntTest, i33_Count) { APInt i33minus2(33, static_cast<uint64_t>(-2), true); EXPECT_EQ(0u, i33minus2.countLeadingZeros());...
2010 Sep 09
2
[LLVMdev] FreeBSD tester failure
The clang-i686-freebsd-selfhost-rel buildbot is failing APIntTest.i33_Count on the first run, but the stage 2 test is passing. It looks like it could be a miscompilation by the system gcc. We should upgrade the system gcc on that machine, or stop testing the stage 1 llvm. The tester is not useful as is. It is failing constantly. Who owns this machine? Can the...
2010 Sep 09
0
[LLVMdev] FreeBSD tester failure
On 2010-09-09 23:44, Jakob Stoklund Olesen wrote: > The clang-i686-freebsd-selfhost-rel buildbot is failing APIntTest.i33_Count on the first run, but the stage 2 test is passing. > > It looks like it could be a miscompilation by the system gcc. Yes, unfortunately on FreeBSD the first stage should be compiled using "-O2 -fno-strict-aliasing" instead of the default optimization flags, or this partic...
2010 Sep 09
0
[LLVMdev] FreeBSD tester failure
The clang-i686-freebsd-selfhost-rel buildbot is failing APIntTest.i33_Count on the first run, but the stage 2 test is passing. It looks like it could be a miscompilation by the system gcc. We should upgrade the system gcc on that machine, or stop testing the stage 1 llvm. The tester is not useful as is. It is failing constantly. Who owns this machine? Can the...
2012 May 21
0
[LLVMdev] APInt::sdivrem error?
OK, the code for sdivrem in APInt.h is wrong. Here's what's written: static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient, APInt &Remainder) { if (LHS.isNegative()) { if (RHS.isNegative()) APInt::udivrem(-LHS, -RHS, Quotient, Remainder); else APInt::udivrem(-LHS, RHS, Quotient, Remainder); Quotient =
2012 May 21
3
[LLVMdev] APInt::sdivrem error?
I wrote the following bit of code static APInt FloorOfQuotient(APInt a, APInt b) { unsigned bits = a.getBitWidth(); APInt q(bits, 1), r(bits, 1); APInt::sdivrem(a, b, q, r); * errs() << "sdivrem(" << a << ", " << b << ") = (" << q << ", " << r << ")\n"; * if (r == 0) return q; else {
2015 Jul 29
1
[LLVMdev] Error when i am using command make -j4 command in cygwin to compile safecode
...Test.cpp for Release+Asserts build llvm[2]: ======= Finished Linking Release+Asserts Unit test AsmParser (without symbols) make[2]: Leaving directory '/home/NIKHILREDDY/WORK/LLVM_OBJ/unittests/AsmParser' llvm[2]: Linking Release+Asserts unit test Bitcode (without symbols) llvm[2]: Compiling APIntTest.cpp for Release+Asserts build llvm[2]: Compiling LazyCallGraphTest.cpp for Release+Asserts build llvm[2]: ======= Finished Linking Release+Asserts Unit test Bitcode (without symbols) make[2]: Leaving directory '/home/NIKHILREDDY/WORK/LLVM_OBJ/unittests/Bitcode' llvm[2]: Compiling APSIntTest...