comparison test/MC/AMDGPU/flat-scratch.s @ 122:36195a0db682

merging ( incomplete )
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 17 Nov 2017 20:32:31 +0900
parents 1172e4bd9c6f
children
comparison
equal deleted inserted replaced
119:d9df2cbd60cd 122:36195a0db682
1 // RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti -show-encoding %s 2>&1 | FileCheck -check-prefix=SI -check-prefix=GCN %s 1 // RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti -show-encoding %s 2>&1 | FileCheck -check-prefix=NOSI %s
2 // RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii -show-encoding %s 2>&1 | FileCheck -check-prefix=NOCI %s
3 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s 2>&1 | FileCheck -check-prefix=NOVI %s
2 // RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii -show-encoding %s | FileCheck -check-prefix=CI %s 4 // RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii -show-encoding %s | FileCheck -check-prefix=CI %s
3 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s | FileCheck -check-prefix=VI %s 5 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s | FileCheck -check-prefix=VI %s
4 6
5 // Add a different RUN line for the failing checks, because when stderr and stdout are mixed the
6 // order things are printed is not deterministic.
7 // RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii -show-encoding %s 2>&1 | FileCheck -check-prefix=GCN %s
8 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s 2>&1 | FileCheck -check-prefix=GCN %s
9
10 s_mov_b64 flat_scratch, -1 7 s_mov_b64 flat_scratch, -1
11 // SI: error: invalid operand for instruction 8 // NOSI: error: not a valid operand.
12 // CI: s_mov_b64 flat_scratch, -1 ; encoding: [0xc1,0x04,0xe8,0xbe] 9 // CI: s_mov_b64 flat_scratch, -1 ; encoding: [0xc1,0x04,0xe8,0xbe]
13 // VI: s_mov_b64 flat_scratch, -1 ; encoding: [0xc1,0x01,0xe6,0xbe] 10 // VI: s_mov_b64 flat_scratch, -1 ; encoding: [0xc1,0x01,0xe6,0xbe]
14 11
15 s_mov_b32 flat_scratch_lo, -1 12 s_mov_b32 flat_scratch_lo, -1
16 // SI: error: invalid operand for instruction 13 // NOSI: error: not a valid operand.
17 // CI: s_mov_b32 flat_scratch_lo, -1 ; encoding: [0xc1,0x03,0xe8,0xbe] 14 // CI: s_mov_b32 flat_scratch_lo, -1 ; encoding: [0xc1,0x03,0xe8,0xbe]
18 // VI: s_mov_b32 flat_scratch_lo, -1 ; encoding: [0xc1,0x00,0xe6,0xbe] 15 // VI: s_mov_b32 flat_scratch_lo, -1 ; encoding: [0xc1,0x00,0xe6,0xbe]
19 16
20 s_mov_b32 flat_scratch_hi, -1 17 s_mov_b32 flat_scratch_hi, -1
21 // SI: error: invalid operand for instruction 18 // NOSI: error: not a valid operand.
22 // CI: s_mov_b32 flat_scratch_hi, -1 ; encoding: [0xc1,0x03,0xe9,0xbe] 19 // CI: s_mov_b32 flat_scratch_hi, -1 ; encoding: [0xc1,0x03,0xe9,0xbe]
23 // VI: s_mov_b32 flat_scratch_hi, -1 ; encoding: [0xc1,0x00,0xe7,0xbe] 20 // VI: s_mov_b32 flat_scratch_hi, -1 ; encoding: [0xc1,0x00,0xe7,0xbe]
24 21
25 22
26 s_mov_b64 flat_scratch_lo, -1 23 s_mov_b64 flat_scratch_lo, -1
27 // GCN: error: invalid operand for instruction 24 // NOSI: error: not a valid operand.
25 // NOCI: error: invalid operand for instruction
26 // NOVI: error: invalid operand for instruction
28 27
29 s_mov_b64 flat_scratch_hi, -1 28 s_mov_b64 flat_scratch_hi, -1
30 // GCN: error: invalid operand for instruction 29 // NOSI: error: not a valid operand.
30 // NOCI: error: invalid operand for instruction
31 // NOVI: error: invalid operand for instruction
31 32
32 s_mov_b32 flat_scratch, -1 33 s_mov_b32 flat_scratch, -1
33 // GCN: error: invalid operand for instruction 34 // NOSI: error: not a valid operand.
35 // NOCI: error: invalid operand for instruction
36 // NOVI: error: invalid operand for instruction