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

Side by Side Diff: src/IceTargetLoweringMIPS32.h

Issue 2394773004: Subzero, MIPS32: Fix conditional mov instructions (Closed)
Patch Set: Fix typo in test file Created 4 years, 2 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/IceInstMIPS32.cpp ('k') | tests_lit/assembler/mips32/encoding_intrinsics.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/IceTargetLoweringMIPS32.h - MIPS32 lowering ---*- C++-*-===// 1 //===- subzero/src/IceTargetLoweringMIPS32.h - MIPS32 lowering ---*- C++-*-===//
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 } 358 }
359 359
360 void _mov_d(Variable *Dest, Variable *Src) { 360 void _mov_d(Variable *Dest, Variable *Src) {
361 Context.insert<InstMIPS32Mov_d>(Dest, Src); 361 Context.insert<InstMIPS32Mov_d>(Dest, Src);
362 } 362 }
363 363
364 void _mov_s(Variable *Dest, Variable *Src) { 364 void _mov_s(Variable *Dest, Variable *Src) {
365 Context.insert<InstMIPS32Mov_s>(Dest, Src); 365 Context.insert<InstMIPS32Mov_s>(Dest, Src);
366 } 366 }
367 367
368 void _movf(Variable *Src0, Variable *Src1, Operand *FCC) { 368 void _movf(Variable *Dest, Variable *Src0, Operand *FCC) {
369 auto *Instr = Context.insert<InstMIPS32Movf>(Src0, Src1, FCC); 369 Context.insert<InstMIPS32Movf>(Dest, Src0, FCC)->setDestRedefined();
370 Instr->setDestRedefined();
371 } 370 }
372 371
373 void _movn(Variable *Dest, Variable *Src0, Variable *Src1) { 372 void _movn(Variable *Dest, Variable *Src0, Variable *Src1) {
374 Context.insert<InstMIPS32Movn>(Dest, Src0, Src1); 373 Context.insert<InstMIPS32Movn>(Dest, Src0, Src1)->setDestRedefined();
375 } 374 }
376 375
377 void _movn_d(Variable *Dest, Variable *Src0, Variable *Src1) { 376 void _movn_d(Variable *Dest, Variable *Src0, Variable *Src1) {
378 Context.insert<InstMIPS32Movn_d>(Dest, Src0, Src1); 377 Context.insert<InstMIPS32Movn_d>(Dest, Src0, Src1)->setDestRedefined();
378 }
Jim Stichnoth 2016/10/05 17:45:11 Indentation of this line is wrong. It is fixed au
379
380 void _movn_s(Variable *Dest, Variable *Src0, Variable *Src1) {
381 Context.insert<InstMIPS32Movn_s>(Dest, Src0, Src1)->setDestRedefined();
379 } 382 }
380 383
381 void _movn_s(Variable *Dest, Variable *Src0, Variable *Src1) { 384 void _movt(Variable *Dest, Variable *Src0, Operand *FCC) {
382 Context.insert<InstMIPS32Movn_s>(Dest, Src0, Src1); 385 Context.insert<InstMIPS32Movt>(Dest, Src0, FCC)->setDestRedefined();
383 }
384
385 void _movt(Variable *Src0, Variable *Src1, Operand *FCC) {
386 auto *Instr = Context.insert<InstMIPS32Movt>(Src0, Src1, FCC);
387 Instr->setDestRedefined();
388 } 386 }
389 387
390 void _movz(Variable *Dest, Variable *Src0, Variable *Src1) { 388 void _movz(Variable *Dest, Variable *Src0, Variable *Src1) {
391 Context.insert<InstMIPS32Movz>(Dest, Src0, Src1); 389 Context.insert<InstMIPS32Movz>(Dest, Src0, Src1)->setDestRedefined();
392 } 390 }
393 391
394 void _movz_d(Variable *Dest, Variable *Src0, Variable *Src1) { 392 void _movz_d(Variable *Dest, Variable *Src0, Variable *Src1) {
395 Context.insert<InstMIPS32Movz_d>(Dest, Src0, Src1); 393 Context.insert<InstMIPS32Movz_d>(Dest, Src0, Src1)->setDestRedefined();
396 } 394 }
397 395
398 void _movz_s(Variable *Dest, Variable *Src0, Variable *Src1) { 396 void _movz_s(Variable *Dest, Variable *Src0, Variable *Src1) {
399 Context.insert<InstMIPS32Movz_s>(Dest, Src0, Src1); 397 Context.insert<InstMIPS32Movz_s>(Dest, Src0, Src1)->setDestRedefined();
400 } 398 }
401 399
402 void _mtc1(Variable *Dest, Variable *Src) { 400 void _mtc1(Variable *Dest, Variable *Src) {
403 Context.insert<InstMIPS32Mtc1>(Dest, Src); 401 Context.insert<InstMIPS32Mtc1>(Dest, Src);
404 } 402 }
405 403
406 void _mthi(Variable *Dest, Operand *Src) { 404 void _mthi(Variable *Dest, Operand *Src) {
407 Context.insert<InstMIPS32Mthi>(Dest, Src); 405 Context.insert<InstMIPS32Mthi>(Dest, Src);
408 } 406 }
409 407
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 explicit TargetHeaderMIPS32(GlobalContext *Ctx); 868 explicit TargetHeaderMIPS32(GlobalContext *Ctx);
871 869
872 private: 870 private:
873 ~TargetHeaderMIPS32() = default; 871 ~TargetHeaderMIPS32() = default;
874 }; 872 };
875 873
876 } // end of namespace MIPS32 874 } // end of namespace MIPS32
877 } // end of namespace Ice 875 } // end of namespace Ice
878 876
879 #endif // SUBZERO_SRC_ICETARGETLOWERINGMIPS32_H 877 #endif // SUBZERO_SRC_ICETARGETLOWERINGMIPS32_H
OLDNEW
« no previous file with comments | « src/IceInstMIPS32.cpp ('k') | tests_lit/assembler/mips32/encoding_intrinsics.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698