Indentations break the feed.
[SquirrelJME.git] / modules / cldc-compact / src / test / resources / lang / bytecode / TestDupXTwoJI.j
blobce5f29fa74017897a9da43f216a255a7830675cf
1 ; -*- Mode: Jasmin; indent-tabs-mode: t; tab-width: 4 -*-
2 ; ---------------------------------------------------------------------------
3 ; SquirrelJME
4 ; Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 ; ---------------------------------------------------------------------------
6 ; SquirrelJME is under the Mozilla Public License Version 2.0.
7 ; See license.mkd for licensing and copyright information.
8 ; ---------------------------------------------------------------------------
10 .class public lang/bytecode/TestDupXTwoJI
11 .super net/multiphasicapps/tac/TestInteger
13 .method public <init>()V
14 aload 0
15 invokenonvirtual net/multiphasicapps/tac/TestInteger/<init>()V
16 return
17 .end method
19 .method public test()I
20 .limit stack 5
22 ; b
23 sipush 1234
24 i2l
26 ; a
27 sipush 3000
29 ; J b, I a -> I a, J b, I a
30 dup_x2
32 ; I a -> J a [I a, J b, J a]
33 i2l
34 ; J b + J a -> x [I a, J x]
35 ladd
37 ; J x -> I x [I a, I x]
38 l2i
40 ; I a + I x -> I y [I y]
41 iadd
43 ireturn
44 .end method