Skip to content

[NFC][AMDGPU] Pre-commit a test case that shows wrong reverse operation is used for V_CMPX_LE_U32 #146527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions llvm/test/CodeGen/AMDGPU/cmp_shrink.mir
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,16 @@ body: |
; GCN: S_CMP_LT_I32 65, 1, implicit-def $scc
S_CMP_GT_I32 1, 65, implicit-def $scc
...

---
name: shrink_icmp
body: |
bb.0:
; GCN-LABEL: name: shrink_icmp
; GCN: %op0:sgpr_32 = COPY $sgpr0
; GCN-NEXT: %cond:sreg_64 = V_CMPX_LE_U32_e64 5, %op0, implicit-def $exec, implicit $exec
; GCN-NEXT: S_NOP 0
%op0:sgpr_32 = COPY $sgpr0
%cond:sreg_64 = V_CMPX_LE_U32_e64 %op0, 5, implicit-def $exec, implicit $exec
S_NOP 0
...
Loading