File: vcmpx-gfx10.txt

package info (click to toggle)
llvm-toolchain-11 1%3A11.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 995,808 kB
  • sloc: cpp: 4,767,656; ansic: 760,916; asm: 477,436; python: 170,940; objc: 69,804; lisp: 29,914; sh: 23,855; f90: 18,173; pascal: 7,551; perl: 7,471; ml: 5,603; awk: 3,489; makefile: 2,573; xml: 915; cs: 573; fortran: 503; javascript: 452
file content (36 lines) | stat: -rw-r--r-- 1,368 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# RUN: llvm-mc -arch=amdgcn -mcpu=gfx1010 -disassemble -show-encoding < %s | FileCheck -check-prefixes=GFX10 %s

#===------------------------------------------------------------------------===#
# Regular v_cmpx encoding
#===------------------------------------------------------------------------===#

# GFX10: v_cmpx_eq_f16_e64 s1, v2
0x00,0x00,0xda,0xd4,0x01,0x04,0x02,0x00

# GFX10: v_cmpx_class_f32_e64 v0, 1
0x00,0x00,0x98,0xd4,0x00,0x03,0x01,0x00

# GFX10: v_cmpx_eq_f16_sdwa -v1, v2 src0_sel:DWORD src1_sel:DWORD
0xf9,0x04,0xb4,0x7d,0x01,0x00,0x16,0x06

# GFX10: v_cmpx_class_f32_sdwa v0, 1 src0_sel:WORD_1 src1_sel:DWORD
0xf9,0x02,0x31,0x7d,0x00,0x00,0x05,0x86

#===------------------------------------------------------------------------===#
# v_cmpx with arbitrary DST value should also be decodable
#===------------------------------------------------------------------------===#

# GFX10: v_cmpx_eq_f16_e64 s1, v2
0x7e,0x00,0xda,0xd4,0x01,0x04,0x02,0x00

# GFX10: v_cmpx_class_f32_e64 v0, 1
0x7e,0x00,0x98,0xd4,0x00,0x03,0x01,0x00

# GFX10: v_cmpx_eq_f16_sdwa -v1, v2 src0_sel:DWORD src1_sel:DWORD
0xf9,0x04,0xb4,0x7d,0x01,0x7e,0x16,0x06

# GFX10: v_cmpx_class_f32_sdwa v0, 1 src0_sel:WORD_1 src1_sel:DWORD
0xf9,0x02,0x31,0x7d,0x00,0x7e,0x05,0x86

# GFX10: v_cmpx_class_f32_sdwa v0, 1 src0_sel:WORD_1 src1_sel:DWORD
0xf9,0x02,0x31,0x7d,0x00,0x7d,0x05,0x86