Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / Sparc / sparc-cas-instructions.s
blob30ce3fd0b2d227bedfcd2008a3b1dd369ac25c3d
1 ! RUN: not llvm-mc %s -triple=sparc -show-encoding 2>&1 | FileCheck %s --check-prefix=V8
2 ! RUN: not llvm-mc %s -triple=sparc -mattr=+hasleoncasa -show-encoding 2>&1 | FileCheck %s --check-prefix=LEON
3 ! RUN: llvm-mc %s -triple=sparcv9 -show-encoding | FileCheck %s --check-prefix=V9
5 ! V8: error: instruction requires a CPU feature not currently enabled
6 ! V9: cas [%i0], %l6, %o2 ! encoding: [0xd5,0xe6,0x10,0x16]
7 ! LEON: error: instruction requires a CPU feature not currently enabled
8 cas [%i0], %l6, %o2
10 ! V8: error: instruction requires a CPU feature not currently enabled
11 ! V9: casl [%i0], %l6, %o2 ! encoding: [0xd5,0xe6,0x11,0x16]
12 ! LEON: error: instruction requires a CPU feature not currently enabled
13 casl [%i0], %l6, %o2
15 ! V8: error: instruction requires a CPU feature not currently enabled
16 ! V9: casx [%i0], %l6, %o2 ! encoding: [0xd5,0xf6,0x10,0x16]
17 ! LEON: error: instruction requires a CPU feature not currently enabled
18 casx [%i0], %l6, %o2
20 ! V8: error: instruction requires a CPU feature not currently enabled
21 ! V9: casxl [%i0], %l6, %o2 ! encoding: [0xd5,0xf6,0x11,0x16]
22 ! LEON: error: instruction requires a CPU feature not currently enabled
23 casxl [%i0], %l6, %o2
25 ! V8: error: malformed ASI tag, must be a constant integer expression
26 ! V9: casxa [%i0] %asi, %l6, %o2 ! encoding: [0xd5,0xf6,0x20,0x16]
27 ! LEON: error: malformed ASI tag, must be a constant integer expression
28 casxa [%i0] %asi, %l6, %o2
30 ! V8: error: instruction requires a CPU feature not currently enabled
31 ! V9: casx [%i0], %l6, %o2 ! encoding: [0xd5,0xf6,0x10,0x16]
32 ! LEON: error: instruction requires a CPU feature not currently enabled
33 casxa [%i0] 0x80, %l6, %o2
35 ! V8: error: instruction requires a CPU feature not currently enabled
36 ! V9: casx [%i0], %l6, %o2 ! encoding: [0xd5,0xf6,0x10,0x16]
37 ! LEON: error: instruction requires a CPU feature not currently enabled
38 casxa [%i0] (0x40+0x40), %l6, %o2
40 ! V8: error: malformed ASI tag, must be a constant integer expression
41 ! V9: casa [%i0] %asi, %l6, %o2 ! encoding: [0xd5,0xe6,0x20,0x16]
42 ! LEON: error: malformed ASI tag, must be a constant integer expression
43 casa [%i0] %asi, %l6, %o2
45 ! V8: error: instruction requires a CPU feature not currently enabled
46 ! V9: cas [%i0], %l6, %o2 ! encoding: [0xd5,0xe6,0x10,0x16]
47 ! LEON: casa [%i0] 128, %l6, %o2 ! encoding: [0xd5,0xe6,0x10,0x16]
48 casa [%i0] 0x80, %l6, %o2
50 ! V8: error: instruction requires a CPU feature not currently enabled
51 ! V9: cas [%i0], %l6, %o2 ! encoding: [0xd5,0xe6,0x10,0x16]
52 ! LEON: casa [%i0] 128, %l6, %o2 ! encoding: [0xd5,0xe6,0x10,0x16]
53 casa [%i0] (0x40+0x40), %l6, %o2