Skip to content

Commit 343c784

Browse files
authored
[AMDGPU][True16][MC] add fake16 error and promote test (#135984)
This is a NFC patch. Added error and promote test for fake16 flow. This includes two part: 1. "*vop1_t16_err-fake16.s" is renamed to "*vop1_fake16_err.s" 2. added missing "fake16-promote.s" and other "*fake16_err.s" files These tests are about promoting the instruction encoding to 64 bits if the used registers are not encodable in the 32-bit form.
1 parent 3f46af9 commit 343c784

18 files changed

+14640
-594
lines changed
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
// NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py UTC_ARGS: --unique --sort --version 5
2+
// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 -mattr=-real-true16,+wavefrontsize32 -show-encoding %s 2>&1 | FileCheck --check-prefix=GFX11 --implicit-check-not=error: %s
3+
// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 -mattr=-real-true16,+wavefrontsize64 -show-encoding %s 2>&1 | FileCheck --check-prefix=GFX11 --implicit-check-not=error: %s
4+
5+
v_ceil_f16_e32 v128, 0xfe0b
6+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
7+
8+
v_ceil_f16_e32 v255, v1
9+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
10+
11+
v_ceil_f16_e32 v255, v1 dpp8:[7,6,5,4,3,2,1,0]
12+
// GFX11: :[[@LINE-1]]:25: error: invalid operand for instruction
13+
14+
v_ceil_f16_e32 v255, v1 quad_perm:[3,2,1,0]
15+
// GFX11: :[[@LINE-1]]:25: error: invalid operand for instruction
16+
17+
v_ceil_f16_e32 v5, v199
18+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
19+
20+
v_ceil_f16_e32 v5, v199 dpp8:[7,6,5,4,3,2,1,0]
21+
// GFX11: :[[@LINE-1]]:25: error: invalid operand for instruction
22+
23+
v_ceil_f16_e32 v5, v199 quad_perm:[3,2,1,0]
24+
// GFX11: :[[@LINE-1]]:25: error: invalid operand for instruction
25+
26+
v_exp_f16_e32 v128, 0xfe0b
27+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
28+
29+
v_exp_f16_e32 v255, v1
30+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
31+
32+
v_exp_f16_e32 v5, v199
33+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
34+
35+
v_floor_f16_e32 v128, 0xfe0b
36+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
37+
38+
v_floor_f16_e32 v255, v1
39+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
40+
41+
v_floor_f16_e32 v255, v1 dpp8:[7,6,5,4,3,2,1,0]
42+
// GFX11: :[[@LINE-1]]:26: error: invalid operand for instruction
43+
44+
v_floor_f16_e32 v255, v1 quad_perm:[3,2,1,0]
45+
// GFX11: :[[@LINE-1]]:26: error: invalid operand for instruction
46+
47+
v_floor_f16_e32 v5, v199
48+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
49+
50+
v_floor_f16_e32 v5, v199 dpp8:[7,6,5,4,3,2,1,0]
51+
// GFX11: :[[@LINE-1]]:26: error: invalid operand for instruction
52+
53+
v_floor_f16_e32 v5, v199 quad_perm:[3,2,1,0]
54+
// GFX11: :[[@LINE-1]]:26: error: invalid operand for instruction
55+
56+
v_log_f16_e32 v128, 0xfe0b
57+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
58+
59+
v_log_f16_e32 v255, v1
60+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
61+
62+
v_log_f16_e32 v5, v199
63+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
64+
65+
v_rcp_f16_e32 v128, 0xfe0b
66+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
67+
68+
v_rcp_f16_e32 v255, v1
69+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
70+
71+
v_rcp_f16_e32 v5, v199
72+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
73+
74+
v_rsq_f16_e32 v128, 0xfe0b
75+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
76+
77+
v_rsq_f16_e32 v255, v1
78+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
79+
80+
v_rsq_f16_e32 v5, v199
81+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
82+
83+
v_sqrt_f16_e32 v128, 0xfe0b
84+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
85+
86+
v_sqrt_f16_e32 v255, v1
87+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode
88+
89+
v_sqrt_f16_e32 v5, v199
90+
// GFX11: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode

0 commit comments

Comments
 (0)