This is an archive of the discontinued LLVM Phabricator instance.

[mips] Correct alignment of vectors passed in varargs for the O32 ABI.
ClosedPublic

Authored by dsanders on Sep 22 2014, 2:32 AM.

Details

Summary

Vectors are normally 16-byte aligned, however the O32 ABI enforces a
maximum alignment of 8-bytes since the base of the stack is 8-byte aligned.
Previously, this was enforced on the caller side, but not on the callee
side.

This fixes the output of OpenCL's printf when given vectors.

Diff Detail

Event Timeline

dsanders updated this revision to Diff 13922.Sep 22 2014, 2:32 AM
dsanders retitled this revision from to [mips] Correct alignment of vectors passed in varargs for the O32 ABI..
dsanders updated this object.
dsanders edited the test plan for this revision. (Show Details)
dsanders added a reviewer: atanasyan.
dsanders added subscribers: pekka.jaaskelainen, Unknown Object (MLST).
atanasyan accepted this revision.Sep 22 2014, 3:27 AM
atanasyan edited edge metadata.

LGTM

This revision is now accepted and ready to land.Sep 22 2014, 3:27 AM
dsanders closed this revision.Sep 22 2014, 6:36 AM