mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 20:34:38 +00:00
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:
parent
1a6acc214d
commit
e5a24ec782
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user