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 //----------------------------------------------------------------------
6 // Scalar Compare Bitwise Equal
7 //----------------------------------------------------------------------
11 // CHECK
: cmeq d20
, d21
, d22
// encoding
: [0xb4,0x8e,0xf6,0x7e]
13 //----------------------------------------------------------------------
14 // Scalar Compare Bitwise Equal To Zero
15 //----------------------------------------------------------------------
19 // CHECK
: cmeq d20
, d21
, #{{0x0|0}} // encoding: [0xb4,0x9a,0xe0,0x5e]
21 //----------------------------------------------------------------------
22 // Scalar Compare Unsigned Higher
Or Same
23 //----------------------------------------------------------------------
27 // CHECK
: cmhs d20
, d21
, d22
// encoding
: [0xb4,0x3e,0xf6,0x7e]
29 //----------------------------------------------------------------------
30 // Scalar Compare Signed Greather Than
Or Equal
31 //----------------------------------------------------------------------
35 // CHECK
: cmge d20
, d21
, d22
// encoding
: [0xb4,0x3e,0xf6,0x5e]
37 //----------------------------------------------------------------------
38 // Scalar Compare Signed Greather Than
Or Equal To Zero
39 //----------------------------------------------------------------------
43 // CHECK
: cmge d20
, d21
, #{{0x0|0}} // encoding: [0xb4,0x8a,0xe0,0x7e]
45 //----------------------------------------------------------------------
46 // Scalar Compare Unsigned Higher
47 //----------------------------------------------------------------------
51 // CHECK
: cmhi d20
, d21
, d22
// encoding
: [0xb4,0x36,0xf6,0x7e]
52 //----------------------------------------------------------------------
53 // Scalar Compare Signed Greater Than
54 //----------------------------------------------------------------------
58 // CHECK
: cmgt d20
, d21
, d22
// encoding
: [0xb4,0x36,0xf6,0x5e]
60 //----------------------------------------------------------------------
61 // Scalar Compare Signed Greater Than Zero
62 //----------------------------------------------------------------------
66 // CHECK
: cmgt d20
, d21
, #{{0x0|0}} // encoding: [0xb4,0x8a,0xe0,0x5e]
68 //----------------------------------------------------------------------
69 // Scalar Compare Signed Less Than
Or Equal To Zero
70 //----------------------------------------------------------------------
74 // CHECK
: cmle d20
, d21
, #{{0x0|0}} // encoding: [0xb4,0x9a,0xe0,0x7e]
76 //----------------------------------------------------------------------
77 // Scalar Compare Less Than Zero
78 //----------------------------------------------------------------------
82 // CHECK
: cmlt d20
, d21
, #{{0x0|0}} // encoding: [0xb4,0xaa,0xe0,0x5e]
84 //----------------------------------------------------------------------
85 // Scalar Compare Bitwise Test Bits
86 //----------------------------------------------------------------------
90 // CHECK
: cmtst d20
, d21
, d22
// encoding
: [0xb4,0x8e,0xf6,0x5e]