old-cross-binutils/gas/testsuite/gas/arm/thumb2_invert.s
Paul Brook ef8d22e63b 2005-02-02 Paul Brook <paul@codesourcery.com>
gas/
	* config/tc-arm.c (T2_OPCODE_MASK, T2_DATA_OP_SHIFT, T2_OPCODE_AND,
	T2_OPCODE_BIC, T2_OPCODE_ORR, T2_OPCODE_ORN, T2_OPCODE_EOR,
	T2_OPCODE_ADD, T2_OPCODE_ADC, T2_OPCODE_SBC, T2_OPCODE_SUB,
	T2_OPCODE_RSB): Define.
	(thumb32_negate_data_op): New function.
	(md_apply_fix): Use it.
gas/testsuite/
	* gas/arm/thumb2_invert.d: New test.
	* gas/arm/thumb2_invert.s: New test.
2006-02-02 13:34:17 +00:00

14 lines
279 B
ArmAsm

.text
.thumb
.syntax unified
thumb2_invert:
cmp r7, #0xffc00000
cmn r8, #0xffc00000
add r9, r4, #0xffc00000
sub r3, r6, #0xffc00000
adc r5, r0, #0x7fffffff
sbc r4, r7, #0x7fffffff
and r6, r2, #0x7fffffff
bic r8, r2, #0x7fffffff
mov r3, 0x7fffffff
mvn r1, 0x7fffffff