Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__chip__fns64 generates 128bit numbers resulting in InvalidBitWidth: Invalid bit width in input: 128 #897

Open
pvelesko opened this issue Jul 29, 2024 · 0 comments

Comments

@pvelesko
Copy link
Collaborator

╰─$ llvm-spirv ./bitcode/BC/devicelib.bc -o devicelib.spv -spirv-ext=+SPV_KHR_bit_instructions -spirv-ext=+SPV_INTEL_subgroups                                                                        130 ↵
InvalidBitWidth: Invalid bit width in input: 128
if.end5:                                          ; preds = %if.else, %if.then3, %if.then
  %temp_mask.0 = phi i64 [ %and, %if.then ], [ %0, %if.then3 ], [ %mask, %if.else ]
  %temp_offset.0 = phi i32 [ 1, %if.then ], [ %sub4, %if.then3 ], [ %offset, %if.else ]
  %base.addr.0 = phi i32 [ %base, %if.then ], [ %sub, %if.then3 ], [ %base, %if.else ]
  %1 = and i32 %base.addr.0, 127
  %shl.mask7 = zext nneg i32 %1 to i128
  %shl8 = shl nsw i128 -1, %shl.mask7
  %2 = trunc i128 %shl8 to i64
  %conv10 = and i64 %temp_mask.0, %2
  %3 = tail call i64 @llvm.ctpop.i64(i64 %conv10), !range !10
  %cast = trunc i64 %3 to i32
  %cmp12 = icmp ugt i32 %temp_offset.0, %cast
  br i1 %cmp12, label %cleanup40, label %for.body.preheader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant