search for: 0x0p

Displaying 11 results from an estimated 11 matches for "0x0p".

Did you mean: 0x0
2008 Mar 05
2
[LLVMdev] Error messages in llvm-test
...'U' and 's' ******************** TEST (cbe) 'divides' **************************** --- snip --- The lines that generate the errors are these: 142 unsigned int main(unsigned int llvm_cbe_argc, unsigned char **llvm_cbe_argv) { 181 *(&llvm_cbe_x) = { 0x0p+0, 0x0p+0, 0x0p+0, 0x0p+0 }; 182 *(&llvm_cbe_y) = { 0x0p+0, 0x0p+0, 0x0p+0, 0x0p+0 }; 183 *(&llvm_cbe_z) = { 0x0p+0, 0x0p+0, 0x0p+0, 0x0p+0 }; 191 llvm_cbe_z_tmp_0__PHI_TEMPORARY = { 0x0p+0, 0x0p+0, 0x0p+0, 0x0p+0 }; /* for PHI node */ 192 llvm_cbe_y_tm...
2006 Nov 05
4
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
...- | llc -march=c -o foo.cbe.c > > Yup, that'll do it. Although you might want to do a little optimization > otherwise you're going to get a lot of C code on output. Try passing -O2 > to llvm-g++. > > > In the resulting file foo.cbe.c there are many occurences of '0x0p+0'. > > What is it used for? Here's a code snippet from the file foo.cbe.c > > > > if ((ltmp_126_2 > 0x0p+0)) { > > goto ltmp_363_19; > > } else { > > goto ltmp_364_19; > > } > > > > llvm-gcc is able to compile foo.cb...
2006 Nov 05
0
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
On Nov 5, 2006, at 2:30 AM, Mohd-Hanafiah Abdullah wrote: > On Sat, 2006-11-04 at 21:06 -0800, Reid Spencer wrote: >>> In the resulting file foo.cbe.c there are many occurences of '0x0p >>> +0'. >>> What is it used for? Here's a code snippet from the file foo.cbe.c >>> >>> if ((ltmp_126_2 > 0x0p+0)) { >>> goto ltmp_363_19; >>> } else { >>> goto ltmp_364_19; >>> } >>> >&gt...
2006 Nov 05
0
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
...> % llvm-g++ -c foo.cpp -o - | llc -march=c -o foo.cbe.c Yup, that'll do it. Although you might want to do a little optimization otherwise you're going to get a lot of C code on output. Try passing -O2 to llvm-g++. > In the resulting file foo.cbe.c there are many occurences of '0x0p+0'. > What is it used for? Here's a code snippet from the file foo.cbe.c > > if ((ltmp_126_2 > 0x0p+0)) { > goto ltmp_363_19; > } else { > goto ltmp_364_19; > } > > llvm-gcc is able to compile foo.cbe.c, but I need to use another C > compile...
2006 Nov 05
4
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
Hi: I'm interested in using llvm to convert C++ code to C code. I used the following command to do this: % llvm-g++ -c foo.cpp -o - | llc -march=c -o foo.cbe.c In the resulting file foo.cbe.c there are many occurences of '0x0p+0'. What is it used for? Here's a code snippet from the file foo.cbe.c if ((ltmp_126_2 > 0x0p+0)) { goto ltmp_363_19; } else { goto ltmp_364_19; } llvm-gcc is able to compile foo.cbe.c, but I need to use another C compiler which gives a syntax error message for not recog...
2006 Nov 05
0
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
Hi: I'm interested in using llvm to convert C++ code to C code. I used the following command to do this: % llvm-g++ -c foo.cpp -o - | llc -march=c -o foo.cbe.c In the resulting file foo.cbe.c there are many occurences of '0x0p+0'. What is it used for? Here's a code snippet from the file foo.cbe.c if ((ltmp_126_2 > 0x0p+0)) { goto ltmp_363_19; } else { goto ltmp_364_19; } llvm-gcc is able to compile foo.cbe.c, but I need to use another C compiler which gives a syntax error message for not recog...
2006 Nov 05
1
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
On Sun, 2006-11-05 at 13:48 -0800, Bill Wendling wrote: > I supposed you could always hack the CBE to have it produce > traditional floating point numbers (like 0.0 or whatever) using "%f" > instead of "%a". However, you might have problems with precision > during comparisons. I.e., if you have something like "if (a == > 37.927)", it may not
2006 Nov 06
0
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
Hi Napi, On Mon, 2006-11-06 at 12:17 +0800, Mohd-Hanafiah Abdullah wrote: > On Sun, 2006-11-05 at 19:06 -0800, Reid Spencer wrote: > ... > > As for the __main function, its a gcc library call required by the > > compiler for program startup. The details vary but the call is needed. > > Amongst other things it will probably initialize your C++ static > >
2006 Nov 06
0
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
Hi Napi, On Mon, 2006-11-06 at 10:44 +0800, Mohd-Hanafiah Abdullah wrote: > Hi: > > I've been able to compile the attached "helloworld.c" file converted > from "helloworld.cpp". Great. > > My question is how does one usually use __main() and CODE_FOR_MAIN() > in tying up with the rest of the code? I'm not quite sure what you're asking.
2006 Nov 06
2
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
On Sun, 2006-11-05 at 19:06 -0800, Reid Spencer wrote: ... > As for the __main function, its a gcc library call required by the > compiler for program startup. The details vary but the call is needed. > Amongst other things it will probably initialize your C++ static > constructors. Hi Reid: I'm not using gcc for this purpose but another C compiler called AMPC. It compiles C
2006 Nov 06
2
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
Hi: I've been able to compile the attached "helloworld.c" file converted from "helloworld.cpp". My question is how does one usually use __main() and CODE_FOR_MAIN() in tying up with the rest of the code? Attached here are the original "helloworld.cpp" and "helloworld.c" files. Thanks. Napi On Sun, 2006-11-05 at 09:14 -0800, Reid Spencer wrote: >