[PATCH] D11226: AMDPGU/SI: Negative offsets aren't allowed in MUBUF's vaddr operand
Matt Arsenault
Matthew.Arsenault at amd.com
Wed Jul 15 10:48:56 PDT 2015
arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: test/CodeGen/AMDGPU/scratch-buffer.ll:101-102
@@ +100,4 @@
+if:
+ %ptr_offset = add i32 %offset, 4
+ %array_ptr = getelementptr [8192 x i32], [8192 x i32]* %array, i32 0, i32 %ptr_offset
+ store i32 0, i32* %array_ptr
----------------
I still don't really understand how this becomes a negative offset. Would another test that adds a negative offset be useful?
http://reviews.llvm.org/D11226
More information about the llvm-commits
mailing list