[lldb] [lit] Use constexpr and better constraints in Register tests
authorMichal Gorny <mgorny@gentoo.org>
Thu, 25 Apr 2019 19:56:54 +0000 (19:56 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Thu, 25 Apr 2019 19:56:54 +0000 (19:56 +0000)
commit3bf8d7639f49b03ddb80fbc107a0f67fe03397f6
treef854623cd98c1439652de120e074c34a775db4d7
parent2bbb7feda84f59134a3d3d1e7a083a6857507ea4
[lldb] [lit] Use constexpr and better constraints in Register tests

Use constexpr to explicitly indicate that we're dealing with integer
constants, and provoke clang to assign them straight to registers
whenever possible.  Adjust input constraints in %mmN tests to "rm"
as using integer constants is apparently disallowed there.  Also
use "i" for %rN tests, as we don't want clang to accidentally clobber
those general purpose registers while assigning to them (however
unlikely that is).

llvm-svn: 359228
lldb/lit/Register/Inputs/x86-64-read.cpp
lldb/lit/Register/Inputs/x86-mm-xmm-read.cpp