Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / Disassembler / AMDGPU / gfx90a_mimg.txt
blob0f2dca4cb578362c09923b40b6b7dc2c662ae5bb
1 # RUN: llvm-mc -triple=amdgcn -mcpu=gfx90a -disassemble -show-encoding < %s | FileCheck %s -check-prefix=GFX90A
3 # GFX90A: image_load v[4:6], v238, s[28:35] dmask:0x7 unorm ; encoding: [0x00,0x17,0x00,0xf0,0xee,0x04,0x07,0x00]
4 0x00,0x17,0x00,0xf0,0xee,0x04,0x07,0x00
6 # GFX90A: image_load_pck v5, v0, s[8:15] dmask:0x1 glc ; encoding: [0x00,0x21,0x08,0xf0,0x00,0x05,0x02,0x00]
7 0x00,0x21,0x08,0xf0,0x00,0x05,0x02,0x00
9 # GFX90A: image_load_pck_sgn v5, v0, s[8:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0x0e,0xf0,0x00,0x05,0x02,0x00]
10 0x00,0x01,0x0e,0xf0,0x00,0x05,0x02,0x00
12 # GFX90A: image_load_mip v5, v0, s[8:15] ; encoding: [0x00,0x00,0x04,0xf0,0x00,0x05,0x02,0x00]
13 0x00,0x00,0x04,0xf0,0x00,0x05,0x02,0x00
15 # GFX90A: image_load_mip_pck v5, v1, s[8:15] dmask:0x1 ; encoding: [0x00,0x01,0x10,0xf0,0x01,0x05,0x02,0x00]
16 0x00,0x01,0x10,0xf0,0x01,0x05,0x02,0x00
18 # GFX90A: image_load_mip_pck_sgn v[4:5], v0, s[8:15] dmask:0x5 ; encoding: [0x00,0x05,0x14,0xf0,0x00,0x04,0x02,0x00]
19 0x00,0x05,0x14,0xf0,0x00,0x04,0x02,0x00
21 # GFX90A: image_store v[192:194], v238, s[28:35] dmask:0x7 unorm ; encoding: [0x00,0x17,0x20,0xf0,0xee,0xc0,0x07,0x00]
22 0x00,0x17,0x20,0xf0,0xee,0xc0,0x07,0x00
24 # GFX90A: image_store_pck v1, v2, s[12:19] dmask:0x1 unorm da ; encoding: [0x00,0x51,0x28,0xf0,0x02,0x01,0x03,0x00]
25 0x00,0x51,0x28,0xf0,0x02,0x01,0x03,0x00
27 # GFX90A: image_store_mip v1, v2, s[12:19] ; encoding: [0x00,0x00,0x24,0xf0,0x02,0x01,0x03,0x00]
28 0x00,0x00,0x24,0xf0,0x02,0x01,0x03,0x00
30 # GFX90A: image_store_mip_pck v252, v2, s[12:19] dmask:0x1 a16 ; encoding: [0x00,0x81,0x2c,0xf0,0x02,0xfc,0x03,0x00]
31 0x00,0x81,0x2c,0xf0,0x02,0xfc,0x03,0x00
33 # GFX90A: image_atomic_add v4, v192, s[28:35] dmask:0x1 unorm glc ; encoding: [0x00,0x31,0x48,0xf0,0xc0,0x04,0x07,0x00]
34 0x00,0x31,0x48,0xf0,0xc0,0x04,0x07,0x00
36 # GFX90A: image_atomic_and v4, v192, s[28:35] dmask:0x1 unorm ; encoding: [0x00,0x11,0x60,0xf0,0xc0,0x04,0x07,0x00]
37 0x00,0x11,0x60,0xf0,0xc0,0x04,0x07,0x00
39 # GFX90A: image_atomic_swap v4, v192, s[28:35] dmask:0x1 unorm glc ; encoding: [0x00,0x31,0x40,0xf0,0xc0,0x04,0x07,0x00]
40 0x00,0x31,0x40,0xf0,0xc0,0x04,0x07,0x00
42 # GFX90A: image_atomic_cmpswap v[4:5], v192, s[28:35] dmask:0x3 unorm glc ; encoding: [0x00,0x33,0x44,0xf0,0xc0,0x04,0x07,0x00]
43 0x00,0x33,0x44,0xf0,0xc0,0x04,0x07,0x00
45 # GFX90A: image_atomic_or v4, v192, s[28:35] dmask:0x1 unorm ; encoding: [0x00,0x11,0x64,0xf0,0xc0,0x04,0x07,0x00]
46 0x00,0x11,0x64,0xf0,0xc0,0x04,0x07,0x00
48 # GFX90A: image_atomic_xor v4, v192, s[28:35] dmask:0x1 unorm ; encoding: [0x00,0x11,0x68,0xf0,0xc0,0x04,0x07,0x00]
49 0x00,0x11,0x68,0xf0,0xc0,0x04,0x07,0x00
51 # GFX90A: image_atomic_sub v4, v192, s[28:35] dmask:0x1 unorm ; encoding: [0x00,0x11,0x4c,0xf0,0xc0,0x04,0x07,0x00]
52 0x00,0x11,0x4c,0xf0,0xc0,0x04,0x07,0x00
54 # GFX90A: image_atomic_smin v4, v192, s[28:35] dmask:0x1 unorm ; encoding: [0x00,0x11,0x50,0xf0,0xc0,0x04,0x07,0x00]
55 0x00,0x11,0x50,0xf0,0xc0,0x04,0x07,0x00
57 # GFX90A: image_atomic_smax v4, v192, s[28:35] dmask:0x1 unorm ; encoding: [0x00,0x11,0x58,0xf0,0xc0,0x04,0x07,0x00]
58 0x00,0x11,0x58,0xf0,0xc0,0x04,0x07,0x00
60 # GFX90A: image_atomic_umin v4, v192, s[28:35] dmask:0x1 unorm ; encoding: [0x00,0x11,0x54,0xf0,0xc0,0x04,0x07,0x00]
61 0x00,0x11,0x54,0xf0,0xc0,0x04,0x07,0x00
63 # GFX90A: image_atomic_umax v4, v192, s[28:35] dmask:0x1 unorm ; encoding: [0x00,0x11,0x5c,0xf0,0xc0,0x04,0x07,0x00]
64 0x00,0x11,0x5c,0xf0,0xc0,0x04,0x07,0x00
66 # GFX90A: image_atomic_inc v4, v192, s[28:35] dmask:0x1 unorm ; encoding: [0x00,0x11,0x6c,0xf0,0xc0,0x04,0x07,0x00]
67 0x00,0x11,0x6c,0xf0,0xc0,0x04,0x07,0x00
69 # GFX90A: image_atomic_dec v4, v192, s[28:35] dmask:0x1 unorm ; encoding: [0x00,0x11,0x70,0xf0,0xc0,0x04,0x07,0x00]
70 0x00,0x11,0x70,0xf0,0xc0,0x04,0x07,0x00
72 # GFX90A: image_get_resinfo v5, v1, s[8:15] dmask:0x1 ; encoding: [0x00,0x01,0x38,0xf0,0x01,0x05,0x02,0x00]
73 0x00,0x01,0x38,0xf0,0x01,0x05,0x02,0x00
75 0x00,0x01,0x80,0xf0,0x00,0x05,0x62,0x00
76 # GFX90A: image_sample v5, v0, s[8:15], s[12:15] dmask:0x1 ; encoding: [0x00,0x01,0x80,0xf0,0x00,0x05,0x62,0x00]