[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / SVE / condtion-codes.s
blobc1d8e2ad715d09386e584d862002083cf0df7ecb
1 // RUN: llvm-mc -triple aarch64 -show-encoding -mattr=+sve < %s | FileCheck %s
2 // RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=-sve < %s 2>&1 | FileCheck %s --check-prefix=CHECK-DIAG
4 //------------------------------------------------------------------------------
5 // Condition code aliases for SVE
6 //------------------------------------------------------------------------------
8 b.none lbl
9 // CHECK: b.eq lbl // encoding: [0bAAA00000,A,A,0x54]
10 // CHECK-NEXT: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
11 // CHECK-DIAG: invalid condition code
12 // CHECK-DIAG-NEXT: b.none lbl
14 b.any lbl
15 // CHECK: b.ne lbl // encoding: [0bAAA00001,A,A,0x54]
16 // CHECK-NEXT: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
17 // CHECK-DIAG: invalid condition code
18 // CHECK-DIAG-NEXT: b.any lbl
20 b.nlast lbl
21 // CHECK: b.hs lbl // encoding: [0bAAA00010,A,A,0x54]
22 // CHECK-NEXT: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
23 // CHECK-DIAG: invalid condition code
24 // CHECK-DIAG-NEXT: b.nlast lbl
26 b.last lbl
27 // CHECK: b.lo lbl // encoding: [0bAAA00011,A,A,0x54]
28 // CHECK-NEXT: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
29 // CHECK-DIAG: invalid condition code
30 // CHECK-DIAG-NEXT: b.last lbl
32 b.first lbl
33 // CHECK: b.mi lbl // encoding: [0bAAA00100,A,A,0x54]
34 // CHECK-NEXT: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
35 // CHECK-DIAG: invalid condition code
36 // CHECK-DIAG-NEXT: b.first lbl
38 b.nfrst lbl
39 // CHECK: b.pl lbl // encoding: [0bAAA00101,A,A,0x54]
40 // CHECK-NEXT: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
41 // CHECK-DIAG: invalid condition code
42 // CHECK-DIAG-NEXT: b.nfrst lbl
44 b.pmore lbl
45 // CHECK: b.hi lbl // encoding: [0bAAA01000,A,A,0x54]
46 // CHECK-NEXT: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
47 // CHECK-DIAG: invalid condition code
48 // CHECK-DIAG-NEXT: b.pmore lbl
50 b.plast lbl
51 // CHECK: b.ls lbl // encoding: [0bAAA01001,A,A,0x54]
52 // CHECK-NEXT: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
53 // CHECK-DIAG: invalid condition code
54 // CHECK-DIAG-NEXT: b.plast lbl
56 b.tcont lbl
57 // CHECK: b.ge lbl // encoding: [0bAAA01010,A,A,0x54]
58 // CHECK-NEXT: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
59 // CHECK-DIAG: invalid condition code
60 // CHECK-DIAG-NEXT: b.tcont lbl
62 b.tstop lbl
63 // CHECK: b.lt lbl // encoding: [0bAAA01011,A,A,0x54]
64 // CHECK-NEXT: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
65 // CHECK-DIAG: invalid condition code
66 // CHECK-DIAG-NEXT: b.tstop lbl