This is an archive of the discontinued LLVM Phabricator instance.

Fix assertion when using a V constraint in inline asm.
Needs ReviewPublic

Authored by jacobly on Nov 7 2017, 3:00 AM.

Details

Reviewers
echristo
Summary

Uses of Constraint_v are commented with not offsetable, but that describes the V constraint, not v which is related to vector registers on x86. Because TargetLowering::getConstraintType gets the case correct, a V constraint triggers an assertion when TargetLowering::getInlineAsmMemConstraint returns Constraint_unknown.

Event Timeline

jacobly created this revision.Nov 7 2017, 3:00 AM