basic-arm-instructions.s revision dc89561fecf100d6c32d73c7b009fd73e51be688
1@ RUN: llvm-mc -triple=armv7-apple-darwin -show-encoding < %s | FileCheck %s
2  .syntax unified
3  .globl _func
4_func:
5@ CHECK: _func
6
7@ ADC (immediate)
8  adc r1, r2, #0xf
9  adc r1, r2, #0xf0
10  adc r1, r2, #0xf00
11  adc r1, r2, #0xf000
12  adc r1, r2, #0xf0000
13  adc r1, r2, #0xf00000
14  adc r1, r2, #0xf000000
15  adc r1, r2, #0xf0000000
16  adc r1, r2, #0xf000000f
17  adcs r1, r2, #0xf00
18  adcseq r1, r2, #0xf00
19  adceq r1, r2, #0xf00
20
21@ CHECK: adc	r1, r2, #15             @ encoding: [0x0f,0x10,0xa2,0xe2]
22@ CHECK: adc	r1, r2, #240            @ encoding: [0xf0,0x10,0xa2,0xe2]
23@ CHECK: adc	r1, r2, #3840           @ encoding: [0x0f,0x1c,0xa2,0xe2]
24@ CHECK: adc	r1, r2, #61440          @ encoding: [0x0f,0x1a,0xa2,0xe2]
25@ CHECK: adc	r1, r2, #983040         @ encoding: [0x0f,0x18,0xa2,0xe2]
26@ CHECK: adc	r1, r2, #15728640       @ encoding: [0x0f,0x16,0xa2,0xe2]
27@ CHECK: adc	r1, r2, #251658240      @ encoding: [0x0f,0x14,0xa2,0xe2]
28@ CHECK: adc	r1, r2, #4026531840     @ encoding: [0x0f,0x12,0xa2,0xe2]
29@ CHECK: adc	r1, r2, #4026531855     @ encoding: [0xff,0x12,0xa2,0xe2]
30
31@ CHECK: adcs	r1, r2, #3840           @ encoding: [0x0f,0x1c,0xb2,0xe2]
32@ CHECK: adcseq	r1, r2, #3840           @ encoding: [0x0f,0x1c,0xb2,0x02]
33@ CHECK: adceq	r1, r2, #3840           @ encoding: [0x0f,0x1c,0xa2,0x02]
34