https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67329
Bug ID: 67329 Summary: [5] gcc.dg/tree-ssa/ssa-dom-cse-2.c fails on -march=pentium or -march=iamcu Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: julia.koval at intel dot com Target Milestone: --- The normal -m32 version optimizes the sum to just return 28. However if i use -march=pentium: 191t.optimized dump has: foo () { int sum; const int a[8]; int _6; int _9; int _22; int _29; int _36; int _43; int _50; int _57; <bb 2>: a = *.LC0; _9 = a[0]; _22 = a[1]; sum_23 = _9 + _22; _29 = a[2]; sum_30 = sum_23 + _29; _36 = a[3]; sum_37 = sum_30 + _36; _43 = a[4]; sum_44 = sum_37 + _43; _50 = a[5]; sum_51 = sum_44 + _50; _57 = a[6]; sum_58 = sum_51 + _57; _6 = a[7]; sum_7 = _6 + sum_58; a ={v} {CLOBBER}; return sum_7; }