Displaying 3 results from an estimated 3 matches for "tp56359p56383".
Did you mean:
tp56359p56377
2013 Apr 02
0
[LLVMdev] Instruction Implementation
Hi,
> i ve uploaded .ll file
Is that the C file that's at the end of your message? To produce a .ll
file, you give clang the "-emit-llvm" option (and probably "-S").
Anyway, what I see in the C you posted is that Clang is using constant
folding to avoid doing any of the operations you've requested. A
better C file test would be:
float foo(float d) {
return d -
2013 Apr 02
1
[LLVMdev] Instruction Implementation
...return (x - ceilf(x));
}
int main()
{
float d, d1 ;
d= 12.3f;
d1= foo(d);
return 0;
}
test.ll <http://llvm.1065342.n5.nabble.com/file/n56383/test.ll>
--
View this message in context: http://llvm.1065342.n5.nabble.com/LLVMdev-Instruction-Implementation-tp56359p56383.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
2013 Apr 02
2
[LLVMdev] Instruction Implementation
Hi and thanks for answering
llc works fine just does not selecting my instruction
i ve uploaded .ll file
how can i include 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: