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.
4package com.android.tools.r8.code;
5
6import com.android.tools.r8.ir.code.Cmp.Bias;
7import com.android.tools.r8.ir.code.NumericType;
8import com.android.tools.r8.ir.conversion.IRBuilder;
9
10public class CmpgFloat extends Format23x {
11
12  public static final int OPCODE = 0x2e;
13  public static final String NAME = "CmpgFloat";
14  public static final String SMALI_NAME = "cmpg-float";
15
16  CmpgFloat(int high, BytecodeStream stream) {
17    super(high, stream);
18  }
19
20  public CmpgFloat(int dest, int left, int right) {
21    super(dest, left, right);
22  }
23
24  public String getName() {
25    return NAME;
26  }
27
28  public String getSmaliName() {
29    return SMALI_NAME;
30  }
31
32  public int getOpcode() {
33    return OPCODE;
34  }
35
36  @Override
37  public void buildIR(IRBuilder builder) {
38    builder.addCmp(NumericType.FLOAT, Bias.GT, AA, BB, CC);
39  }
40}
41