Displaying 2 results from an estimated 2 matches for "34f9ccd8".
2013 Apr 05
0
[LLVMdev] Integer divide by zero
On 4/5/2013 1:23 PM, Cameron McInally wrote:
> Hey guys,
>
> I'm learning that LLVM does not preserve faults during constant
> folding. I realize that this is an architecture dependent problem, but
> I'm not sure if it's safe to constant fold away a fault on x86-64.
>
> A little testcase:
>
> #include <stdio.h>
>
> int foo(int j, int d) {
>
2013 Apr 05
3
[LLVMdev] Integer divide by zero
Hey guys,
I'm learning that LLVM does not preserve faults during constant folding. I
realize that this is an architecture dependent problem, but I'm not sure if
it's safe to constant fold away a fault on x86-64.
A little testcase:
#include <stdio.h>
int foo(int j, int d) {
return j / d ;
}
int bar (int k, int d) {
return foo(k + 1, d);
}
int main( void ) {
int r =