Jim Grosbach | 833c93c | 2010-11-01 16:59:54 +0000 | [diff] [blame] | 1 | @ RUN: llvm-mc -mcpu=cortex-a8 -triple arm-unknown-unknown -show-encoding %s | FileCheck %s |
Daniel Dunbar | 345a9a6 | 2010-08-11 06:37:20 +0000 | [diff] [blame] | 2 | |
Bill Wendling | af2b573 | 2010-11-21 11:05:29 +0000 | [diff] [blame] | 3 | @ CHECK: trap |
| 4 | @ CHECK: encoding: [0xfe,0xde,0xff,0xe7] |
| 5 | trap |
| 6 | |
Chris Lattner | 4e692ab | 2010-10-28 21:28:42 +0000 | [diff] [blame] | 7 | @ CHECK: bx lr |
| 8 | @ CHECK: encoding: [0x1e,0xff,0x2f,0xe1] |
Bill Wendling | 5df0e0a | 2010-11-02 22:31:46 +0000 | [diff] [blame] | 9 | bx lr |
Chris Lattner | 94074a5 | 2010-10-28 21:31:07 +0000 | [diff] [blame] | 10 | |
| 11 | @ CHECK: vqdmull.s32 q8, d17, d16 |
| 12 | @ CHECK: encoding: [0xa0,0x0d,0xe1,0xf2] |
Bill Wendling | 5df0e0a | 2010-11-02 22:31:46 +0000 | [diff] [blame] | 13 | vqdmull.s32 q8, d17, d16 |
Bill Wendling | a295eb3 | 2010-11-16 01:38:20 +0000 | [diff] [blame] | 14 | |
Kevin Enderby | 53ef118 | 2010-12-15 01:24:36 +0000 | [diff] [blame] | 15 | @ CHECK: and r1, r2, r3 @ encoding: [0x03,0x10,0x02,0xe0] |
| 16 | and r1,r2,r3 |
| 17 | |
Jim Grosbach | 1134be2 | 2011-07-14 21:02:23 +0000 | [diff] [blame] | 18 | @ CHECK: ands r1, r2, r3 @ encoding: [0x03,0x10,0x12,0xe0] |
Kevin Enderby | 53ef118 | 2010-12-15 01:24:36 +0000 | [diff] [blame] | 19 | ands r1,r2,r3 |
| 20 | |
| 21 | @ CHECK: eor r1, r2, r3 @ encoding: [0x03,0x10,0x22,0xe0] |
| 22 | eor r1,r2,r3 |
| 23 | |
Jim Grosbach | 1134be2 | 2011-07-14 21:02:23 +0000 | [diff] [blame] | 24 | @ CHECK: eors r1, r2, r3 @ encoding: [0x03,0x10,0x32,0xe0] |
Kevin Enderby | 53ef118 | 2010-12-15 01:24:36 +0000 | [diff] [blame] | 25 | eors r1,r2,r3 |
| 26 | |
| 27 | @ CHECK: sub r1, r2, r3 @ encoding: [0x03,0x10,0x42,0xe0] |
| 28 | sub r1,r2,r3 |
| 29 | |
Jim Grosbach | 1134be2 | 2011-07-14 21:02:23 +0000 | [diff] [blame] | 30 | @ CHECK: subs r1, r2, r3 @ encoding: [0x03,0x10,0x52,0xe0] |
Kevin Enderby | 53ef118 | 2010-12-15 01:24:36 +0000 | [diff] [blame] | 31 | subs r1,r2,r3 |
| 32 | |
| 33 | @ CHECK: add r1, r2, r3 @ encoding: [0x03,0x10,0x82,0xe0] |
| 34 | add r1,r2,r3 |
| 35 | |
Jim Grosbach | 1134be2 | 2011-07-14 21:02:23 +0000 | [diff] [blame] | 36 | @ CHECK: adds r1, r2, r3 @ encoding: [0x03,0x10,0x92,0xe0] |
Kevin Enderby | 53ef118 | 2010-12-15 01:24:36 +0000 | [diff] [blame] | 37 | adds r1,r2,r3 |
| 38 | |
| 39 | @ CHECK: adc r1, r2, r3 @ encoding: [0x03,0x10,0xa2,0xe0] |
| 40 | adc r1,r2,r3 |
| 41 | |
Kevin Enderby | 53ef118 | 2010-12-15 01:24:36 +0000 | [diff] [blame] | 42 | @ CHECK: bic r1, r2, r3 @ encoding: [0x03,0x10,0xc2,0xe1] |
| 43 | bic r1,r2,r3 |
| 44 | |
Jim Grosbach | 1134be2 | 2011-07-14 21:02:23 +0000 | [diff] [blame] | 45 | @ CHECK: bics r1, r2, r3 @ encoding: [0x03,0x10,0xd2,0xe1] |
Kevin Enderby | 53ef118 | 2010-12-15 01:24:36 +0000 | [diff] [blame] | 46 | bics r1,r2,r3 |
| 47 | |
| 48 | @ CHECK: mov r1, r2 @ encoding: [0x02,0x10,0xa0,0xe1] |
| 49 | mov r1,r2 |
| 50 | |
| 51 | @ CHECK: mvn r1, r2 @ encoding: [0x02,0x10,0xe0,0xe1] |
| 52 | mvn r1,r2 |
| 53 | |
Jim Grosbach | 1134be2 | 2011-07-14 21:02:23 +0000 | [diff] [blame] | 54 | @ CHECK: mvns r1, r2 @ encoding: [0x02,0x10,0xf0,0xe1] |
Kevin Enderby | 53ef118 | 2010-12-15 01:24:36 +0000 | [diff] [blame] | 55 | mvns r1,r2 |
| 56 | |
Bruno Cardoso Lopes | a461d42 | 2011-01-18 20:45:56 +0000 | [diff] [blame] | 57 | @ CHECK: bfi r0, r0, #5, #7 @ encoding: [0x90,0x02,0xcb,0xe7] |
| 58 | bfi r0, r0, #5, #7 |
Bruno Cardoso Lopes | fdcee77 | 2011-01-18 20:55:11 +0000 | [diff] [blame] | 59 | |
| 60 | @ CHECK: bkpt #10 @ encoding: [0x7a,0x00,0x20,0xe1] |
| 61 | bkpt #10 |
Bruno Cardoso Lopes | 892fc6d | 2011-01-18 21:17:09 +0000 | [diff] [blame] | 62 | |
Bruno Cardoso Lopes | b32f7a5 | 2011-01-20 18:06:58 +0000 | [diff] [blame] | 63 | @ CHECK: cdp p7, #1, c1, c1, c1, #4 @ encoding: [0x81,0x17,0x11,0xee] |
| 64 | cdp p7, #1, c1, c1, c1, #4 |
| 65 | @ CHECK: cdp2 p7, #1, c1, c1, c1, #4 @ encoding: [0x81,0x17,0x11,0xfe] |
| 66 | cdp2 p7, #1, c1, c1, c1, #4 |
| 67 | |
Owen Anderson | 0082830 | 2011-03-18 22:50:18 +0000 | [diff] [blame] | 68 | @ CHECK: add r1, r2, r3, lsl r4 @ encoding: [0x13,0x14,0x82,0xe0] |
| 69 | add r1, r2, r3, lsl r4 |
Bruno Cardoso Lopes | 505f3cd | 2011-03-24 21:04:58 +0000 | [diff] [blame] | 70 | |
Bruno Cardoso Lopes | 895c1e2 | 2011-05-31 03:33:27 +0000 | [diff] [blame] | 71 | @ CHECK: ssat16 r0, #7, r0 @ encoding: [0x30,0x0f,0xa6,0xe6] |
| 72 | ssat16 r0, #7, r0 |
| 73 | |