File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -846,7 +846,7 @@ defm V_CMP_T_U32 : VOPC_I32 <"v_cmp_t_u32">;
846846defm V_CMPX_F_U32 : VOPCX_I32 <"v_cmpx_f_u32">;
847847defm V_CMPX_LT_U32 : VOPCX_I32 <"v_cmpx_lt_u32", "v_cmpx_gt_u32">;
848848defm V_CMPX_EQ_U32 : VOPCX_I32 <"v_cmpx_eq_u32">;
849- defm V_CMPX_LE_U32 : VOPCX_I32 <"v_cmpx_le_u32", "v_cmpx_le_u32 ">;
849+ defm V_CMPX_LE_U32 : VOPCX_I32 <"v_cmpx_le_u32", "v_cmpx_ge_u32 ">;
850850defm V_CMPX_GT_U32 : VOPCX_I32 <"v_cmpx_gt_u32">;
851851defm V_CMPX_NE_U32 : VOPCX_I32 <"v_cmpx_ne_u32">;
852852defm V_CMPX_GE_U32 : VOPCX_I32 <"v_cmpx_ge_u32">;
Original file line number Diff line number Diff line change @@ -10,3 +10,16 @@ body: |
1010 ; GCN: S_CMP_LT_I32 65, 1, implicit-def $scc
1111 S_CMP_GT_I32 1, 65, implicit-def $scc
1212 ...
13+
14+ ---
15+ name : shrink_icmp
16+ body : |
17+ bb.0:
18+ ; GCN-LABEL: name: shrink_icmp
19+ ; GCN: %op0:sgpr_32 = COPY $sgpr0
20+ ; GCN-NEXT: %cond:sreg_64 = V_CMP_GE_U32_e64 5, %op0, implicit $exec
21+ ; GCN-NEXT: S_NOP 0
22+ %op0:sgpr_32 = COPY $sgpr0
23+ %cond:sreg_64 = V_CMP_LE_U32_e64 %op0, 5, implicit $exec
24+ S_NOP 0
25+ ...
You can’t perform that action at this time.
0 commit comments