Boost testcase failure

2019-07-19 Thread navya deepika Garakapati
Hi Devs, consider below reduced testcase from boost lamda. $cat result_of_tests.cpp #include #include template typename boost::result_of::type apply1(F f, A b) { return f(b); } using namespace boost::lambda; int main(int, char *[]) { int one = 1; int d= (apply1(_1 ,one) == 1); pri

GIMPLE clobber statement

2019-07-16 Thread navya deepika Garakapati
Hi everyone, We are investigating the optimization issue with GCC trunk code and we have the below gimple code like a = 1; __asm__ __volatile__(""); _9 = &a; a ={v} {CLOBBER}; _4 = _9; _1 = *_4; std::basic_ostream::operator<< (&cout, _1); in the above gimple statements ,we would li

Regarding Bug 85539 - x86_64: loads are not always narrowed [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85539]

2019-05-20 Thread navya deepika Garakapati
Hi All, I am looking https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85539 bug and did some analysis. please help me on the below query. For the below testcase, $cat test.c int foo(long *p) { return *p; } when compile with clang -O2 $clang test.c -O2 -S $cat test.s foo: mo

Regarding Bug 85539 - x86_64: loads are not always narrowed [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85539]

2019-05-05 Thread navya deepika Garakapati
Hi All, For the below testcase, $cat test.c int foo(long *p) { return *p; } when compile with clang -O2 $clang test.c -O2 -S $cat test.s foo: movl(%rdi), %eax retq while gcc gives $gcc test.c -O2 -S $cat test.s foo: movq(%rdi), %rax