| OLD | NEW |
| 1 //===- subzero/src/IceInstARM32.cpp - ARM32 instruction implementation ----===// | 1 //===- subzero/src/IceInstARM32.cpp - ARM32 instruction implementation ----===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 /// | 9 /// |
| 10 /// \file | 10 /// \file |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 354 |
| 355 template <> | 355 template <> |
| 356 void InstARM32ThreeAddrGPR<InstARM32::Add>::emitIAS(const Cfg *Func) const { | 356 void InstARM32ThreeAddrGPR<InstARM32::Add>::emitIAS(const Cfg *Func) const { |
| 357 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 357 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 358 Asm->add(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); | 358 Asm->add(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
| 359 if (Asm->needsTextFixup()) | 359 if (Asm->needsTextFixup()) |
| 360 emitUsingTextFixup(Func); | 360 emitUsingTextFixup(Func); |
| 361 } | 361 } |
| 362 | 362 |
| 363 template <> | 363 template <> |
| 364 void InstARM32ThreeAddrGPR<InstARM32::Sbc>::emitIAS(const Cfg *Func) const { |
| 365 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 366 Asm->sbc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
| 367 if (Asm->needsTextFixup()) |
| 368 emitUsingTextFixup(Func); |
| 369 } |
| 370 |
| 371 template <> |
| 364 void InstARM32ThreeAddrGPR<InstARM32::Sub>::emitIAS(const Cfg *Func) const { | 372 void InstARM32ThreeAddrGPR<InstARM32::Sub>::emitIAS(const Cfg *Func) const { |
| 365 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 373 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 366 Asm->sub(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); | 374 Asm->sub(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
| 367 if (Asm->needsTextFixup()) | 375 if (Asm->needsTextFixup()) |
| 368 emitUsingTextFixup(Func); | 376 emitUsingTextFixup(Func); |
| 369 } | 377 } |
| 370 | 378 |
| 371 InstARM32Call::InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget) | 379 InstARM32Call::InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget) |
| 372 : InstARM32(Func, InstARM32::Call, 1, Dest) { | 380 : InstARM32(Func, InstARM32::Call, 1, Dest) { |
| 373 HasSideEffects = true; | 381 HasSideEffects = true; |
| (...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1448 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>; | 1456 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>; |
| 1449 | 1457 |
| 1450 template class InstARM32ThreeAddrFP<InstARM32::Vadd>; | 1458 template class InstARM32ThreeAddrFP<InstARM32::Vadd>; |
| 1451 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>; | 1459 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>; |
| 1452 template class InstARM32ThreeAddrFP<InstARM32::Vmul>; | 1460 template class InstARM32ThreeAddrFP<InstARM32::Vmul>; |
| 1453 template class InstARM32ThreeAddrFP<InstARM32::Vsub>; | 1461 template class InstARM32ThreeAddrFP<InstARM32::Vsub>; |
| 1454 | 1462 |
| 1455 template class InstARM32TwoAddrGPR<InstARM32::Movt>; | 1463 template class InstARM32TwoAddrGPR<InstARM32::Movt>; |
| 1456 | 1464 |
| 1457 } // end of namespace Ice | 1465 } // end of namespace Ice |
| OLD | NEW |