https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80270

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |12.0
             Target|x86_64-*-*                  |x86_64-*-*, aarch64-*-*

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is a testcase which is compilable on an aarch64 also:
typedef int v8 __attribute__((vector_size(8)));
struct S1 {
  v8 s1f;
};
struct S2 {
  struct S1 s2f1;
  v8 s2f2;
};

void f(int);
#ifdef __aarch64__
#define REG "q0"
#else
#define REG "xmm0"
#endif

void fn1() {
  int __trans_tmp_2, i = 3;
  register struct S2 b asm(REG);
  __trans_tmp_2 = b.s2f1.s1f[i];
  f( __trans_tmp_2);
}

Reply via email to