[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ARM / neont2-bitwise-encoding.s
blobf5c2a90f915a2ac4b656b082f5aac21223b80c37
1 @ RUN: llvm-mc -mcpu=cortex-a8 -triple thumb-unknown-unknown -show-encoding < %s | FileCheck %s
3 .code 16
5 vand d16, d17, d16
6 vand q8, q8, q9
8 @ CHECK: vand d16, d17, d16 @ encoding: [0x41,0xef,0xb0,0x01]
9 @ CHECK: vand q8, q8, q9 @ encoding: [0x40,0xef,0xf2,0x01]
11 veor d16, d17, d16
12 veor q8, q8, q9
14 @ CHECK: veor d16, d17, d16 @ encoding: [0x41,0xff,0xb0,0x01]
15 @ CHECK: veor q8, q8, q9 @ encoding: [0x40,0xff,0xf2,0x01]
18 vorr d16, d17, d16
19 vorr q8, q8, q9
20 @ vorr.i32 d16, #0x1000000
21 @ vorr.i32 q8, #0x1000000
22 @ vorr.i32 q8, #0x0
24 @ CHECK: vorr d16, d17, d16 @ encoding: [0x61,0xef,0xb0,0x01]
25 @ CHECK: vorr q8, q8, q9 @ encoding: [0x60,0xef,0xf2,0x01]
28 vbic d16, d17, d16
29 vbic q8, q8, q9
30 @ vbic.i32 d16, #0xFF000000
31 @ vbic.i32 q8, #0xFF000000
33 @ CHECK: vbic d16, d17, d16 @ encoding: [0x51,0xef,0xb0,0x01]
34 @ CHECK: vbic q8, q8, q9 @ encoding: [0x50,0xef,0xf2,0x01]
37 vorn d16, d17, d16
38 vorn q8, q8, q9
40 @ CHECK: vorn d16, d17, d16 @ encoding: [0x71,0xef,0xb0,0x01]
41 @ CHECK: vorn q8, q8, q9 @ encoding: [0x70,0xef,0xf2,0x01]
44 vmvn d16, d16
45 vmvn q8, q8
47 @ CHECK: vmvn d16, d16 @ encoding: [0xf0,0xff,0xa0,0x05]
48 @ CHECK: vmvn q8, q8 @ encoding: [0xf0,0xff,0xe0,0x05]
51 vbsl d18, d17, d16
52 vbsl q8, q10, q9
53 vbit d18, d17, d16
54 vbit q8, q10, q9
55 vbif d18, d17, d16
56 vbif q8, q10, q9
58 @ CHECK: vbsl d18, d17, d16 @ encoding: [0x51,0xff,0xb0,0x21]
59 @ CHECK: vbsl q8, q10, q9 @ encoding: [0x54,0xff,0xf2,0x01]
60 @ CHECK: vbit d18, d17, d16 @ encoding: [0x61,0xff,0xb0,0x21]
61 @ CHECK: vbit q8, q10, q9 @ encoding: [0x64,0xff,0xf2,0x01]
62 @ CHECK: vbif d18, d17, d16 @ encoding: [0x71,0xff,0xb0,0x21]
63 @ CHECK: vbif q8, q10, q9 @ encoding: [0x74,0xff,0xf2,0x01]