[InstCombine] Signed saturation tests. NFC
[llvm-complete.git] / test / MC / Disassembler / AMDGPU / flat_gfx10.txt
blob6fc105f6e5949a39e0cf942d602289cc6fac9544
1 # RUN: llvm-mc -arch=amdgcn -mcpu=gfx1010 -disassemble -show-encoding < %s | FileCheck %s
3 #===------------------------------------------------------------------------===#
4 # scratch_load
5 #===------------------------------------------------------------------------===#
7 # CHECK: scratch_load_dword v1, v255, off offset:-1 glc dlc ; encoding: [0xff,0x5f,0x31,0xdc,0xff,0x00,0x7d,0x01]
8 0xff 0x5f 0x31 0xdc 0xff 0x00 0x7d 0x01
10 # CHECK: scratch_load_dword v5, v255, off offset:-1 glc slc ; encoding: [0xff,0x4f,0x33,0xdc,0xff,0x00,0x7d,0x05]
11 0xff 0x4f 0x33 0xdc 0xff 0x00 0x7d 0x05
13 # CHECK: scratch_load_dword v0, v1, off offset:-2048 glc slc dlc ; encoding: [0x00,0x58,0x33,0xdc,0x01,0x00,0x7d,0x00]
14 0x00 0x58 0x33 0xdc 0x01 0x00 0x7d 0x00
16 # CHECK: scratch_load_dword v255, off, s105 offset:2047 dlc ; encoding: [0xff,0x57,0x30,0xdc,0x00,0x00,0x69,0xff]
17 0xff 0x57 0x30 0xdc 0x00 0x00 0x69 0xff
19 # CHECK: scratch_load_dword v255, v2, off ; encoding: [0x00,0x40,0x30,0xdc,0x02,0x00,0x7d,0xff]
20 0x00 0x40 0x30 0xdc 0x02 0x00 0x7d 0xff
22 # CHECK: scratch_load_dword v5, v0, off dlc ; encoding: [0x00,0x50,0x30,0xdc,0x00,0x00,0x7d,0x05]
23 0x00 0x50 0x30 0xdc 0x00 0x00 0x7d 0x05
25 # CHECK: scratch_load_dword v5, v3, off slc ; encoding: [0x00,0x40,0x32,0xdc,0x03,0x00,0x7d,0x05]
26 0x00 0x40 0x32 0xdc 0x03 0x00 0x7d 0x05
28 # CHECK: scratch_load_dword v5, v255, off slc dlc ; encoding: [0x00,0x50,0x32,0xdc,0xff,0x00,0x7d,0x05]
29 0x00 0x50 0x32 0xdc 0xff 0x00 0x7d 0x05
31 # CHECK: scratch_load_dword v255, off, s2 offset:1 ; encoding: [0x01,0x40,0x30,0xdc,0x00,0x00,0x02,0xff]
32 0x01 0x40 0x30 0xdc 0x00 0x00 0x02 0xff
34 #===------------------------------------------------------------------------===#
35 # scratch_store
36 #===------------------------------------------------------------------------===#
38 # CHECK: scratch_store_dword off, v2, s3 offset:-1 ; encoding: [0xff,0x4f,0x70,0xdc,0x00,0x02,0x03,0x00]
39 0xff,0x4f,0x70,0xdc,0x00,0x02,0x03,0x00
41 # CHECK: scratch_store_dword off, v255, s3 offset:-1 ; encoding: [0xff,0x4f,0x70,0xdc,0x00,0xff,0x03,0x00]
42 0xff,0x4f,0x70,0xdc,0x00,0xff,0x03,0x00
44 # CHECK: scratch_store_dword off, v2, s105 offset:-1 ; encoding: [0xff,0x4f,0x70,0xdc,0x00,0x02,0x69,0x00]
45 0xff,0x4f,0x70,0xdc,0x00,0x02,0x69,0x00
47 # CHECK: scratch_store_dword off, v2, vcc_lo offset:-1 ; encoding: [0xff,0x4f,0x70,0xdc,0x00,0x02,0x6a,0x00]
48 0xff,0x4f,0x70,0xdc,0x00,0x02,0x6a,0x00
50 # CHECK: scratch_store_dword off, v2, vcc_hi offset:-1 ; encoding: [0xff,0x4f,0x70,0xdc,0x00,0x02,0x6b,0x00]
51 0xff,0x4f,0x70,0xdc,0x00,0x02,0x6b,0x00
53 # CHECK: scratch_store_dword off, v2, ttmp15 offset:-1 ; encoding: [0xff,0x4f,0x70,0xdc,0x00,0x02,0x7b,0x00]
54 0xff,0x4f,0x70,0xdc,0x00,0x02,0x7b,0x00
56 # CHECK: scratch_store_dword v0, v2, off offset:-1 ; encoding: [0xff,0x4f,0x70,0xdc,0x00,0x02,0x7d,0x00]
57 0xff,0x4f,0x70,0xdc,0x00,0x02,0x7d,0x00
59 # CHECK: scratch_store_dword off, v2, s3 ; encoding: [0x00,0x40,0x70,0xdc,0x00,0x02,0x03,0x00]
60 0x00,0x40,0x70,0xdc,0x00,0x02,0x03,0x00
62 # CHECK: scratch_store_dword off, v2, s3 offset:2047 ; encoding: [0xff,0x47,0x70,0xdc,0x00,0x02,0x03,0x00]
63 0xff,0x47,0x70,0xdc,0x00,0x02,0x03,0x00
65 # CHECK: scratch_store_dword off, v2, s3 offset:-2048 ; encoding: [0x00,0x48,0x70,0xdc,0x00,0x02,0x03,0x00]
66 0x00,0x48,0x70,0xdc,0x00,0x02,0x03,0x00
68 # CHECK: scratch_store_dword off, v2, s3 offset:-1 glc ; encoding: [0xff,0x4f,0x71,0xdc,0x00,0x02,0x03,0x00]
69 0xff,0x4f,0x71,0xdc,0x00,0x02,0x03,0x00
71 # CHECK: scratch_store_dword off, v2, s3 offset:-1 slc ; encoding: [0xff,0x4f,0x72,0xdc,0x00,0x02,0x03,0x00]
72 0xff,0x4f,0x72,0xdc,0x00,0x02,0x03,0x00
74 # CHECK: scratch_store_dword off, v2, s3 offset:-1 dlc ; encoding: [0xff,0x5f,0x70,0xdc,0x00,0x02,0x03,0x00]
75 0xff,0x5f,0x70,0xdc,0x00,0x02,0x03,0x00