[PATCH] D117280: [AMDGPU] Pre-commit test for D116469. NFC
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 14 08:55:39 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGfc7af123ddba: [AMDGPU] Pre-commit test for D116469. NFC (authored by craig.topper).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117280/new/
https://reviews.llvm.org/D117280
Files:
llvm/test/CodeGen/AMDGPU/amdgpu-mul24-knownbits.ll
Index: llvm/test/CodeGen/AMDGPU/amdgpu-mul24-knownbits.ll
===================================================================
--- llvm/test/CodeGen/AMDGPU/amdgpu-mul24-knownbits.ll
+++ llvm/test/CodeGen/AMDGPU/amdgpu-mul24-knownbits.ll
@@ -29,6 +29,19 @@
ret void
}
+define i32 @f(i32 %x, i32 %y) {
+; GCN-LABEL: f:
+; GCN: ; %bb.0:
+; GCN-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
+; GCN-NEXT: v_mov_b32_e32 v0, 0
+; GCN-NEXT: s_setpc_b64 s[30:31]
+ %xx = or i32 %x, -128 ; 0xffffff80
+ %yy = or i32 %y, -128 ; 0xffffff80
+ %r = mul i32 %xx, %yy
+ %rr = lshr i32 %r, 14
+ ret i32 %rr
+}
+
; Function Attrs: nounwind readnone speculatable
declare i32 @llvm.amdgcn.workitem.id.x() #20
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117280.400036.patch
Type: text/x-patch
Size: 718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220114/fc5983ef/attachment.bin>
More information about the llvm-commits
mailing list