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

Side by Side Diff: src/IceTargetLoweringARM32.cpp

Issue 1657353002: Add VAND to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. 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.cpp ('k') | src/IceTypes.h » ('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/IceTargetLoweringARM32.cpp - ARM32 lowering ------------===// 1 //===- subzero/src/IceTargetLoweringARM32.cpp - ARM32 lowering ------------===//
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 2944 matching lines...) Expand 10 before | Expand all | Expand 10 after
2955 if (Srcs.hasConstOperand()) { 2955 if (Srcs.hasConstOperand()) {
2956 if (!Srcs.immediateIsFlexEncodable() && 2956 if (!Srcs.immediateIsFlexEncodable() &&
2957 Srcs.invertedImmediateIsFlexEncodable()) { 2957 Srcs.invertedImmediateIsFlexEncodable()) {
2958 Variable *Src0R = Srcs.src0R(this); 2958 Variable *Src0R = Srcs.src0R(this);
2959 Operand *Src1F = Srcs.invertedSrc1F(this); 2959 Operand *Src1F = Srcs.invertedSrc1F(this);
2960 _bic(T, Src0R, Src1F); 2960 _bic(T, Src0R, Src1F);
2961 _mov(Dest, T); 2961 _mov(Dest, T);
2962 return; 2962 return;
2963 } 2963 }
2964 } 2964 }
2965 assert(isIntegerType(DestTy));
2965 Variable *Src0R = Srcs.src0R(this); 2966 Variable *Src0R = Srcs.src0R(this);
2966 if (isVectorType(DestTy)) { 2967 if (isVectorType(DestTy)) {
2967 Variable *Src1R = legalizeToReg(Src1); 2968 Variable *Src1R = legalizeToReg(Src1);
2968 _vand(T, Src0R, Src1R); 2969 _vand(T, Src0R, Src1R);
2969 } else { 2970 } else {
2970 Operand *Src1RF = Srcs.src1RF(this); 2971 Operand *Src1RF = Srcs.src1RF(this);
2971 _and(T, Src0R, Src1RF); 2972 _and(T, Src0R, Src1RF);
2972 } 2973 }
2973 _mov(Dest, T); 2974 _mov(Dest, T);
2974 return; 2975 return;
(...skipping 3545 matching lines...) Expand 10 before | Expand all | Expand 10 after
6520 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n"; 6521 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n";
6521 } 6522 }
6522 6523
6523 llvm::SmallBitVector TargetARM32::TypeToRegisterSet[RegARM32::RCARM32_NUM]; 6524 llvm::SmallBitVector TargetARM32::TypeToRegisterSet[RegARM32::RCARM32_NUM];
6524 llvm::SmallBitVector 6525 llvm::SmallBitVector
6525 TargetARM32::TypeToRegisterSetUnfiltered[RegARM32::RCARM32_NUM]; 6526 TargetARM32::TypeToRegisterSetUnfiltered[RegARM32::RCARM32_NUM];
6526 llvm::SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM]; 6527 llvm::SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM];
6527 6528
6528 } // end of namespace ARM32 6529 } // end of namespace ARM32
6529 } // end of namespace Ice 6530 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceInstARM32.cpp ('k') | src/IceTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698