[llvm] [SelectionDAG][Statepoint] Fix truncation of `gc.statepoint` ID argument (PR #85908)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 20 02:28:38 PDT 2024
================
@@ -434,14 +434,27 @@ entry:
; CHECK-LABEL: .word .L{{.*}}-longid
; CHECK: .xword -1
; CHECK-LABEL: .word .L{{.*}}-longid
-define void @longid() {
+; CHECK: .xword 4294967295
+; CHECK-LABEL: .word .L{{.*}}-longid
+; CHECK: .xword 4294967296
+; CHECK-LABEL: .word .L{{.*}}-longid
+; CHECK: .xword 9223372036854775807
+; CHECK-LABEL: .word .L{{.*}}-longid
+; CHECK: .xword -1
+; CHECK-LABEL: .word .L{{.*}}-longid
+define void @longid() gc "statepoint-example" {
entry:
tail call void (i64, i32, ptr, i32, ...) @llvm.experimental.patchpoint.void(i64 4294967295, i32 0, ptr null, i32 0)
tail call void (i64, i32, ptr, i32, ...) @llvm.experimental.patchpoint.void(i64 4294967296, i32 0, ptr null, i32 0)
tail call void (i64, i32, ptr, i32, ...) @llvm.experimental.patchpoint.void(i64 9223372036854775807, i32 0, ptr null, i32 0)
tail call void (i64, i32, ptr, i32, ...) @llvm.experimental.patchpoint.void(i64 -1, i32 0, ptr null, i32 0)
+ %safepoint_token1 = tail call token (i64, i32, ptr, i32, i32, ...) @llvm.experimental.gc.statepoint.p0(i64 4294967295, i32 0, ptr elementtype(void ()) @return_void, i32 0, i32 0, i32 0, i32 0)
----------------
arsenm wrote:
Add a new test function instead of adding to an existing one
https://github.com/llvm/llvm-project/pull/85908
More information about the llvm-commits
mailing list