1 // RUN
: llvm-mc
-triple aarch64-none-linux-gnu
-mattr
=+neon
-show-encoding
< %s | FileCheck
%s
3 // Check that the assembler can handle the documented syntax for AArch64
5 //------------------------------------------------------------------------------
7 //------------------------------------------------------------------------------
8 and v0.8
b, v1.8
b, v2.8
b
9 and v0.16
b, v1.16
b, v2.16
b
11 // CHECK
: and v0.8
b, v1.8
b, v2.8
b // encoding
: [0x20,0x1c,0x22,0x0e]
12 // CHECK
: and v0.16
b, v1.16
b, v2.16
b // encoding
: [0x20,0x1c,0x22,0x4e]
15 //------------------------------------------------------------------------------
17 //------------------------------------------------------------------------------
18 orr v0.8
b, v1.8
b, v2.8
b
19 orr v0.16
b, v1.16
b, v2.16
b
21 // CHECK
: orr v0.8
b, v1.8
b, v2.8
b // encoding
: [0x20,0x1c,0xa2,0x0e]
22 // CHECK
: orr v0.16
b, v1.16
b, v2.16
b // encoding
: [0x20,0x1c,0xa2,0x4e]
25 //------------------------------------------------------------------------------
27 //------------------------------------------------------------------------------
28 eor v0.8
b, v1.8
b, v2.8
b
29 eor v0.16
b, v1.16
b, v2.16
b
31 // CHECK
: eor v0.8
b, v1.8
b, v2.8
b // encoding
: [0x20,0x1c,0x22,0x2e]
32 // CHECK
: eor v0.16
b, v1.16
b, v2.16
b // encoding
: [0x20,0x1c,0x22,0x6e]
35 //----------------------------------------------------------------------
37 //----------------------------------------------------------------------
39 bit v0.8
b, v1.8
b, v2.8
b
40 bit v0.16
b, v1.16
b, v2.16
b
41 bif v0.8
b, v1.8
b, v2.8
b
42 bif v0.16
b, v1.16
b, v2.16
b
43 bsl v0.8
b, v1.8
b, v2.8
b
44 bsl v0.16
b, v1.16
b, v2.16
b
45 orn v0.8
b, v1.8
b, v2.8
b
46 orn v0.16
b, v1.16
b, v2.16
b
47 bic v0.8
b, v1.8
b, v2.8
b
48 bic v0.16
b, v1.16
b, v2.16
b
50 // CHECK
: bit v0.8
b, v1.8
b, v2.8
b // encoding
: [0x20,0x1c,0xa2,0x2e]
51 // CHECK
: bit v0.16
b, v1.16
b, v2.16
b // encoding
: [0x20,0x1c,0xa2,0x6e]
52 // CHECK
: bif v0.8
b, v1.8
b, v2.8
b // encoding
: [0x20,0x1c,0xe2,0x2e]
53 // CHECK
: bif v0.16
b, v1.16
b, v2.16
b // encoding
: [0x20,0x1c,0xe2,0x6e]
54 // CHECK
: bsl v0.8
b, v1.8
b, v2.8
b // encoding
: [0x20,0x1c,0x62,0x2e]
55 // CHECK
: bsl v0.16
b, v1.16
b, v2.16
b // encoding
: [0x20,0x1c,0x62,0x6e]
56 // CHECK
: orn v0.8
b, v1.8
b, v2.8
b // encoding
: [0x20,0x1c,0xe2,0x0e]
57 // CHECK
: orn v0.16
b, v1.16
b, v2.16
b // encoding
: [0x20,0x1c,0xe2,0x4e]
58 // CHECK
: bic v0.8
b, v1.8
b, v2.8
b // encoding
: [0x20,0x1c,0x62,0x0e]
59 // CHECK
: bic v0.16
b, v1.16
b, v2.16
b // encoding
: [0x20,0x1c,0x62,0x4e]