IR: Change VMov to use IR::OpSize

This commit is contained in:
Ryan Houdek 2024-10-27 21:52:11 -07:00
parent 027e7624cb
commit 4a6b5d4ec7
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -1871,7 +1871,7 @@
} }
}, },
"Vector": { "Vector": {
"FPR = VMov u8:#RegisterSize, FPR:$Source": { "FPR = VMov OpSize:#RegisterSize, FPR:$Source": {
"Desc" : ["Copy vector register", "Desc" : ["Copy vector register",
"When Register size is smaller than Source register size,", "When Register size is smaller than Source register size,",
"this op is defined to truncate and zero extend" "this op is defined to truncate and zero extend"

View File

@ -582,7 +582,7 @@ void ConstrainedRAPass::Run(IREmitter* IREmit_) {
if (Reg.Class == FPRFixedClass) { if (Reg.Class == FPRFixedClass) {
IROp_Header* Header = IR->GetOp<IROp_Header>(Old); IROp_Header* Header = IR->GetOp<IROp_Header>(Old);
Copy = IREmit->_VMov(Header->Size, Map(Old)); Copy = IREmit->_VMov(IR::SizeToOpSize(Header->Size), Map(Old));
} else { } else {
Copy = IREmit->_Copy(Map(Old)); Copy = IREmit->_Copy(Map(Old));
} }