Displaying 3 results from an estimated 3 matches for "tp56359p56377".
2013 Apr 01
2
[LLVMdev] Instruction Implementation
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
2013 Apr 02
0
[LLVMdev] Instruction Implementation
Hi,
> 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.
More details (including the .ll source and *how* exactly things are
2013 Apr 02
2
[LLVMdev] Instruction Implementation
...e this attribute "readonly" so i can see if changes the
generated assembly?
my code is very simple
int main (){
float d, d1 ;
d= 12.3;
d1 = d - ceilf(d);
return 0;
}
--
View this message in context: http://llvm.1065342.n5.nabble.com/LLVMdev-Instruction-Implementation-tp56359p56377.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.