• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc -arch=amdgcn -mcpu=tonga -disassemble -show-encoding < %s | FileCheck %s -check-prefix=VI
2
3# VI:   s_and_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x86]
40x04 0x06 0x02 0x86
5
6# VI:   s_and_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x86]
70x04 0x06 0x82 0x86
8
9# VI:   s_or_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x87]
100x04 0x06 0x02 0x87
11
12# VI:   s_or_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x87]
130x04 0x06 0x82 0x87
14
15# VI:   s_xor_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x88]
160x04 0x06 0x02 0x88
17
18# VI:   s_xor_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x88]
190x04 0x06 0x82 0x88
20
21# VI:   s_andn2_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x89]
220x04 0x06 0x02 0x89
23
24# VI:   s_andn2_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x89]
250x04 0x06 0x82 0x89
26
27# VI:   s_orn2_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x8a]
280x04 0x06 0x02 0x8a
29
30# VI:   s_orn2_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x8a]
310x04 0x06 0x82 0x8a
32
33# VI:   s_nand_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x8b]
340x04 0x06 0x02 0x8b
35
36# VI:   s_nand_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x8b]
370x04 0x06 0x82 0x8b
38
39# VI:   s_nor_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x8c]
400x04 0x06 0x02 0x8c
41
42# VI:   s_nor_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x8c]
430x04 0x06 0x82 0x8c
44
45# VI:   s_xnor_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x8d]
460x04 0x06 0x02 0x8d
47
48# VI:   s_xnor_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x8d]
490x04 0x06 0x82 0x8d
50
51# VI:   s_lshl_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x8e]
520x04 0x06 0x02 0x8e
53
54# VI:   s_lshl_b64 s[2:3], s[4:5], s6 ; encoding: [0x04,0x06,0x82,0x8e]
550x04 0x06 0x82 0x8e
56
57# VI:   s_lshr_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x8f]
580x04 0x06 0x02 0x8f
59
60# VI:   s_lshr_b64 s[2:3], s[4:5], s6 ; encoding: [0x04,0x06,0x82,0x8f]
610x04 0x06 0x82 0x8f
62
63# VI:   s_ashr_i32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x90]
640x04 0x06 0x02 0x90
65
66# VI:   s_ashr_i64 s[2:3], s[4:5], s6 ; encoding: [0x04,0x06,0x82,0x90]
670x04 0x06 0x82 0x90
68
69# VI:   s_bfm_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x91]
700x04 0x06 0x02 0x91
71
72# VI:   s_bfm_b64 s[2:3], s4, s6 ; encoding: [0x04,0x06,0x82,0x91]
730x04 0x06 0x82 0x91
74
75# VI:   s_mul_i32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x92]
760x04 0x06 0x02 0x92
77
78# VI:   s_bfe_u32 s2, s4, s6 ; encoding: [0x04,0x06,0x82,0x92]
790x04 0x06 0x82 0x92
80
81# VI:   s_bfe_i32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x93]
820x04 0x06 0x02 0x93
83
84# VI:   s_bfe_u64 s[2:3], s[4:5], s6 ; encoding: [0x04,0x06,0x82,0x93]
850x04 0x06 0x82 0x93
86
87# VI:   s_bfe_i64 s[2:3], s[4:5], s6 ; encoding: [0x04,0x06,0x02,0x94]
880x04 0x06 0x02 0x94
89
90# VI:   s_cbranch_g_fork s[4:5], s[6:7] ; encoding: [0x04,0x06,0x80,0x94]
910x04 0x06 0x80 0x94
92
93# VI:   s_absdiff_i32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x95]
940x04 0x06 0x02 0x95
95