Skip to content

Is this a bug in ARMTHUMBINSTRUCTIONS.sinc ? #8714

@pcjc2

Description

@pcjc2

I was looking at commits to the ARM architecture, and came across a patch:

40c8aa6

@@ -2396,7 +2396,7 @@ define pcodeop ExclusiveAccess;
:ldrsb^ItCond^".w" Rt1215,PcrelOffset12 is TMode=1 & ItCond & (op8=0xf9 & thc0506=0 & thc0404=1 & sop0003=15; Rt1215) & PcrelOffset12
{
build ItCond;
tmp:1 = *PcrelOffset12;
tmp:1 = PcrelOffset12:1;
Rt1215 = sext(tmp);
}

@@ -2437,7 +2437,7 @@ define pcodeop ExclusiveAccess;
{
build ItCond;
build PcrelOffset12;
tmp:2 = *PcrelOffset12;
tmp:2 = PcrelOffset12:2;
Rt1215 = sext(tmp);
}

I noticed that one block has the (instruction?) build PcrelOffset12; the other does not.

I don't actually know what the meaning of this line is, note that most? blocks referencing PcrelOffset12 have the line build PcrelOffset12;

I'm curious to know if this is an omission / bug / gap in my understanding.

Regards,

Peter

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions