This is an archive of the discontinued LLVM Phabricator instance.

Update clang filtering for mxcsr
AbandonedPublic

Authored by andrew.w.kaylor on Mar 6 2017, 9:44 AM.

Details

Reviewers
zvi
rnk
Summary

This patch updates the clang function that filters the mxcsr register name to recognize that mxcsr is being split into two pseduo-registers that model the control and status bits separately.

Diff Detail

Repository
rL LLVM

Event Timeline

Is it possible to add a test case (possibly in CodeGen)?

Is it possible to add a test case (possibly in CodeGen)?

This is covered by CodeGen/ms-inline-asm.c, which Reid added after I broke this adding the mxcsr register a couple of weeks ago.

rnk edited edge metadata.Mar 6 2017, 2:19 PM

I think we should really change this code to filter out clobber registers that do not name valid gcc inline asm clobbers. That's basically what we require later. I think if you change this condition to just check Target.isValidGCCRegisterName.

Is it possible to add a test case (possibly in CodeGen)?

This is covered by CodeGen/ms-inline-asm.c, which Reid added after I broke this adding the mxcsr register a couple of weeks ago.

I see, thanks.

andrew.w.kaylor abandoned this revision.Mar 13 2017, 11:50 AM