From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22691 invoked by alias); 27 Dec 2014 21:47:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 22667 invoked by uid 48); 27 Dec 2014 21:47:43 -0000 From: "andrew.n.senkevich at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/64421] New: Incorrect vector function name generated for log Date: Sat, 27 Dec 2014 21:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andrew.n.senkevich at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg02791.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64421 Bug ID: 64421 Summary: Incorrect vector function name generated for log Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: andrew.n.senkevich at gmail dot com Created attachment 34340 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34340&action=edit reduced test Hi, compilation failed with the following code in log.c: #include #pragma omp declare simd notinbranch simdlen(2) extern double log (double); int N = 3200; double b[3200]; double a[3200]; int main (void) { int i; #pragma omp simd for (i = 0; i < N; i += 1) { b[i] = log (a[i]); } return (0); } gcc log.c -fopenmp -ffast-math -O1 /tmp/ccjc6yPN.s: Assembler messages: /tmp/ccjc6yPN.s:37: Error: invalid operands (*UND* and *UND* sections) for `*' gcc log.c -fopenmp -ffast-math -O1 -S cat log.s . . . . . call _ZGVbN2v_*__log_finite . . . . . It seems because of wrong asm keyword handling, reduced test is: #pragma omp declare simd notinbranch simdlen(2) extern double log (double) __asm__ ("" "__log_finite") __attribute__ ((__nothrow__ , __leaf__)); int N = 3200; double b[3200]; double a[3200]; int main (void) { int i; #pragma omp simd for (i = 0; i < N; i += 1) { b[i] = log (a[i]); } return (0); } gcc -v . . . . . Target: x86_64-unknown-linux-gnu . . . . . gcc version 5.0.0 20141226 (experimental) (GCC)