Skip to content

Commit

Permalink
Thumb2 assembly parsing and encoding for SVC.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140025 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Jim Grosbach committed Sep 19, 2011
1 parent 7649b0b commit 9883acd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/MC/ARM/basic-thumb2-instructions.s
Original file line number Diff line number Diff line change
Expand Up @@ -2437,3 +2437,17 @@ _func:
@ CHECK: sub.w r4, r5, r6, ror #5 @ encoding: [0xa5,0xeb,0x76,0x14]
@ CHECK: sub.w r5, r2, r12, rrx @ encoding: [0xa2,0xeb,0x3c,0x05]


@------------------------------------------------------------------------------
@ SVC
@------------------------------------------------------------------------------
svc #0
ite eq
svceq #255
swine #33

@ CHECK: svc #0 @ encoding: [0x00,0xdf]
@ CHECK: ite eq @ encoding: [0x0c,0xbf]
@ CHECK: svceq #255 @ encoding: [0xff,0xdf]
@ CHECK: svcne #33 @ encoding: [0x21,0xdf]

0 comments on commit 9883acd

Please sign in to comment.