implement support for CodeGen/X86/inline-asm-x-scalar.ll:test3 - i32/i64 values

used with x constraints.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35803 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-04-09 05:31:48 +00:00
parent 1a6acc214d
commit e5a24ec782

View File

@ -4715,9 +4715,9 @@ X86TargetLowering::getRegForInlineAsmConstraint(const std::string &Constraint,
switch (Constraint[0]) {
default: break;
case 'x':
if (VT == MVT::f32)
if (VT == MVT::f32 || VT == MVT::i32)
return std::make_pair(0U, X86::FR32RegisterClass);
if (VT == MVT::f64)
if (VT == MVT::f64 || VT == MVT::i64)
return std::make_pair(0U, X86::FR64RegisterClass);
break;
}