[FFmpeg-trac] #3540(undetermined:new): The asm inline code in function libavcodec/dirac_arith.h:dirac_get_arith_bit with PIC and stack-check build options

FFmpeg trac at avcodec.org
Wed Apr 9 12:54:43 CEST 2014


#3540: The asm inline code in function
libavcodec/dirac_arith.h:dirac_get_arith_bit with PIC and stack-check build
options
----------------------------------+----------------------------------------
             Reporter:  alucowie  |                    Owner:
                 Type:  defect    |                   Status:  new
             Priority:  normal    |                Component:  undetermined
              Version:  1.2.6     |               Resolution:
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+----------------------------------------

Comment (by cehoyos):

 I see the following without inlining:
 {{{
      940:       39 c2                   cmp    %eax,%edx
      942:       0f 93 c0                setae  %al
      945:       0f b6 c0                movzbl %al,%eax
      948:       89 45 e4                mov    %eax,-0x1c(%ebp)
 }}}
 And with inlining:
 {{{
     374a:       39 d0                   cmp    %edx,%eax
     374c:       0f 93 c0                setae  %al
     374f:       0f b6 c0                movzbl %al,%eax
     3752:       89 45 94                mov    %eax,-0x6c(%ebp)
 }}}
 {{{
     38fa:       39 c2                   cmp    %eax,%edx
     38fc:       0f 93 c2                setae  %dl
     38ff:       0f b6 d2                movzbl %dl,%edx
     3902:       89 55 88                mov    %edx,-0x78(%ebp)
 }}}
 {{{
     3d0f:       39 c2                   cmp    %eax,%edx
     3d11:       0f 93 c2                setae  %dl
     3d14:       0f b6 d2                movzbl %dl,%edx
     3d17:       89 55 90                mov    %edx,-0x70(%ebp)
 }}}
 {{{
     3dfd:       39 d0                   cmp    %edx,%eax
     3dff:       0f 93 c0                setae  %al
     3e02:       0f b6 c0                movzbl %al,%eax
     3e05:       89 45 90                mov    %eax,-0x70(%ebp)
 }}}
 {{{
     3ee6:       39 d0                   cmp    %edx,%eax
     3ee8:       0f 93 c0                setae  %al
     3eeb:       0f b6 c0                movzbl %al,%eax
     3eee:       89 45 8c                mov    %eax,-0x74(%ebp)
 }}}
 ...

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3540#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list