Skip to content

Commit 7b7c468

Browse files
Pravin JagtapPravin Jagtap
authored andcommitted
added negative FP4 src tests
1 parent e926110 commit 7b7c468

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

llvm/test/CodeGen/AMDGPU/hazards-gfx950.mir

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,43 @@ body: |
10091009
S_SETPC_B64_return undef $sgpr30_sgpr31, implicit killed $vgpr0
10101010
...
10111011

1012+
---
1013+
name: test_cvt_scalef32_pk_f16_fp4_opsel0_neg_hazard
1014+
body: |
1015+
bb.0:
1016+
liveins: $vgpr0, $vgpr1, $vgpr2
1017+
; GCN-LABEL: name: test_cvt_scalef32_pk_f16_fp4_opsel0_neg_hazard
1018+
; GCN: liveins: $vgpr0, $vgpr1, $vgpr2
1019+
; GCN-NEXT: {{ $}}
1020+
; GCN-NEXT: S_WAITCNT 0
1021+
; GCN-NEXT: renamable $vgpr0 = V_CVT_SCALEF32_PK_F16_FP4_e64 0, killed $vgpr2, 0, killed $vgpr1, 0, implicit $mode, implicit $exec
1022+
; GCN-NEXT: renamable $vgpr0 = V_ADD_U32_e32 killed $vgpr0, $vgpr0, implicit $exec
1023+
; GCN-NEXT: S_SETPC_B64_return undef $sgpr30_sgpr31, implicit killed $vgpr0
1024+
S_WAITCNT 0
1025+
renamable $vgpr0 = V_CVT_SCALEF32_PK_F16_FP4_e64 0, killed $vgpr2, 0, killed $vgpr1, 0, implicit $mode, implicit $exec
1026+
renamable $vgpr0 = V_ADD_U32_e32 killed $vgpr0, $vgpr0, implicit $exec
1027+
S_SETPC_B64_return undef $sgpr30_sgpr31, implicit killed $vgpr0
1028+
...
1029+
1030+
1031+
---
1032+
name: test_cvt_scalef32_pk_f16_fp4_opsel3_neg_hazard
1033+
body: |
1034+
bb.0:
1035+
liveins: $vgpr0, $vgpr1, $vgpr2
1036+
; GCN-LABEL: name: test_cvt_scalef32_pk_f16_fp4_opsel3_neg_hazard
1037+
; GCN: liveins: $vgpr0, $vgpr1, $vgpr2
1038+
; GCN-NEXT: {{ $}}
1039+
; GCN-NEXT: S_WAITCNT 0
1040+
; GCN-NEXT: renamable $vgpr0 = V_CVT_SCALEF32_PK_F16_FP4_e64 4, killed $vgpr2, 4, killed $vgpr1, 0, implicit $mode, implicit $exec
1041+
; GCN-NEXT: renamable $vgpr0 = V_ADD_U32_e32 killed $vgpr0, $vgpr0, implicit $exec
1042+
; GCN-NEXT: S_SETPC_B64_return undef $sgpr30_sgpr31, implicit killed $vgpr0
1043+
S_WAITCNT 0
1044+
renamable $vgpr0 = V_CVT_SCALEF32_PK_F16_FP4_e64 4, killed $vgpr2, 4, killed $vgpr1, 0, implicit $mode, implicit $exec
1045+
renamable $vgpr0 = V_ADD_U32_e32 killed $vgpr0, $vgpr0, implicit $exec
1046+
S_SETPC_B64_return undef $sgpr30_sgpr31, implicit killed $vgpr0
1047+
...
1048+
10121049
---
10131050
name: test_cvt_scalef32_hazard_pseudo
10141051
body: |

0 commit comments

Comments
 (0)