Skip to content

Commit 6dcf920

Browse files
committed
[AMDGPU] Fix a urem combine test to test what it was supposed to
1 parent 2e17d9c commit 6dcf920

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

llvm/test/CodeGen/AMDGPU/GlobalISel/combine-urem-pow-2.mir

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,14 @@ body: |
4848
4949
; GCN-LABEL: name: urem_s32_var_const2
5050
; GCN: liveins: $vgpr0
51-
; GCN: %const:_(s32) = G_CONSTANT i32 1
51+
; GCN: %var:_(s32) = COPY $vgpr0
52+
; GCN: %const:_(s32) = G_CONSTANT i32 2
5253
; GCN: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 -1
5354
; GCN: [[ADD:%[0-9]+]]:_(s32) = G_ADD %const, [[C]]
54-
; GCN: $vgpr0 = COPY [[ADD]](s32)
55+
; GCN: %rem:_(s32) = G_AND %var, [[ADD]]
56+
; GCN: $vgpr0 = COPY %rem(s32)
5557
%var:_(s32) = COPY $vgpr0
56-
%const:_(s32) = G_CONSTANT i32 1
58+
%const:_(s32) = G_CONSTANT i32 2
5759
%rem:_(s32) = G_UREM %var, %const
5860
$vgpr0 = COPY %rem
5961
...

0 commit comments

Comments
 (0)