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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1412923006: Add orr (register) and orr (immediate) to ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Merge with master Created 5 years, 1 month 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
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | tests_lit/assembler/arm32/orr.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 emitUsingTextFixup(Func); 358 emitUsingTextFixup(Func);
359 } 359 }
360 360
361 template <> void InstARM32And::emitIAS(const Cfg *Func) const { 361 template <> void InstARM32And::emitIAS(const Cfg *Func) const {
362 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 362 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
363 Asm->and_(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); 363 Asm->and_(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
364 if (Asm->needsTextFixup()) 364 if (Asm->needsTextFixup())
365 emitUsingTextFixup(Func); 365 emitUsingTextFixup(Func);
366 } 366 }
367 367
368 template <> void InstARM32Orr::emitIAS(const Cfg *Func) const {
369 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
370 Asm->orr(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
371 if (Asm->needsTextFixup())
372 emitUsingTextFixup(Func);
373 }
374
368 template <> void InstARM32Mul::emitIAS(const Cfg *Func) const { 375 template <> void InstARM32Mul::emitIAS(const Cfg *Func) const {
369 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 376 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
370 Asm->mul(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); 377 Asm->mul(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
371 if (Asm->needsTextFixup()) 378 if (Asm->needsTextFixup())
372 emitUsingTextFixup(Func); 379 emitUsingTextFixup(Func);
373 } 380 }
374 381
375 template <> void InstARM32Sbc::emitIAS(const Cfg *Func) const { 382 template <> void InstARM32Sbc::emitIAS(const Cfg *Func) const {
376 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 383 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
377 Asm->sbc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); 384 Asm->sbc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1531 template class InstARM32UnaryopGPR<InstARM32::Movw, false>; 1538 template class InstARM32UnaryopGPR<InstARM32::Movw, false>;
1532 template class InstARM32UnaryopGPR<InstARM32::Clz, false>; 1539 template class InstARM32UnaryopGPR<InstARM32::Clz, false>;
1533 template class InstARM32UnaryopGPR<InstARM32::Mvn, false>; 1540 template class InstARM32UnaryopGPR<InstARM32::Mvn, false>;
1534 template class InstARM32UnaryopGPR<InstARM32::Rbit, false>; 1541 template class InstARM32UnaryopGPR<InstARM32::Rbit, false>;
1535 template class InstARM32UnaryopGPR<InstARM32::Rev, false>; 1542 template class InstARM32UnaryopGPR<InstARM32::Rev, false>;
1536 template class InstARM32UnaryopGPR<InstARM32::Sxt, true>; 1543 template class InstARM32UnaryopGPR<InstARM32::Sxt, true>;
1537 template class InstARM32UnaryopGPR<InstARM32::Uxt, true>; 1544 template class InstARM32UnaryopGPR<InstARM32::Uxt, true>;
1538 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; 1545 template class InstARM32UnaryopFP<InstARM32::Vsqrt>;
1539 1546
1540 } // end of namespace Ice 1547 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | tests_lit/assembler/arm32/orr.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698