[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / AArch64 / neon-scalar-compare.s
blob28de46a7733a784a21cc3312ef0a0538ec439ab0
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 //----------------------------------------------------------------------
9 cmeq d20, d21, d22
11 // CHECK: cmeq d20, d21, d22 // encoding: [0xb4,0x8e,0xf6,0x7e]
13 //----------------------------------------------------------------------
14 // Scalar Compare Bitwise Equal To Zero
15 //----------------------------------------------------------------------
17 cmeq d20, d21, #0x0
19 // CHECK: cmeq d20, d21, #{{0x0|0}} // encoding: [0xb4,0x9a,0xe0,0x5e]
21 //----------------------------------------------------------------------
22 // Scalar Compare Unsigned Higher Or Same
23 //----------------------------------------------------------------------
25 cmhs d20, d21, d22
27 // CHECK: cmhs d20, d21, d22 // encoding: [0xb4,0x3e,0xf6,0x7e]
29 //----------------------------------------------------------------------
30 // Scalar Compare Signed Greather Than Or Equal
31 //----------------------------------------------------------------------
33 cmge d20, d21, d22
35 // CHECK: cmge d20, d21, d22 // encoding: [0xb4,0x3e,0xf6,0x5e]
37 //----------------------------------------------------------------------
38 // Scalar Compare Signed Greather Than Or Equal To Zero
39 //----------------------------------------------------------------------
41 cmge d20, d21, #0x0
43 // CHECK: cmge d20, d21, #{{0x0|0}} // encoding: [0xb4,0x8a,0xe0,0x7e]
45 //----------------------------------------------------------------------
46 // Scalar Compare Unsigned Higher
47 //----------------------------------------------------------------------
49 cmhi d20, d21, d22
51 // CHECK: cmhi d20, d21, d22 // encoding: [0xb4,0x36,0xf6,0x7e]
52 //----------------------------------------------------------------------
53 // Scalar Compare Signed Greater Than
54 //----------------------------------------------------------------------
56 cmgt d20, d21, d22
58 // CHECK: cmgt d20, d21, d22 // encoding: [0xb4,0x36,0xf6,0x5e]
60 //----------------------------------------------------------------------
61 // Scalar Compare Signed Greater Than Zero
62 //----------------------------------------------------------------------
64 cmgt d20, d21, #0x0
66 // CHECK: cmgt d20, d21, #{{0x0|0}} // encoding: [0xb4,0x8a,0xe0,0x5e]
68 //----------------------------------------------------------------------
69 // Scalar Compare Signed Less Than Or Equal To Zero
70 //----------------------------------------------------------------------
72 cmle d20, d21, #0x0
74 // CHECK: cmle d20, d21, #{{0x0|0}} // encoding: [0xb4,0x9a,0xe0,0x7e]
76 //----------------------------------------------------------------------
77 // Scalar Compare Less Than Zero
78 //----------------------------------------------------------------------
80 cmlt d20, d21, #0x0
82 // CHECK: cmlt d20, d21, #{{0x0|0}} // encoding: [0xb4,0xaa,0xe0,0x5e]
84 //----------------------------------------------------------------------
85 // Scalar Compare Bitwise Test Bits
86 //----------------------------------------------------------------------
88 cmtst d20, d21, d22
90 // CHECK: cmtst d20, d21, d22 // encoding: [0xb4,0x8e,0xf6,0x5e]