[Bug c++/19263] [3.4/4.0 regression]: wrong-code: explicit inicialization of v8qi miscompiled

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jan 5 14:48:00 GMT 2005

------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-05 14:48 -------
Here is the reduced testcase without any x86 builtins usage:
typedef signed char v8qi __attribute__ ((vector_size(8)));

extern "C" void abort(void);

static unsigned char S[8];

void do_subs(unsigned char v)
    v8qi  val8 = {v,v,v,v,v,v,v,v};
    v8qi* s = (v8qi*)&S[0];

    *s = val8;

int main()
    int i;
    for (i=0;i<8;++i)
        if (S[i] != 0x01)
    return 0;

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
      Known to fail|                            |4.0.0
      Known to work|                            |3.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-01-05 14:48:26
               date|                            |
            Summary|[g++-3.4.3 regression]:     |[3.4/4.0 regression]: wrong-
                   |wrong-code: explicit        |code: explicit
                   |inicialization of v8qi      |inicialization of v8qi
                   |miscompiled                 |miscompiled
   Target Milestone|---                         |3.4.4


More information about the Gcc-bugs mailing list