From 0c800aecf216938eba15999463530a7807d775cf Mon Sep 17 00:00:00 2001 From: ARM9 Date: Sun, 8 Mar 2015 15:20:13 +0100 Subject: [PATCH] armv5 fixed --- syntax/include/arm_base_syntax.vim | 12 +++++++++++- test/armv5-test.s | 8 ++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 test/armv5-test.s diff --git a/syntax/include/arm_base_syntax.vim b/syntax/include/arm_base_syntax.vim index 053f844..cd76748 100644 --- a/syntax/include/arm_base_syntax.vim +++ b/syntax/include/arm_base_syntax.vim @@ -56,7 +56,7 @@ exec 'syn match armv4SWP "SWP' . armCond . 'B\?\>"' " " ARMv5 instructions " -syn match armv5InstrCond + exec 'syn match armv5InstrCond "\%(BLX\|CLZ\|MCRR\|MRRC\|QADD\|QSUB\|QDADD\|QDSUB\)' . armCond . '\>"' HiLink armv4InstrCond armv5InstrCond @@ -70,5 +70,15 @@ exec 'syn match armv5STR "\%(STR\)' . armCond . 'D\>"' HiLink armv4LDR armv5LDR HiLink armv4STR armv5STR +" +" ARMv6 instructions +" + + +" +" VFP/NEON +" + + "syn match armRelative "@R[0-7]\|@a\s*+\s*dptr\|@[ab]" diff --git a/test/armv5-test.s b/test/armv5-test.s new file mode 100644 index 0000000..712e282 --- /dev/null +++ b/test/armv5-test.s @@ -0,0 +1,8 @@ + +add +smull r0, r1,R2 +smlalBt r1,r15 +SMLawTb V8, v3 +SMLALtb A1, a4 + +@ vim:ft=armv5