|
1 | 1 | // RUN: llvm-mc -triple=amdgcn -mcpu=gfx1250 -show-encoding %s | FileCheck --check-prefix=GFX1250 %s
|
2 | 2 | // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1200 -show-encoding %s 2>&1 | FileCheck --check-prefix=GFX12-ERR --implicit-check-not=error: --strict-whitespace %s
|
3 | 3 |
|
| 4 | +global_load_b32 v0, v[2:3], off nv |
| 5 | +// GFX1250: global_load_b32 v0, v[2:3], off nv ; encoding: [0xfc,0x00,0x05,0xee,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00] |
| 6 | +// GFX12-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: nv is not supported on this GPU |
| 7 | +// GFX12-ERR-NEXT:{{^}}global_load_b32 v0, v[2:3], off nv |
| 8 | +// GFX12-ERR-NEXT:{{^}} ^ |
| 9 | + |
| 10 | +global_store_b32 v[2:3], v0, off nv |
| 11 | +// GFX1250: global_store_b32 v[2:3], v0, off nv ; encoding: [0xfc,0x80,0x06,0xee,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00] |
| 12 | +// GFX12-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: nv is not supported on this GPU |
| 13 | +// GFX12-ERR-NEXT:{{^}}global_store_b32 v[2:3], v0, off nv |
| 14 | +// GFX12-ERR-NEXT:{{^}} ^ |
| 15 | + |
| 16 | +global_atomic_add v[2:3], v2, off nv |
| 17 | +// GFX1250: global_atomic_add_u32 v[2:3], v2, off nv ; encoding: [0xfc,0x40,0x0d,0xee,0x00,0x00,0x00,0x01,0x02,0x00,0x00,0x00] |
| 18 | +// GFX12-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: nv is not supported on this GPU |
| 19 | +// GFX12-ERR-NEXT:{{^}}global_atomic_add v[2:3], v2, off nv |
| 20 | +// GFX12-ERR-NEXT:{{^}} ^ |
| 21 | + |
| 22 | +global_load_addtid_b32 v5, s[2:3] nv |
| 23 | +// GFX1250: global_load_addtid_b32 v5, s[2:3] nv ; encoding: [0x82,0x00,0x0a,0xee,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00] |
| 24 | +// GFX12-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: nv is not supported on this GPU |
| 25 | +// GFX12-ERR-NEXT:{{^}}global_load_addtid_b32 v5, s[2:3] nv |
| 26 | +// GFX12-ERR-NEXT:{{^}} ^ |
| 27 | + |
| 28 | +scratch_load_b32 v0, v2, off nv |
| 29 | +// GFX1250: scratch_load_b32 v0, v2, off nv ; encoding: [0xfc,0x00,0x05,0xed,0x00,0x00,0x02,0x00,0x02,0x00,0x00,0x00] |
| 30 | +// GFX12-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: nv is not supported on this GPU |
| 31 | +// GFX12-ERR-NEXT:{{^}}scratch_load_b32 v0, v2, off nv |
| 32 | +// GFX12-ERR-NEXT:{{^}} ^ |
| 33 | + |
| 34 | +scratch_store_b32 v2, v0, off nv |
| 35 | +// GFX1250: scratch_store_b32 v2, v0, off nv ; encoding: [0xfc,0x80,0x06,0xed,0x00,0x00,0x02,0x00,0x02,0x00,0x00,0x00] |
| 36 | +// GFX12-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: nv is not supported on this GPU |
| 37 | +// GFX12-ERR-NEXT:{{^}}scratch_store_b32 v2, v0, off nv |
| 38 | +// GFX12-ERR-NEXT:{{^}} ^ |
| 39 | + |
| 40 | +flat_load_b32 v0, v[2:3] nv |
| 41 | +// GFX1250: flat_load_b32 v0, v[2:3] nv ; encoding: [0xfc,0x00,0x05,0xec,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00] |
| 42 | +// GFX12-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: nv is not supported on this GPU |
| 43 | +// GFX12-ERR-NEXT:{{^}}flat_load_b32 v0, v[2:3] nv |
| 44 | +// GFX12-ERR-NEXT:{{^}} ^ |
| 45 | + |
| 46 | +flat_store_b32 v[2:3], v0 nv |
| 47 | +// GFX1250: flat_store_b32 v[2:3], v0 nv ; encoding: [0xfc,0x80,0x06,0xec,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00] |
| 48 | +// GFX12-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: nv is not supported on this GPU |
| 49 | +// GFX12-ERR-NEXT:{{^}}flat_store_b32 v[2:3], v0 nv |
| 50 | +// GFX12-ERR-NEXT:{{^}} ^ |
| 51 | + |
| 52 | +flat_atomic_add v[2:3], v2 nv |
| 53 | +// GFX1250: flat_atomic_add_u32 v[2:3], v2 nv ; encoding: [0xfc,0x40,0x0d,0xec,0x00,0x00,0x00,0x01,0x02,0x00,0x00,0x00] |
| 54 | +// GFX12-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: nv is not supported on this GPU |
| 55 | +// GFX12-ERR-NEXT:{{^}}flat_atomic_add v[2:3], v2 nv |
| 56 | +// GFX12-ERR-NEXT:{{^}} ^ |
| 57 | + |
| 58 | +scratch_load_b32 v5, v2, off nv |
| 59 | +// GFX1250: scratch_load_b32 v5, v2, off nv ; encoding: [0xfc,0x00,0x05,0xed,0x05,0x00,0x02,0x00,0x02,0x00,0x00,0x00] |
| 60 | +// GFX12-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: nv is not supported on this GPU |
| 61 | +// GFX12-ERR-NEXT:{{^}}scratch_load_b32 v5, v2, off nv |
| 62 | +// GFX12-ERR-NEXT:{{^}} ^ |
| 63 | + |
4 | 64 | tensor_save s[0:1]
|
5 | 65 | // GFX1250: tensor_save s[0:1] ; encoding: [0x00,0x80,0x1b,0xee,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]
|
6 | 66 | // GFX12-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU
|
|
0 commit comments