fixup! T16: Implement IT

This commit is contained in:
merry 2022-02-13 19:40:53 +00:00
parent e870d4e089
commit fbf224e023
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ namespace ARMeilleure.Translation
public bool HighCq { get; } public bool HighCq { get; }
public Aarch32Mode Mode { get; } public Aarch32Mode Mode { get; }
public bool IsInIfThenBlock { get { return IfThenBlockState.Length > 0; } } public bool IsInIfThenBlock { get { return IfThenBlockState != null && IfThenBlockState.Length > 0; } }
public Condition CurrentIfThenBlockCond { get { return IfThenBlockState[0]; } } public Condition CurrentIfThenBlockCond { get { return IfThenBlockState[0]; } }
public Condition[] IfThenBlockState { get; set; } public Condition[] IfThenBlockState { get; set; }

View file

@ -380,7 +380,7 @@ namespace ARMeilleure.Translation
Operand lblPredicateSkip = default; Operand lblPredicateSkip = default;
if (context.IsInIfThenBlock) if (context.IsInIfThenBlock && context.CurrentIfThenBlockCond != Condition.Al)
{ {
lblPredicateSkip = Label(); lblPredicateSkip = Label();