Is the llvm backend (legalize, isel, etc.) currently capable of handling type f128? I am trying to emit a call to __subtf3 when I compile the following bitcode: define fp128 @f1(fp128 %a0, fp128 %a1) nounwind readnone { entry: %sub = fsub fp128 %a0, %a1 ret fp128 %sub } This is for the Mips backend.
On Mon, Nov 7, 2011 at 12:21 PM, Akira Hatanaka <ahatanak at gmail.com> wrote:> Is the llvm backend (legalize, isel, etc.) currently capable of > handling type f128? > I am trying to emit a call to __subtf3 when I compile the following bitcode: > > define fp128 @f1(fp128 %a0, fp128 %a1) nounwind readnone { > entry: > %sub = fsub fp128 %a0, %a1 > ret fp128 %sub > } > > This is for the Mips backend.llvm/CodeGen/RuntimeLibcalls.h doesn't include SUB_F128 at the moment; shouldn't be too hard to add, though. -Eli
Hi Akira> Is the llvm backend (legalize, isel, etc.) currently capable of > handling type f128? > I am trying to emit a call to __subtf3 when I compile the following bitcode:It depends... There is some generic code here and there which can handle f128, but some parts are still missed. You might need to fill them... -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
I submitted a patch here. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20111107/131525.html Please review it when you have time. On Tue, Nov 8, 2011 at 9:33 PM, Anton Korobeynikov <anton at korobeynikov.info> wrote:> Hi Akira > >> Is the llvm backend (legalize, isel, etc.) currently capable of >> handling type f128? >> I am trying to emit a call to __subtf3 when I compile the following bitcode: > It depends... There is some generic code here and there which can > handle f128, but some parts are still missed. > You might need to fill them... > > -- > With best regards, Anton Korobeynikov > Faculty of Mathematics and Mechanics, Saint Petersburg State University >