TESTSET encoding

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

TESTSET encoding

Postby alexrp » Mon Dec 30, 2013 7:18 am

The TESTSET instruction has an S field in the decode table, like other LDR/STR instructions. What does it mean? the Operation description of the instruction does not mention any way that this bit might affect the instruction's semantics. Perhaps it's there by mistake?
alexrp
 
Posts: 154
Joined: Mon Dec 17, 2012 3:22 am
Location: Thisted, Denmark

Re: TESTSET encoding

Postby alexrp » Thu Jan 02, 2014 2:53 am

Similarly, the B0-B1 bits don't make much sense as it's a purely word-sized operation.
alexrp
 
Posts: 154
Joined: Mon Dec 17, 2012 3:22 am
Location: Thisted, Denmark

Re: TESTSET encoding

Postby aolofsson » Thu Jan 02, 2014 3:17 am

There should be hardware support for TESTSET RD, [RN,+/-RM], but we limited it to TESTSET RD, [RN,RM] unless someone sees a pressing need for the subtract option?

It is up to the user(assembler) to generate the right bit pattern for B1 B0 (meaning 10). Any other value in combination with the TESTSET opcode will cause "undefined behavior". Sorry to keep coming back to that..
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: TESTSET encoding

Postby alexrp » Thu Jan 02, 2014 3:28 am

Oh, it's okay. I just think the manual should explicitly list the expected bits for this instruction in the decode table, then, since it's not like software has a choice as to what to encode/decode here. Same goes for the S bit (though I assume the S bit isn't considered at all?).

What do you mean regarding the subtract bit? Does this mean that presently, the instruction will just do RN+RM? I'm fine with either, but I think the TESTSET section in the manual should reflect that only addition works, then.
alexrp
 
Posts: 154
Joined: Mon Dec 17, 2012 3:22 am
Location: Thisted, Denmark

Re: TESTSET encoding

Postby alexrp » Sat Jan 11, 2014 6:13 pm

@aolofsson ping :)
alexrp
 
Posts: 154
Joined: Mon Dec 17, 2012 3:22 am
Location: Thisted, Denmark

Re: TESTSET encoding

Postby aolofsson » Wed Jan 15, 2014 3:49 am

What I meant to say is that the St bit "may" work with TESTSET, but we haven't tested it and it may not even be supported in the assembler. Let's just say that it doesn't work and I will make sure the manual/opcode table is updated to reflect this restriction.
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA


Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: No registered users and 19 guests