[llvm] [NVPTX] Don't use underlying alignment to align param (PR #96793)
Hugh Delaney via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 09:44:47 PDT 2024
================
@@ -69,3 +69,39 @@ define ptx_device void @t6() {
call void %fp(ptr byval(i8) null);
ret void
}
+
+; CHECK: .func check_ptr_align1(
+; CHECK: ld.param.u64 %rd1
+; CHECK: ret;
+define void @check_ptr_align1(ptr align 1 %_arg_ptr) {
+entry:
+ store i32 1, ptr %_arg_ptr, align 1
+ ret void
+}
+
+; CHECK: .func check_ptr_align2(
----------------
hdelan wrote:
Thanks have changed.
https://github.com/llvm/llvm-project/pull/96793
More information about the llvm-commits
mailing list