[LLVMdev] Instruction Implementation

Stavropoulos Nikos n.stavropoulos at think-silicon.com
Mon Apr 1 10:19:25 PDT 2013


hi all

I have a question about implementing a new instruction which does this
function f(x) = x + ceilf (x) .x is a single float 
i have already added the instruction in my backend in the .td file 

def SUBCEIL_S   : FFR<0x11, 0x3, 16, (outs  FGR32:$fd), (ins  FGR32:$fs),
"frac.s\t$fd, $fs", [(set (f32  FGR32:$fd), (fadd (f32  FGR32:$fs ),(f32 
(ceilf FGR32:$fs))))] >;
it makes and install correctly but when i ll try to write code to use this
instruction there is no luck.

Should i do something in ISelLowering.cpp or ISelDAGToDAG.cpp file? my
backend is based on mips backend

thanks in Advance,

Stavropoulos Nikos



--
View this message in context: http://llvm.1065342.n5.nabble.com/LLVMdev-Instruction-Implementation-tp56359.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.



More information about the llvm-dev mailing list