Re: clang + VFP

2013-04-25 Thread Sumit Semwal
Awesome Renato! Thanks a bunch! I'll try it out and let you know! Best, ~Sumit. On 26 April 2013 01:17, Renato Golin wrote: > Hi Sumit, > > I think I've found it! > > You compiled to IR (.bc) by specifying hard-float, but when you convert it > to assembly (where the AAPCS will be lowered), you d

Re: clang + VFP

2013-04-25 Thread Renato Golin
Hi Sumit, I think I've found it! You compiled to IR (.bc) by specifying hard-float, but when you convert it to assembly (where the AAPCS will be lowered), you don't: [pocl] executing [/usr/lib/llvm-3.2/bin/llc -relocation-model=pic -o /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.s /tmp/pthread

Re: clang + VFP

2013-04-25 Thread Sumit Semwal
Hi Renato! Apologies again for troubling you; attached is a log file from one of the builds I am doing (trying to get pocl working on chromebook) - I 'think' I have provided the right values for target etc, but maybe you could have a quick look to spot any quickly visible mismatches? Thanks a bun

Re: clang + VFP

2013-04-25 Thread Sumit Semwal
On 25 April 2013 16:19, Renato Golin wrote: > On 23 April 2013 10:03, Sumit Semwal wrote: >> >> Would you please have a look at it, and let me know if you spot something >> absolutely basic and idiotic? (sorry, and a n00b to llvm / clang world !) > > > I can't see anything wrong with it. > > What

Re: clang + VFP

2013-04-25 Thread Renato Golin
On 23 April 2013 10:03, Sumit Semwal wrote: > Would you please have a look at it, and let me know if you spot something > absolutely basic and idiotic? (sorry, and a n00b to llvm / clang world !) > I can't see anything wrong with it. What I suggest is to start investigating the IR files for clu

Re: clang + VFP

2013-04-23 Thread Sumit Semwal
Hi Renato, I was trying to experiment with what you mentioned; here: https://pastebin.linaro.org/view/35ea66c1 - it still seems to fail with the same error. Would you please have a look at it, and let me know if you spot something absolutely basic and idiotic? (sorry, and a n00b to llvm / clang w

Re: clang + VFP

2013-04-18 Thread Renato Golin
Hi Tom, On 17 April 2013 21:13, Tom Gall wrote: > When the clang .o is linked to the gcc/gcc+, I'm getting > /home/tgall/opencl/SNU/tmp2/cl_temp_1.tkl uses VFP register arguments, > /home/tgall/opencl/SNU/tmp2/cl_temp_1.o does not > This is pretty common. Clang assumes ARMv4 unless you're prett

clang + VFP

2013-04-17 Thread Tom Gall
Hi. First. #include I'm trying to use a current clang/llvm (current as in git checkout from just the other day) to build an opencl kernel and then link that with some code which has been compiled with gcc/g++. When the clang .o is linked to the gcc/gcc+, I'm getting /home/tgall/opencl/SNU/tmp2