[InstCombine] Signed saturation tests. NFC
[llvm-complete.git] / test / MC / Disassembler / AMDGPU / flat_gfx9.txt
blob30be9984bf27dfd4e5ccd951e2239a89b987b86c
1 # RUN: llvm-mc -arch=amdgcn -mcpu=gfx900 -disassemble -show-encoding < %s | FileCheck %s
3 # CHECK: flat_atomic_add v[0:1], v0    ; encoding: [0x00,0x00,0x08,0xdd,0x00,0x00,0x00,0x00]
4 0x00,0x00,0x08,0xdd,0x00,0x00,0x00,0x00
6 # CHECK: flat_atomic_add v[0:1], v0 offset:7    ; encoding: [0x07,0x00,0x08,0xdd,0x00,0x00,0x00,0x00]
7 0x07,0x00,0x08,0xdd,0x00,0x00,0x00,0x00
9 # CHECK: flat_atomic_add v0, v[0:1], v0 offset:4095 glc    ; encoding: [0xff,0x0f,0x09,0xdd,0x00,0x00,0x00,0x00]
10 0xff,0x0f,0x09,0xdd,0x00,0x00,0x00,0x00
12 # CHECK: flat_atomic_add v0, v[0:1], v0 offset:4095 glc slc ; encoding: [0xff,0x0f,0x0b,0xdd,0x00,0x00,0x00,0x00]
13 0xff,0x0f,0x0b,0xdd,0x00,0x00,0x00,0x00
15 # CHECK: flat_atomic_add v0, v[0:1], v0 glc ; encoding: [0x00,0x00,0x09,0xdd,0x00,0x00,0x00,0x00]
16 0x00,0x00,0x09,0xdd,0x00,0x00,0x00,0x00
18 # CHECK: flat_atomic_add v0, v[0:1], v0 glc slc ; encoding: [0x00,0x00,0x0b,0xdd,0x00,0x00,0x00,0x00]
19 0x00,0x00,0x0b,0xdd,0x00,0x00,0x00,0x00
21 # CHECK: flat_atomic_add v[0:1], v0 slc  ; encoding: [0x00,0x00,0x0a,0xdd,0x00,0x00,0x00,0x00]
22 0x00,0x00,0x0a,0xdd,0x00,0x00,0x00,0x00
24 # CHECK: flat_atomic_add v[0:1], v0 offset:4095 slc    ; encoding: [0xff,0x0f,0x0a,0xdd,0x00,0x00,0x00,0x00]
25 0xff,0x0f,0x0a,0xdd,0x00,0x00,0x00,0x00
27 # CHECK: flat_load_dword v0, v[0:1]    ; encoding: [0x00,0x00,0x50,0xdc,0x00,0x00,0x00,0x00]
28 0x00,0x00,0x50,0xdc,0x00,0x00,0x00,0x00
30 # CHECK: flat_load_dword v0, v[0:1] offset:7    ; encoding: [0x07,0x00,0x50,0xdc,0x00,0x00,0x00,0x00]
31 0x07,0x00,0x50,0xdc,0x00,0x00,0x00,0x00
33 # CHECK: flat_load_dword v0, v[0:1] offset:4095 glc    ; encoding: [0xff,0x0f,0x51,0xdc,0x00,0x00,0x00,0x00]
34 0xff,0x0f,0x51,0xdc,0x00,0x00,0x00,0x00
36 # CHECK: flat_store_byte v[0:1], v0    ; encoding: [0x00,0x00,0x60,0xdc,0x00,0x00,0x00,0x00]
37 0x00,0x00,0x60,0xdc,0x00,0x00,0x00,0x00
39 # CHECK: flat_store_byte v[0:1], v0 offset:7    ; encoding: [0x07,0x00,0x60,0xdc,0x00,0x00,0x00,0x00]
40 0x07,0x00,0x60,0xdc,0x00,0x00,0x00,0x00
42 # CHECK: flat_store_byte v[0:1], v0 offset:4095 glc    ; encoding: [0xff,0x0f,0x61,0xdc,0x00,0x00,0x00,0x00]
43 0xff,0x0f,0x61,0xdc,0x00,0x00,0x00,0x00
45 # CHECK: global_atomic_add v[2:3], v4, s[0:1]    ; encoding: [0x00,0x80,0x08,0xdd,0x02,0x04,0x00,0x00]
46 0x00,0x80,0x08,0xdd,0x02,0x04,0x00,0x00
48 # CHECK: global_atomic_add v[2:3], v4, s[0:1] offset:4095    ; encoding: [0xff,0x8f,0x08,0xdd,0x02,0x04,0x00,0x00]
49 0xff,0x8f,0x08,0xdd,0x02,0x04,0x00,0x00
51 # CHECK: global_atomic_add v[2:3], v4, s[0:1] offset:-4096    ; encoding: [0x00,0x90,0x08,0xdd,0x02,0x04,0x00,0x00]
52 0x00,0x90,0x08,0xdd,0x02,0x04,0x00,0x00
54 # CHECK: global_atomic_add v0, v[2:3], v4, s[0:1] offset:-1 glc    ; encoding: [0xff,0x9f,0x09,0xdd,0x02,0x04,0x00,0x00]
55 0xff,0x9f,0x09,0xdd,0x02,0x04,0x00,0x00
57 # CHECK: global_load_sbyte v0, v[2:3], s[0:1]    ; encoding: [0x00,0x80,0x44,0xdc,0x02,0x00,0x00,0x00]
58 0x00,0x80,0x44,0xdc,0x02,0x00,0x00,0x00
60 # CHECK: global_load_sbyte v0, v[2:3], s[0:1] offset:4095    ; encoding: [0xff,0x8f,0x44,0xdc,0x02,0x00,0x00,0x00]
61 0xff,0x8f,0x44,0xdc,0x02,0x00,0x00,0x00
63 # CHECK: global_load_sbyte v0, v[2:3], s[0:1] offset:-4096    ; encoding: [0x00,0x90,0x44,0xdc,0x02,0x00,0x00,0x00]
64 0x00,0x90,0x44,0xdc,0x02,0x00,0x00,0x00
66 # CHECK: global_store_dwordx2 v[2:3], v[4:5], s[0:1]    ; encoding: [0x00,0x80,0x74,0xdc,0x02,0x04,0x00,0x00]
67 0x00,0x80,0x74,0xdc,0x02,0x04,0x00,0x00
69 # CHECK: global_store_dwordx2 v[2:3], v[4:5], s[0:1] offset:4095    ; encoding: [0xff,0x8f,0x74,0xdc,0x02,0x04,0x00,0x00]
70 0xff,0x8f,0x74,0xdc,0x02,0x04,0x00,0x00
72 # CHECK: global_store_dwordx2 v[2:3], v[4:5], s[0:1] offset:-4096    ; encoding: [0x00,0x90,0x74,0xdc,0x02,0x04,0x00,0x00]
73 0x00,0x90,0x74,0xdc,0x02,0x04,0x00,0x00
75 # CHECK: scratch_load_dword v0, v0, off offset:-1    ; encoding: [0xff,0x5f,0x50,0xdc,0x00,0x00,0x7f,0x00]
76 0xff,0x5f,0x50,0xdc,0x00,0x00,0x7f,0x00
78 # CHECK: scratch_load_dword v0, off, s0    ; encoding: [0x00,0x40,0x50,0xdc,0x00,0x00,0x00,0x00]
79 0x00,0x40,0x50,0xdc,0x00,0x00,0x00,0x00
81 # CHECK: scratch_load_dword v0, off, s0 offset:4095    ; encoding: [0xff,0x4f,0x50,0xdc,0x00,0x00,0x00,0x00]
82 0xff,0x4f,0x50,0xdc,0x00,0x00,0x00,0x00
84 # CHECK: scratch_load_dword v0, off, s0 offset:-4096    ; encoding: [0x00,0x50,0x50,0xdc,0x00,0x00,0x00,0x00]
85 0x00,0x50,0x50,0xdc,0x00,0x00,0x00,0x00
87 # CHECK: scratch_store_short v0, v0, off offset:-1    ; encoding: [0xff,0x5f,0x68,0xdc,0x00,0x00,0x7f,0x00]
88 0xff,0x5f,0x68,0xdc,0x00,0x00,0x7f,0x00
90 # CHECK: scratch_store_short off, v0, s0    ; encoding: [0x00,0x40,0x68,0xdc,0x00,0x00,0x00,0x00]
91 0x00,0x40,0x68,0xdc,0x00,0x00,0x00,0x00
93 # CHECK: scratch_store_short off, v0, s0 offset:4095    ; encoding: [0xff,0x4f,0x68,0xdc,0x00,0x00,0x00,0x00]
94 0xff,0x4f,0x68,0xdc,0x00,0x00,0x00,0x00
96 # CHECK: scratch_store_short off, v0, s0 offset:-4096    ; encoding: [0x00,0x50,0x68,0xdc,0x00,0x00,0x00,0x00]
97 0x00,0x50,0x68,0xdc,0x00,0x00,0x00,0x00