Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / armv8.8a-hbc.s
blobc4c8d5feb34a8ea9ae191fef94c4ed4889e431f2
1 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+hbc < %s | FileCheck %s
2 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.8a < %s | FileCheck %s
3 // RUN: not llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck --check-prefix=CHECK-NO-HBC-ERR %s
5 lbl:
6 bc.eq lbl
7 bc.ne lbl
8 bc.cs lbl
9 bc.hs lbl
10 bc.lo lbl
11 bc.cc lbl
12 bc.mi lbl
13 bc.pl lbl
14 bc.vs lbl
15 bc.vc lbl
16 bc.hi lbl
17 bc.ls lbl
18 bc.ge lbl
19 bc.lt lbl
20 bc.gt lbl
21 bc.le lbl
22 bc.al lbl
24 // CHECK: bc.eq lbl // encoding: [0bAAA10000,A,A,0x54]
25 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
26 // CHECK: bc.ne lbl // encoding: [0bAAA10001,A,A,0x54]
27 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
28 // CHECK: bc.hs lbl // encoding: [0bAAA10010,A,A,0x54]
29 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
30 // CHECK: bc.hs lbl // encoding: [0bAAA10010,A,A,0x54]
31 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
32 // CHECK: bc.lo lbl // encoding: [0bAAA10011,A,A,0x54]
33 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
34 // CHECK: bc.lo lbl // encoding: [0bAAA10011,A,A,0x54]
35 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
36 // CHECK: bc.mi lbl // encoding: [0bAAA10100,A,A,0x54]
37 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
38 // CHECK: bc.pl lbl // encoding: [0bAAA10101,A,A,0x54]
39 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
40 // CHECK: bc.vs lbl // encoding: [0bAAA10110,A,A,0x54]
41 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
42 // CHECK: bc.vc lbl // encoding: [0bAAA10111,A,A,0x54]
43 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
44 // CHECK: bc.hi lbl // encoding: [0bAAA11000,A,A,0x54]
45 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
46 // CHECK: bc.ls lbl // encoding: [0bAAA11001,A,A,0x54]
47 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
48 // CHECK: bc.ge lbl // encoding: [0bAAA11010,A,A,0x54]
49 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
50 // CHECK: bc.lt lbl // encoding: [0bAAA11011,A,A,0x54]
51 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
52 // CHECK: bc.gt lbl // encoding: [0bAAA11100,A,A,0x54]
53 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
54 // CHECK: bc.le lbl // encoding: [0bAAA11101,A,A,0x54]
55 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
56 // CHECK: bc.al lbl // encoding: [0bAAA11110,A,A,0x54]
57 // CHECK: // fixup A - offset: 0, value: lbl, kind: fixup_aarch64_pcrel_branch19
59 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
60 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
61 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
62 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
63 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
64 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
65 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
66 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
67 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
68 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
69 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
70 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
71 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
72 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
73 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
74 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc
75 // CHECK-NO-HBC-ERR: [[@LINE-53]]:9: error: instruction requires: hbc