http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59086

            Bug ID: 59086
           Summary: error: ‘asm’ operand has impossible constraints
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: regression
          Assignee: unassigned at gcc dot gnu.org
          Reporter: aivchenk at gmail dot com

Android image build with trunk gcc failed after the following commit:

Author: hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Oct 3 17:25:42 2013 +0000

        * i386.c (ix86_option_override_internal): Do not enable
        accumulate-outgoing-args when producing unwind info.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203171
138bc75d-0d04-0410-961f-82ee72b054a4

==================

The reduced testcase looks something like this
(previous r203169 is able to compile it):

#include <emmintrin.h>

void testFunc(int count) {

  int x;
  __m128i tmp1;
  __asm__(
                  "1:\n"
                  :"+d"(x)
                  :[count] "m" (count), [tmp1] "m" (tmp1)
                  :"ecx","esi","edi","eax"
          );
}

The compiling options:
gcc test.c -c -fPIC -mstackrealign -march=core-avx2 -m32

Reply via email to