| OLD | NEW |
| 1 //===- subzero/src/IceAssemblerARM32.h - Assembler for ARM32 ----*- C++ -*-===// | 1 //===- subzero/src/IceAssemblerARM32.h - Assembler for ARM32 ----*- C++ -*-===// |
| 2 // | 2 // |
| 3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 4 // for details. All rights reserved. Use of this source code is governed by a | 4 // for details. All rights reserved. Use of this source code is governed by a |
| 5 // BSD-style license that can be found in the LICENSE file. | 5 // BSD-style license that can be found in the LICENSE file. |
| 6 // | 6 // |
| 7 // Modified by the Subzero authors. | 7 // Modified by the Subzero authors. |
| 8 // | 8 // |
| 9 //===----------------------------------------------------------------------===// | 9 //===----------------------------------------------------------------------===// |
| 10 // | 10 // |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 | 317 |
| 318 // Implements uxtb/uxth depending on type of OpSrc0. | 318 // Implements uxtb/uxth depending on type of OpSrc0. |
| 319 void uxt(const Operand *OpRd, const Operand *OpSrc0, CondARM32::Cond Cond); | 319 void uxt(const Operand *OpRd, const Operand *OpSrc0, CondARM32::Cond Cond); |
| 320 | 320 |
| 321 void vaddd(const Operand *OpDd, const Operand *OpDn, const Operand *OpDm, | 321 void vaddd(const Operand *OpDd, const Operand *OpDn, const Operand *OpDm, |
| 322 CondARM32::Cond Cond); | 322 CondARM32::Cond Cond); |
| 323 | 323 |
| 324 void vadds(const Operand *OpSd, const Operand *OpSn, const Operand *OpSm, | 324 void vadds(const Operand *OpSd, const Operand *OpSn, const Operand *OpSm, |
| 325 CondARM32::Cond Cond); | 325 CondARM32::Cond Cond); |
| 326 | 326 |
| 327 void vcvtsd(const Operand *OpSd, const Operand *OpDm, CondARM32::Cond Cond); |
| 328 |
| 329 void vcvtds(const Operand *OpDd, const Operand *OpSm, CondARM32::Cond Cond); |
| 330 |
| 327 void vdivd(const Operand *OpDd, const Operand *OpDn, const Operand *OpDm, | 331 void vdivd(const Operand *OpDd, const Operand *OpDn, const Operand *OpDm, |
| 328 CondARM32::Cond Cond); | 332 CondARM32::Cond Cond); |
| 329 | 333 |
| 330 void vdivs(const Operand *OpSd, const Operand *OpSn, const Operand *OpSm, | 334 void vdivs(const Operand *OpSd, const Operand *OpSn, const Operand *OpSm, |
| 331 CondARM32::Cond Cond); | 335 CondARM32::Cond Cond); |
| 332 | 336 |
| 333 void vmuld(const Operand *OpDd, const Operand *OpDn, const Operand *OpDm, | 337 void vmuld(const Operand *OpDd, const Operand *OpDn, const Operand *OpDm, |
| 334 CondARM32::Cond Cond); | 338 CondARM32::Cond Cond); |
| 335 | 339 |
| 336 void vmuls(const Operand *OpSd, const Operand *OpSn, const Operand *OpSm, | 340 void vmuls(const Operand *OpSd, const Operand *OpSn, const Operand *OpSm, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 // aaaa<<21=AddressMode, l=IsLoad, nnnn=BaseReg, and | 445 // aaaa<<21=AddressMode, l=IsLoad, nnnn=BaseReg, and |
| 442 // rrrrrrrrrrrrrrrr is bitset of Registers. | 446 // rrrrrrrrrrrrrrrr is bitset of Registers. |
| 443 void emitMultiMemOp(CondARM32::Cond Cond, BlockAddressMode AddressMode, | 447 void emitMultiMemOp(CondARM32::Cond Cond, BlockAddressMode AddressMode, |
| 444 bool IsLoad, IValueT BaseReg, IValueT Registers); | 448 bool IsLoad, IValueT BaseReg, IValueT Registers); |
| 445 | 449 |
| 446 // Pattern ccccxxxxxDxxxxxxddddxxxxiiiiiiii where cccc=Cond, ddddD=BaseReg, | 450 // Pattern ccccxxxxxDxxxxxxddddxxxxiiiiiiii where cccc=Cond, ddddD=BaseReg, |
| 447 // iiiiiiii=NumConsecRegs, and xxxxx0xxxxxx0000xxxx00000000=Opcode. | 451 // iiiiiiii=NumConsecRegs, and xxxxx0xxxxxx0000xxxx00000000=Opcode. |
| 448 void emitVStackOp(CondARM32::Cond Cond, IValueT Opcode, | 452 void emitVStackOp(CondARM32::Cond Cond, IValueT Opcode, |
| 449 const Variable *OpBaseReg, SizeT NumConsecRegs); | 453 const Variable *OpBaseReg, SizeT NumConsecRegs); |
| 450 | 454 |
| 455 // Pattern cccc111xxDxxxxxxdddd101xxxMxmmmm where cccc=Cond, ddddD=Sd, |
| 456 // Mmmmm=Dm, and xx0xxxxxxdddd000xxx0x0000=Opcode. |
| 457 void emitVFPsd(CondARM32::Cond Cond, IValueT Opcode, IValueT Sd, IValueT Dm); |
| 458 |
| 459 // Pattern cccc111xxDxxxxxxdddd101xxxMxmmmm where cccc=Cond, Ddddd=Dd, |
| 460 // mmmmM=Sm, and xx0xxxxxxdddd000xxx0x0000=Opcode. |
| 461 void emitVFPds(CondARM32::Cond Cond, IValueT Opcode, IValueT Dd, IValueT Sm); |
| 462 |
| 451 // Pattern cccc011100x1dddd1111mmmm0001nnn where cccc=Cond, | 463 // Pattern cccc011100x1dddd1111mmmm0001nnn where cccc=Cond, |
| 452 // x=Opcode, dddd=Rd, nnnn=Rn, mmmm=Rm. | 464 // x=Opcode, dddd=Rd, nnnn=Rn, mmmm=Rm. |
| 453 void emitDivOp(CondARM32::Cond Cond, IValueT Opcode, IValueT Rd, IValueT Rn, | 465 void emitDivOp(CondARM32::Cond Cond, IValueT Opcode, IValueT Rd, IValueT Rn, |
| 454 IValueT Rm); | 466 IValueT Rm); |
| 455 | 467 |
| 456 // Pattern ccccxxxxxxxfnnnnddddssss1001mmmm where cccc=Cond, dddd=Rd, nnnn=Rn, | 468 // Pattern ccccxxxxxxxfnnnnddddssss1001mmmm where cccc=Cond, dddd=Rd, nnnn=Rn, |
| 457 // mmmm=Rm, ssss=Rs, f=SetFlags and xxxxxxx=Opcode. | 469 // mmmm=Rm, ssss=Rs, f=SetFlags and xxxxxxx=Opcode. |
| 458 void emitMulOp(CondARM32::Cond Cond, IValueT Opcode, IValueT Rd, IValueT Rn, | 470 void emitMulOp(CondARM32::Cond Cond, IValueT Opcode, IValueT Rd, IValueT Rn, |
| 459 IValueT Rm, IValueT Rs, bool SetFlags); | 471 IValueT Rm, IValueT Rs, bool SetFlags); |
| 460 | 472 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 | 510 |
| 499 // Emit VFP instruction with 3 S registers. | 511 // Emit VFP instruction with 3 S registers. |
| 500 void emitVFPsss(CondARM32::Cond Cond, IValueT Opcode, IValueT Sd, IValueT Sn, | 512 void emitVFPsss(CondARM32::Cond Cond, IValueT Opcode, IValueT Sd, IValueT Sn, |
| 501 IValueT Sm); | 513 IValueT Sm); |
| 502 }; | 514 }; |
| 503 | 515 |
| 504 } // end of namespace ARM32 | 516 } // end of namespace ARM32 |
| 505 } // end of namespace Ice | 517 } // end of namespace Ice |
| 506 | 518 |
| 507 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H | 519 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H |
| OLD | NEW |