[PATCH] X86: Correct Defs for instructions that imp-def both an A-register and EFLAGS.
Ahmed Bougacha
ahmed.bougacha at gmail.com
Wed May 29 14:15:37 PDT 2013
On Wed, May 29, 2013 at 12:38 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:
>
> On May 29, 2013, at 11:59 AM, Ahmed Bougacha <ahmed.bougacha at gmail.com> wrote:
>
>> Hi Jakob, all,
>>
>> Title says all: this patch corrects a problem where x86 instructions
>> that implicitly define both an A-register (RAX, EAX, ..) and EFLAGS
>> were declared as only defining EFLAGS, because the outer
>> let Defs = [EFLAGS]
>> in the various multiclasses overrides the
>> let Defs = [areg]
>> in BinOpAI.
>>
>> Add EFLAGS to BinOpAIs, and move all instances outside "let Defs”.
>
> LGTM.
>
> Is there a similar problem with the ‘Uses’ list and the SBC/ADC instructions?
Good catch, there is, I went ahead and committed both in r182883.
Thanks!
-- Ahmed Bougacha
> /jakob
>
More information about the llvm-commits
mailing list