Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #21722

Re: What use of 'AL condition' in ARM IT block?

From Nobody <nobody@nowhere.invalid>
Newsgroups comp.arch.embedded
Subject Re: What use of 'AL condition' in ARM IT block?
Date 2015-08-10 21:05 +0100
Organization A noiseless patient Spider
Message-ID <pan.2015.08.10.20.05.21.33000@nowhere.invalid> (permalink)
References <25c5e541-d73d-44fb-836b-4beddc323470@googlegroups.com>

Show all headers | View raw


On Sun, 09 Aug 2015 16:55:16 -0700, Robert Willy wrote:

> I read the following on IT block in ARM Thumb2 instruction. I don't
> understand the last sentence on AL to get the changed behavior.
> 
> Could you explain it to me?

> > 16-bit instructions in the IT block, other than CMP, CMN and TST, do
> > not set the condition code flags. The AL condition can be specified
> > to get this changed behavior without conditional execution.

The IT (ITT/ITE) instruction is followed by a condition. The AL (ALways)
condition is always true. Thus an "IT AL" instruction commences a sequence
of four instructions which are always executed (use of the E (Else) flag
is prohibited when the condition is AL).

Most 16-bit instructions set the condition code flags based upon the
result (e.g. the Z flag will be set if the result is zero). 32-bit
instructions have an optional S flag to control whether flags are
affected.

But instructions which are part of an IT block (even one with the AL
condition) don't set the condition code flags unless the instruction is
CMP, CMN or TST.

The term "changed behaviour" refers to not setting the flags.

Back to comp.arch.embedded | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

What use of 'AL condition' in ARM IT block? Robert Willy <rxjwg98@gmail.com> - 2015-08-09 16:55 -0700
  Re: What use of 'AL condition' in ARM IT block? Nobody <nobody@nowhere.invalid> - 2015-08-10 21:05 +0100

csiph-web