Skip to content

Commit bab9d4c

Browse files
authored
[NFC][AMDGPU] Pre-commit a test case that shows wrong reverse operation is used for V_CMPX_LE_U32 (#146527)
1 parent a6592dd commit bab9d4c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

llvm/test/CodeGen/AMDGPU/cmp_shrink.mir

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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_CMPX_LE_U32_e64 5, %op0, implicit-def $exec, implicit $exec
21+
; GCN-NEXT: S_NOP 0
22+
%op0:sgpr_32 = COPY $sgpr0
23+
%cond:sreg_64 = V_CMPX_LE_U32_e64 %op0, 5, implicit-def $exec, implicit $exec
24+
S_NOP 0
25+
...

0 commit comments

Comments
 (0)