search for: testbool

Displaying 5 results from an estimated 5 matches for "testbool".

2004 Jul 07
2
[LLVMdev] UnitTests/2003-05-31-CastToBool.c
I think test/Programs/SingleSource/UnitTests/2003-05-31-CastToBool.c has a problem. Consider: void testLong(long long X) { printf("%ld ", X); testBool(X != 0); } This passes 'long long' value to 'ld' format specifier -- but for that specifier the parameter should be 'long'. So, the behaviour of the above is undefined and in fact it produces wrong results with my backend. Could extra 'l' be added in the for...
2004 Jul 07
0
[LLVMdev] UnitTests/2003-05-31-CastToBool.c
...time. What compiler are you using? Reid. On Wed, 2004-07-07 at 04:51, Vladimir Prus wrote: > I think test/Programs/SingleSource/UnitTests/2003-05-31-CastToBool.c > has a problem. Consider: > > void testLong(long long X) { > printf("%ld ", X); > testBool(X != 0); > } > > This passes 'long long' value to 'ld' format specifier -- but for that > specifier the parameter should be 'long'. So, the behaviour of the above is > undefined and in fact it produces wrong results with my backend. > > Could ex...
2008 May 24
0
[LLVMdev] A quick update on FreeBSD support
On May 24, 2008, at 11:43 AM, Marcel Moolenaar wrote: > All, > > So far I've tried LLVM on amd64, i386, ia64 and powerpc under FreeBSD > and aside for ia64, things look pretty good for a first try. There > are 2 unexpected failures for PowerPC, which appear to be caused by > uninitialized memory. I'm still working on a fix for that (need to > brush up on my C++
2008 May 24
2
[LLVMdev] A quick update on FreeBSD support
All, So far I've tried LLVM on amd64, i386, ia64 and powerpc under FreeBSD and aside for ia64, things look pretty good for a first try. There are 2 unexpected failures for PowerPC, which appear to be caused by uninitialized memory. I'm still working on a fix for that (need to brush up on my C++ skills). [sidenote: In FreeBSD -current, the memory allocator initializes memory with 0xa5
2008 May 24
5
[LLVMdev] A quick update on FreeBSD support
....BB3_1: // Top (p0) brl.cond.sptk .BB3_1 // Top .BB3_2: // Next (p0) brl.cond.sptk .BB3_1 // Top .align 32 .global castconst .type castconst, @function castconst: ;; alloc r3 = ar.pfs,0,0,0,0 // PSEUDO_ALLOC adds r8 = 0, r0 ;; mov ar.pfs = r3 br.ret.sptk.many rp .align 32 .global testbool .type testbool, @function testbool: alloc r3 = ar.pfs,0,2,0,0 // PSEUDO_ALLOC .BB5_1: // Top add r8 = r32, r33 ;; adds r9 = 4, r8 ;; sxt4 r9 = r9 adds r10 = 1, r0 ;; cmp.lt p6, p0 = r9, r10 ;; (p6) brl.cond.sptk .BB5_3 // retlbl .BB5_2: // loop adds r9 = 4, r8 ;; sxt4 r9 = r9 adds...