1# RUN: llvm-mc -triple powerpc64-unknown-linux-gnu --show-encoding %s | FileCheck -check-prefix=CHECK-BE %s
2# RUN: llvm-mc -triple powerpc64le-unknown-linux-gnu --show-encoding %s | FileCheck -check-prefix=CHECK-LE %s
3
4# CHECK-BE: tbegin. 0                      # encoding: [0x7c,0x00,0x05,0x1d]
5# CHECK-LE: tbegin. 0                      # encoding: [0x1d,0x05,0x00,0x7c]
6            tbegin. 0
7# CHECK-BE: tbegin. 1                      # encoding: [0x7c,0x20,0x05,0x1d]
8# CHECK-LE: tbegin. 1                      # encoding: [0x1d,0x05,0x20,0x7c]
9            tbegin. 1
10
11# CHECK-BE: tend. 0                        # encoding: [0x7c,0x00,0x05,0x5d]
12# CHECK-LE: tend. 0                        # encoding: [0x5d,0x05,0x00,0x7c]
13            tend. 0
14# CHECK-BE: tend. 1                        # encoding: [0x7e,0x00,0x05,0x5d]
15# CHECK-LE: tend. 1                        # encoding: [0x5d,0x05,0x00,0x7e]
16            tend. 1
17
18# CHECK-BE: tabort. 9                      # encoding: [0x7c,0x09,0x07,0x1d]
19# CHECK-LE: tabort. 9                      # encoding: [0x1d,0x07,0x09,0x7c]
20            tabort. 9
21# CHECK-BE: tabortdc. 0, 9, 9              # encoding: [0x7c,0x09,0x4e,0x5d]
22# CHECK-LE: tabortdc. 0, 9, 9              # encoding: [0x5d,0x4e,0x09,0x7c]
23            tabortdc. 0, 9, 9
24# CHECK-BE: tabortdci. 0, 9, 0             # encoding: [0x7c,0x09,0x06,0xdd]
25# CHECK-LE: tabortdci. 0, 9, 0             # encoding: [0xdd,0x06,0x09,0x7c]
26            tabortdci. 0, 9, 0
27# CHECK-BE: tabortwc. 0, 9, 9              # encoding: [0x7c,0x09,0x4e,0x1d]
28# CHECK-LE: tabortwc. 0, 9, 9              # encoding: [0x1d,0x4e,0x09,0x7c]
29            tabortwc. 0, 9, 9
30# CHECK-BE: tabortwci. 0, 9, 0             # encoding: [0x7c,0x09,0x06,0x9d]
31# CHECK-LE: tabortwci. 0, 9, 0             # encoding: [0x9d,0x06,0x09,0x7c]
32            tabortwci. 0, 9, 0
33
34# CHECK-BE: tsr. 0                         # encoding: [0x7c,0x00,0x05,0xdd]
35# CHECK-LE: tsr. 0                         # encoding: [0xdd,0x05,0x00,0x7c]
36            tsr. 0
37# CHECK-BE: tsr. 1                         # encoding: [0x7c,0x20,0x05,0xdd]
38# CHECK-LE: tsr. 1                         # encoding: [0xdd,0x05,0x20,0x7c]
39            tsr. 1
40
41# CHECK-BE: tcheck 0                       # encoding: [0x7c,0x00,0x05,0x9c]
42# CHECK-LE: tcheck 0                       # encoding: [0x9c,0x05,0x00,0x7c]
43            tcheck 0
44# CHECK-BE: tcheck 3                       # encoding: [0x7d,0x80,0x05,0x9c]
45# CHECK-LE: tcheck 3                       # encoding: [0x9c,0x05,0x80,0x7d]
46            tcheck 3
47
48# CHECK-BE: treclaim. 9                    # encoding: [0x7c,0x09,0x07,0x5d]
49# CHECK-LE: treclaim. 9                    # encoding: [0x5d,0x07,0x09,0x7c]
50            treclaim. 9
51# CHECK-BE: trechkpt.                      # encoding: [0x7c,0x00,0x07,0xdd]
52# CHECK-LE: trechkpt.                      # encoding: [0xdd,0x07,0x00,0x7c]
53            trechkpt.
54