RE: Remove redundant zero extend

2020-03-11 Thread Nidal Faour via Gcc-patches
the patch does not remove all the sign/zero extension. */ +extern void bar(unsigned int x, unsigned int y, unsigned char index); + +void foo(void) +{ + unsigned int idx; + + for(idx = 0; idx < 100; idx++) + { +bar(3, 0, (unsigned char)idx); + } +} + +/* { dg-final { scan-assembler &

Remove redundant zero extend

2020-03-11 Thread Nidal Faour via Gcc-patches
itching. */ @@ -6835,4 +6844,3 @@ DEFHOOK /* Close the 'struct gcc_target' definition. */ HOOK_VECTOR_END (C90_EMPTY_HACK) - --- Change log: diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 085ef66a207

RE: [PATCH v2 1/2] RISC-V: Add shorten_memrefs pass

2019-10-31 Thread Nidal Faour
scenario. We got a saving of about 10% in code size of the test itself. Best Regards, Nidal Faour Staff Engineer, R&D Engineering – Firmware & Toolchain, CTO Group Western Digital® Migdal Tefen 24959, P.O Box 3 Email: nidal.fa...@wdc.com Office: +972-4-9078756 Mobile: +972-50-8867756 >--