Skip to content

Commit 7d73671

Browse files
authored
[AMDGPU][MC][NFC] Fix True16 instructions in the literals test. (#164426)
1 parent 75737ca commit 7d73671

File tree

1 file changed

+24
-28
lines changed

1 file changed

+24
-28
lines changed

llvm/test/MC/AMDGPU/literals.s

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -231,21 +231,19 @@ v_cos_f16_e32 v5.l, lit(1.0)
231231
// NOGFX89: :[[@LINE-4]]:1: error: operands are not valid for this GPU or mode
232232
// NOSICI: :[[@LINE-5]]:1: error: instruction not supported on this GPU
233233

234-
v_tanh_bf16 v5, 1.0
235-
// GFX1250-ASM: v_tanh_bf16_e32 v5, 1.0 ; encoding: [0xf2,0x94,0x0a,0x7e]
236-
// GFX1250-DIS: v_tanh_bf16_e32 v5.l, 1.0 ; encoding: [0xf2,0x94,0x0a,0x7e]
237-
// NOGFX11: :[[@LINE-3]]:1: error: instruction not supported on this GPU
238-
// NOGFX12: :[[@LINE-4]]:1: error: instruction not supported on this GPU
239-
// NOGFX89: :[[@LINE-5]]:1: error: instruction not supported on this GPU
240-
// NOSICI: :[[@LINE-6]]:1: error: instruction not supported on this GPU
234+
v_tanh_bf16 v5.l, 1.0
235+
// GFX1250: v_tanh_bf16_e32 v5.l, 1.0 ; encoding: [0xf2,0x94,0x0a,0x7e]
236+
// NOGFX11: :[[@LINE-2]]:1: error: instruction not supported on this GPU
237+
// NOGFX12: :[[@LINE-3]]:1: error: instruction not supported on this GPU
238+
// NOGFX89: :[[@LINE-4]]:1: error: instruction not supported on this GPU
239+
// NOSICI: :[[@LINE-5]]:1: error: instruction not supported on this GPU
241240

242-
v_tanh_bf16 v5, lit(1.0)
243-
// GFX1250-ASM: v_tanh_bf16_e32 v5, lit(0x3f80) ; encoding: [0xff,0x94,0x0a,0x7e,0x80,0x3f,0x00,0x00]
244-
// GFX1250-DIS: v_tanh_bf16_e32 v5.l, lit(0x3f80) ; encoding: [0xff,0x94,0x0a,0x7e,0x80,0x3f,0x00,0x00]
245-
// NOGFX11: :[[@LINE-3]]:1: error: instruction not supported on this GPU
246-
// NOGFX12: :[[@LINE-4]]:1: error: instruction not supported on this GPU
247-
// NOGFX89: :[[@LINE-5]]:1: error: instruction not supported on this GPU
248-
// NOSICI: :[[@LINE-6]]:1: error: instruction not supported on this GPU
241+
v_tanh_bf16 v5.l, lit(1.0)
242+
// GFX1250: v_tanh_bf16_e32 v5.l, lit(0x3f80) ; encoding: [0xff,0x94,0x0a,0x7e,0x80,0x3f,0x00,0x00]
243+
// NOGFX11: :[[@LINE-2]]:1: error: instruction not supported on this GPU
244+
// NOGFX12: :[[@LINE-3]]:1: error: instruction not supported on this GPU
245+
// NOGFX89: :[[@LINE-4]]:1: error: instruction not supported on this GPU
246+
// NOSICI: :[[@LINE-5]]:1: error: instruction not supported on this GPU
249247

250248
v_trunc_f32_e32 v0, 1.0
251249
// GFX11: v_trunc_f32_e32 v0, 1.0 ; encoding: [0xf2,0x42,0x00,0x7e]
@@ -685,21 +683,19 @@ v_cos_f16_e32 v5.l, lit(1)
685683
// NOGFX89: :[[@LINE-4]]:1: error: operands are not valid for this GPU or mode
686684
// NOSICI: :[[@LINE-5]]:1: error: instruction not supported on this GPU
687685

688-
v_tanh_bf16 v5, 1
689-
// GFX1250-ASM: v_tanh_bf16_e32 v5, 1 ; encoding: [0x81,0x94,0x0a,0x7e]
690-
// GFX1250-DIS: v_tanh_bf16_e32 v5.l, 1 ; encoding: [0x81,0x94,0x0a,0x7e]
691-
// NOGFX11: :[[@LINE-3]]:1: error: instruction not supported on this GPU
692-
// NOGFX12: :[[@LINE-4]]:1: error: instruction not supported on this GPU
693-
// NOGFX89: :[[@LINE-5]]:1: error: instruction not supported on this GPU
694-
// NOSICI: :[[@LINE-6]]:1: error: instruction not supported on this GPU
686+
v_tanh_bf16 v5.l, 1
687+
// GFX1250: v_tanh_bf16_e32 v5.l, 1 ; encoding: [0x81,0x94,0x0a,0x7e]
688+
// NOGFX11: :[[@LINE-2]]:1: error: instruction not supported on this GPU
689+
// NOGFX12: :[[@LINE-3]]:1: error: instruction not supported on this GPU
690+
// NOGFX89: :[[@LINE-4]]:1: error: instruction not supported on this GPU
691+
// NOSICI: :[[@LINE-5]]:1: error: instruction not supported on this GPU
695692

696-
v_tanh_bf16 v5, lit(1)
697-
// GFX1250-ASM: v_tanh_bf16_e32 v5, lit(0x1) ; encoding: [0xff,0x94,0x0a,0x7e,0x01,0x00,0x00,0x00]
698-
// GFX1250-DIS: v_tanh_bf16_e32 v5.l, lit(0x1) ; encoding: [0xff,0x94,0x0a,0x7e,0x01,0x00,0x00,0x00]
699-
// NOGFX11: :[[@LINE-3]]:1: error: instruction not supported on this GPU
700-
// NOGFX12: :[[@LINE-4]]:1: error: instruction not supported on this GPU
701-
// NOGFX89: :[[@LINE-5]]:1: error: instruction not supported on this GPU
702-
// NOSICI: :[[@LINE-6]]:1: error: instruction not supported on this GPU
693+
v_tanh_bf16 v5.l, lit(1)
694+
// GFX1250: v_tanh_bf16_e32 v5.l, lit(0x1) ; encoding: [0xff,0x94,0x0a,0x7e,0x01,0x00,0x00,0x00]
695+
// NOGFX11: :[[@LINE-2]]:1: error: instruction not supported on this GPU
696+
// NOGFX12: :[[@LINE-3]]:1: error: instruction not supported on this GPU
697+
// NOGFX89: :[[@LINE-4]]:1: error: instruction not supported on this GPU
698+
// NOSICI: :[[@LINE-5]]:1: error: instruction not supported on this GPU
703699

704700
v_trunc_f32_e32 v0, 1
705701
// GFX11: v_trunc_f32_e32 v0, 1 ; encoding: [0x81,0x42,0x00,0x7e]

0 commit comments

Comments
 (0)