Re: [PATCH, libcpp]: Use asm flag outputs in search_line_sse42 main loop

2015-07-02 Thread Ondřej Bílka
On Mon, Jun 29, 2015 at 09:07:22PM +0200, Uros Bizjak wrote: Hello! Attached patch introduces asm flag outputs in seach_line_sse42 main loop to handle carry flag value from pcmpestri insn. Slightly improved old code that uses asm loop compiles to: Using sse4.2 here is bit dubios as

Re: [PATCH, libcpp]: Use asm flag outputs in search_line_sse42 main loop

2015-06-30 Thread Uros Bizjak
On Tue, Jun 30, 2015 at 8:11 AM, Richard Henderson r...@redhat.com wrote: On 06/29/2015 08:07 PM, Uros Bizjak wrote: Index: lex.c === --- lex.c (revision 225138) +++ lex.c (working copy) @@ -450,15 +450,30 @@

Re: [PATCH, libcpp]: Use asm flag outputs in search_line_sse42 main loop

2015-06-30 Thread Richard Henderson
On 06/30/2015 07:46 AM, Uros Bizjak wrote: According to [1], ... the instructions for building libgccjit recommend --disable-bootstrap, IMO, we could leave this part for now, it is not that much of a maintenance burden. [1]https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66593#c0 Fair

Re: [PATCH, libcpp]: Use asm flag outputs in search_line_sse42 main loop

2015-06-30 Thread Richard Henderson
On 06/29/2015 08:07 PM, Uros Bizjak wrote: Index: lex.c === --- lex.c (revision 225138) +++ lex.c (working copy) @@ -450,15 +450,30 @@ search_line_sse42 (const uchar *s, const uchar *en s = (const uchar *)((si +

[PATCH, libcpp]: Use asm flag outputs in search_line_sse42 main loop

2015-06-29 Thread Uros Bizjak
Hello! Attached patch introduces asm flag outputs in seach_line_sse42 main loop to handle carry flag value from pcmpestri insn. Slightly improved old code that uses asm loop compiles to: 96:66 0f 6f 05 00 00 00 movdqa 0x0(%rip),%xmm0 9d:00 9e:48 83 ef 10