You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This test expects a validation error to show because %null is not an OpConstant.
Those instruction indeed have a line like:
XX must be a 32-bit unsigned integer **OpConstant** composed with the bits of *some-table*.
Some extension have a valid flag with a value = to 0 (Kernel Property Flags) for ex.
I suspect if we apply the spec to the letter, OpConstantNull shall be rejected since it's another opcode? (Which is sad given the spec says OpConstantNull %int = 0)
I think strictly speaking, yes, it is disallowed. That might have been an oversight to simply disallow spec constants. There probably isn't much to gain by allowing it though unless every consumer handles OpConstantNull already.
Hello!
Not sure if this is a validation issue, or a spec issue, or a desirable behavior, but if I do:
I get a validation error because
%flag
is not anOpConstant
.This matches the spec which only mentions
OpConstant
.Question is shall
OpConstantNull %uint
be considered to be the same asOpConstant %uint 0
?Or is that difference there by design?
(related to #5846 and llvm/llvm-project#118011)
The text was updated successfully, but these errors were encountered: