Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/IceAssemblerARM32.h

Issue 1567623008: Add vcvt<c>.f32.f64 and vcvt<c>.f64.32 to ARM. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 vpop(const Variable *OpBaseReg, SizeT NumConsecRegs, 331 void vpop(const Variable *OpBaseReg, SizeT NumConsecRegs,
328 CondARM32::Cond Cond); 332 CondARM32::Cond Cond);
329 333
330 void vpush(const Variable *OpBaseReg, SizeT NumConsecRegs, 334 void vpush(const Variable *OpBaseReg, SizeT NumConsecRegs,
331 CondARM32::Cond Cond); 335 CondARM32::Cond Cond);
332 336
333 void vsubd(const Operand *OpDd, const Operand *OpDn, const Operand *OpDm, 337 void vsubd(const Operand *OpDd, const Operand *OpDn, const Operand *OpDm,
334 CondARM32::Cond Cond); 338 CondARM32::Cond Cond);
335 339
336 void vsubs(const Operand *OpSd, const Operand *OpSn, const Operand *OpSm, 340 void vsubs(const Operand *OpSd, const Operand *OpSn, const Operand *OpSm,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 // aaaa<<21=AddressMode, l=IsLoad, nnnn=BaseReg, and 433 // aaaa<<21=AddressMode, l=IsLoad, nnnn=BaseReg, and
430 // rrrrrrrrrrrrrrrr is bitset of Registers. 434 // rrrrrrrrrrrrrrrr is bitset of Registers.
431 void emitMultiMemOp(CondARM32::Cond Cond, BlockAddressMode AddressMode, 435 void emitMultiMemOp(CondARM32::Cond Cond, BlockAddressMode AddressMode,
432 bool IsLoad, IValueT BaseReg, IValueT Registers); 436 bool IsLoad, IValueT BaseReg, IValueT Registers);
433 437
434 // Pattern ccccxxxxxDxxxxxxddddxxxxiiiiiiii where cccc=Cond, ddddD=BaseReg, 438 // Pattern ccccxxxxxDxxxxxxddddxxxxiiiiiiii where cccc=Cond, ddddD=BaseReg,
435 // iiiiiiii=NumConsecRegs, and xxxxx0xxxxxx0000xxxx00000000=Opcode. 439 // iiiiiiii=NumConsecRegs, and xxxxx0xxxxxx0000xxxx00000000=Opcode.
436 void emitVStackOp(CondARM32::Cond Cond, IValueT Opcode, 440 void emitVStackOp(CondARM32::Cond Cond, IValueT Opcode,
437 const Variable *OpBaseReg, SizeT NumConsecRegs); 441 const Variable *OpBaseReg, SizeT NumConsecRegs);
438 442
443 // Pattern cccc111xxDxxxxxxdddd101xxxMxmmmm where cccc=Cond, ddddD=Sd,
444 // Mmmmm=Dm, and xx0xxxxxxdddd000xxx0x0000=Opcode.
445 void emitVFPsd(CondARM32::Cond Cond, IValueT Opcode, IValueT Sd, IValueT Dm);
446
447 // Pattern cccc111xxDxxxxxxdddd101xxxMxmmmm where cccc=Cond, Ddddd=Dd,
448 // mmmmM=Sm, and xx0xxxxxxdddd000xxx0x0000=Opcode.
449 void emitVFPds(CondARM32::Cond Cond, IValueT Opcode, IValueT Dd, IValueT Sm);
450
439 // Pattern cccc011100x1dddd1111mmmm0001nnn where cccc=Cond, 451 // Pattern cccc011100x1dddd1111mmmm0001nnn where cccc=Cond,
440 // x=Opcode, dddd=Rd, nnnn=Rn, mmmm=Rm. 452 // x=Opcode, dddd=Rd, nnnn=Rn, mmmm=Rm.
441 void emitDivOp(CondARM32::Cond Cond, IValueT Opcode, IValueT Rd, IValueT Rn, 453 void emitDivOp(CondARM32::Cond Cond, IValueT Opcode, IValueT Rd, IValueT Rn,
442 IValueT Rm); 454 IValueT Rm);
443 455
444 // Pattern ccccxxxxxxxfnnnnddddssss1001mmmm where cccc=Cond, dddd=Rd, nnnn=Rn, 456 // Pattern ccccxxxxxxxfnnnnddddssss1001mmmm where cccc=Cond, dddd=Rd, nnnn=Rn,
445 // mmmm=Rm, ssss=Rs, f=SetFlags and xxxxxxx=Opcode. 457 // mmmm=Rm, ssss=Rs, f=SetFlags and xxxxxxx=Opcode.
446 void emitMulOp(CondARM32::Cond Cond, IValueT Opcode, IValueT Rd, IValueT Rn, 458 void emitMulOp(CondARM32::Cond Cond, IValueT Opcode, IValueT Rd, IValueT Rn,
447 IValueT Rm, IValueT Rs, bool SetFlags); 459 IValueT Rm, IValueT Rs, bool SetFlags);
448 460
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 498
487 // Emit VFP instruction with 3 S registers. 499 // Emit VFP instruction with 3 S registers.
488 void emitVFPsss(CondARM32::Cond Cond, IValueT Opcode, IValueT Sd, IValueT Sn, 500 void emitVFPsss(CondARM32::Cond Cond, IValueT Opcode, IValueT Sd, IValueT Sn,
489 IValueT Sm); 501 IValueT Sm);
490 }; 502 };
491 503
492 } // end of namespace ARM32 504 } // end of namespace ARM32
493 } // end of namespace Ice 505 } // end of namespace Ice
494 506
495 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H 507 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698