• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4 package com.android.tools.r8.code;
5 
6 import com.android.tools.r8.ir.code.Cmp.Bias;
7 import com.android.tools.r8.ir.code.NumericType;
8 import com.android.tools.r8.ir.conversion.IRBuilder;
9 
10 public class CmplFloat extends Format23x {
11 
12   public static final int OPCODE = 0x2d;
13   public static final String NAME = "CmplFloat";
14   public static final String SMALI_NAME = "cmpl-float";
15 
CmplFloat(int high, BytecodeStream stream)16   CmplFloat(int high, BytecodeStream stream) {
17     super(high, stream);
18   }
19 
CmplFloat(int dest, int left, int right)20   public CmplFloat(int dest, int left, int right) {
21     super(dest, left, right);
22   }
23 
getName()24   public String getName() {
25     return NAME;
26   }
27 
getSmaliName()28   public String getSmaliName() {
29     return SMALI_NAME;
30   }
31 
getOpcode()32   public int getOpcode() {
33     return OPCODE;
34   }
35 
36   @Override
buildIR(IRBuilder builder)37   public void buildIR(IRBuilder builder) {
38     builder.addCmp(NumericType.FLOAT, Bias.LT, AA, BB, CC);
39   }
40 }
41