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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1424213003: Add Sbc(register) and Sbc(immediate) to integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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/sub.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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | tests_lit/assembler/arm32/sub.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698