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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1636473002: Add the VMRS instruction to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix test case. Created 4 years, 10 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
« no previous file with comments | « src/IceInstARM32.h ('k') | tests_lit/assembler/arm32/vmrs.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 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after
1991 return; 1991 return;
1992 Ostream &Str = Func->getContext()->getStrEmit(); 1992 Ostream &Str = Func->getContext()->getStrEmit();
1993 assert(getSrcSize() == 0); 1993 assert(getSrcSize() == 0);
1994 Str << "\t" 1994 Str << "\t"
1995 "vmrs" << getPredicate() << "\t" 1995 "vmrs" << getPredicate() << "\t"
1996 "APSR_nzcv" 1996 "APSR_nzcv"
1997 ", " 1997 ", "
1998 "FPSCR"; 1998 "FPSCR";
1999 } 1999 }
2000 2000
2001 void InstARM32Vmrs::emitIAS(const Cfg *Func) const {
2002 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
2003 Asm->vmrsAPSR_nzcv(getPredicate());
2004 assert(!Asm->needsTextFixup());
2005 }
2006
2001 void InstARM32Vmrs::dump(const Cfg *Func) const { 2007 void InstARM32Vmrs::dump(const Cfg *Func) const {
2002 if (!BuildDefs::dump()) 2008 if (!BuildDefs::dump())
2003 return; 2009 return;
2004 Ostream &Str = Func->getContext()->getStrDump(); 2010 Ostream &Str = Func->getContext()->getStrDump();
2005 Str << "APSR{n,z,v,c} = vmrs" << getPredicate() << "\t" 2011 Str << "APSR{n,z,v,c} = vmrs" << getPredicate() << "\t"
2006 "FPSCR{n,z,c,v}"; 2012 "FPSCR{n,z,c,v}";
2007 } 2013 }
2008 2014
2009 void InstARM32Vabs::emit(const Cfg *Func) const { 2015 void InstARM32Vabs::emit(const Cfg *Func) const {
2010 if (!BuildDefs::dump()) 2016 if (!BuildDefs::dump())
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
2297 2303
2298 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2304 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2299 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2305 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2300 2306
2301 template class InstARM32CmpLike<InstARM32::Cmn>; 2307 template class InstARM32CmpLike<InstARM32::Cmn>;
2302 template class InstARM32CmpLike<InstARM32::Cmp>; 2308 template class InstARM32CmpLike<InstARM32::Cmp>;
2303 template class InstARM32CmpLike<InstARM32::Tst>; 2309 template class InstARM32CmpLike<InstARM32::Tst>;
2304 2310
2305 } // end of namespace ARM32 2311 } // end of namespace ARM32
2306 } // end of namespace Ice 2312 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceInstARM32.h ('k') | tests_lit/assembler/arm32/vmrs.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698