Skip to content

Commit

Permalink
Merge pull request #6566 from MartinNowak/fix17215
Browse files Browse the repository at this point in the history
fix Issue 17215 -  ICE(cgcod.c:findreg) with SIMD and -O -inline
  • Loading branch information
WalterBright committed Feb 25, 2017
2 parents 0f4ce2f + 46d1948 commit b054a20
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/cgelem.c
Expand Up @@ -3511,7 +3511,7 @@ STATIC elem * eleq(elem *e, goal_t goal)
e1->Eoper == OPvar &&
e2->Eoper == OPvar &&
goal == GOALnone &&
!tyfloating(e1->Ety)
!tyfloating(e1->Ety) && !tyvector(e1->Ety)
)
{
tym_t ty = (REGSIZE == 8) ? TYllong : TYint;
Expand Down
9 changes: 9 additions & 0 deletions test/compilable/test17215.d
@@ -0,0 +1,9 @@
// REQUIRED_ARGS: -O
version (X86_64):
alias vec = __vector(int[4]);

vec binop(vec a)
{
vec b = a;
return b;
}

0 comments on commit b054a20

Please sign in to comment.