This instruction tests the value in a register against
It updates the condition flags on the result, but does not place
the result in any register.
TEQ instruction performs a bitwise Exclusive
OR operation on the value in
the value of
This is the same as an
EORS instruction, except that
the result is discarded.
TEQ instruction to test if two values
are equal, without affecting the V or C flags (as
TEQ is also useful for testing the sign of a
value. After the comparison, the N flag is the logical Exclusive
OR of the sign bits of the two operands.
In this Thumb instruction, you cannot use SP or PC for
In this ARM instruction, use of SP or PC is deprecated in ARMv6T2 and above.
For ARM instructions:
if you use PC (
, the value used is the address of the instruction plus 8
you cannot use PC for any operand in any data processing instruction that has a register-controlled shift.