[llvm] [NVPTX] Switch to imm offset variants for LDG and LDU (PR #128270)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 24 18:14:04 PST 2025
================
@@ -148,3 +148,19 @@ define <2 x half> @test_ldg_v2f16(ptr addrspace(1) %ptr) {
%val = tail call <2 x half> @llvm.nvvm.ldg.global.f.v2f16.p1(ptr addrspace(1) %ptr, i32 4)
ret <2 x half> %val
}
+
+ at g = addrspace(1) global i32 0
+
+; CHECK-LABEL: test_ldg_asi
----------------
Artem-B wrote:
Let's automate the check generation while we're here, too.
https://github.com/llvm/llvm-project/pull/128270
More information about the llvm-commits
mailing list