This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix split_stack_return
On Tue, Oct 26, 2010 at 2:19 PM, Andrew Pinski <pinskia@gmail.com> wrote:
> On Tue, Oct 26, 2010 at 2:17 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
>> Hi Ian,
>>
>> I am checking in this patch since wrong instruction is generated for
>> my vzeroupper work.
>
> How is that obvious? ?Why does it generate the wrong instruction?
>
>
(define_insn "split_stack_return"
[(unspec_volatile [(match_operand:SI 0 "const_int_operand" "")]
UNSPEC_STACK_CHECK)]
vs.
(define_insn "avx_vzeroupper"
[(unspec_volatile [(match_operand 0 "const_int_operand" "")]
UNSPECV_VZEROUPPER)]
I generate avx_zeroupper. But it matches split_stack_return
since (int) UNSPEC_STACK_CHECK == (int) UNSPECV_VZEROUPPER.
--
H.J.