This is an archive of the discontinued LLVM Phabricator instance.

[X86-64] Allow additional register names in inline assembler.
ClosedPublic

Authored by ABataev on Sep 3 2015, 4:11 AM.

Details

Summary

Patch allows to recognize additional registers x8d, x8b, x8w - x15d, x15b, x15w in inline assembler, already recognized by backend

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev updated this revision to Diff 33926.Sep 3 2015, 4:11 AM
ABataev retitled this revision from to [X86-64] Allow additional register names in inline assembler..
ABataev updated this object.
ABataev added reviewers: rjmccall, echristo.
ABataev added a subscriber: cfe-commits.
echristo accepted this revision.Sep 3 2015, 11:49 AM
echristo edited edge metadata.

If you could interleave the test and the check I'd really appreciate it, e.g.:

__asm__ ("mov r8w, 100;");

// CHECK: call void asm sideeffect "mov r8w, 100;"

Otherwise LGTM. Thanks!

-eric

This revision is now accepted and ready to land.Sep 3 2015, 11:49 AM

Eric, thanks for the review! Will do!

This revision was automatically updated to reflect the committed changes.