[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / xnack-mask.s
blobe3fe6e9304efff44ec9d38d0424802aa3a28d9d2
1 // RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck -check-prefix=NOSICIVI10 --implicit-check-not=error: %s
2 // RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii %s 2>&1 | FileCheck -check-prefix=NOSICIVI10 --implicit-check-not=error: %s
3 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=NOSICIVI10 --implicit-check-not=error: %s
4 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1001 -mattr=-xnack %s 2>&1 | FileCheck -check-prefix=NOSICIVI10 --implicit-check-not=error: %s
6 // RUN: not llvm-mc -arch=amdgcn -mcpu=stoney -mattr=+xnack %s 2>&1 | FileCheck -check-prefix=XNACKERR --implicit-check-not=error: %s
7 // RUN: not llvm-mc -arch=amdgcn -mcpu=stoney -mattr=+xnack -show-encoding %s | FileCheck -check-prefix=XNACK %s
9 s_mov_b64 xnack_mask, -1
10 // NOSICIVI10: error: register not available on this GPU
11 // XNACK: s_mov_b64 xnack_mask, -1 ; encoding: [0xc1,0x01,0xe8,0xbe]
13 s_mov_b32 xnack_mask_lo, -1
14 // NOSICIVI10: error: register not available on this GPU
15 // XNACK: s_mov_b32 xnack_mask_lo, -1 ; encoding: [0xc1,0x00,0xe8,0xbe]
17 s_mov_b32 xnack_mask_hi, -1
18 // NOSICIVI10: error: register not available on this GPU
19 // XNACK: s_mov_b32 xnack_mask_hi, -1 ; encoding: [0xc1,0x00,0xe9,0xbe]
21 s_mov_b32 xnack_mask, -1
22 // NOSICIVI10: error: register not available on this GPU
23 // XNACKERR: error: invalid operand for instruction
25 s_mov_b64 xnack_mask_lo, -1
26 // NOSICIVI10: error: register not available on this GPU
27 // XNACKERR: error: invalid operand for instruction
29 s_mov_b64 xnack_mask_hi, -1
30 // NOSICIVI10: error: register not available on this GPU
31 // XNACKERR: error: invalid operand for instruction