blob: 26f66a782907792cc12e7914114e2b937781b552 [file] [log] [blame]
Mads Ager418d1ca2017-05-22 09:35:49 +02001// 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.NumericType;
7import com.android.tools.r8.ir.conversion.IRBuilder;
8public class DivLong extends Format23x {
9
10 public static final int OPCODE = 0x9e;
11 public static final String NAME = "DivLong";
12 public static final String SMALI_NAME = "div-long";
13
14 DivLong(int high, BytecodeStream stream) {
15 super(high, stream);
16 }
17
18 public DivLong(int dest, int left, int right) {
19 super(dest, left, right);
20 }
21
22 public String getName() {
23 return NAME;
24 }
25
26 public String getSmaliName() {
27 return SMALI_NAME;
28 }
29
30 public int getOpcode() {
31 return OPCODE;
32 }
33
34 @Override
35 public void buildIR(IRBuilder builder) {
36 builder.addDiv(NumericType.LONG, AA, BB, CC);
37 }
38
39 @Override
40 public boolean canThrow() {
41 return true;
42 }
43}