Skip to content

Commit

Permalink
Removed non-existing opcodes cge, cle.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlokhorst committed Feb 12, 2011
1 parent 2ddd405 commit c094d73
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions src/Language/Cil/Build.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ module Language.Cil.Build (
, call
, callvirt
, ceq
, cge
, cgt
, ckfinite
, cle
, clt
, dup
, div
Expand Down Expand Up @@ -221,11 +219,9 @@ call ccs p l t m ps = mdecl $ Call ccs p l t m ps
callvirt :: PrimitiveType -> AssemblyName -> TypeName -> MethodName -> [PrimitiveType] -> MethodDecl
callvirt p l t m ps = mdecl $ CallVirt p l t m ps

ceq, cge, cgt, cle, clt :: MethodDecl
ceq, cgt, clt :: MethodDecl
ceq = mdecl $ Ceq
cge = mdecl $ Cge
cgt = mdecl $ Cgt
cle = mdecl $ Cle
clt = mdecl $ Clt

ckfinite :: MethodDecl
Expand Down
2 changes: 0 additions & 2 deletions src/Language/Cil/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,8 @@ instance Pretty OpCode where
pr (CallVirt t a c m ps) = ("callvirt instance " ++) . prsp t . sp
. prCall a c m ps
pr (Ceq) = ("ceq" ++)
pr (Cge) = ("cge" ++)
pr (Cgt) = ("cgt" ++)
pr (Ckfinite) = ("ckfinite" ++)
pr (Cle) = ("cle" ++)
pr (Clt) = ("clt" ++)
pr (Div) = ("div" ++)
pr (Div_un) = ("div.un" ++)
Expand Down
2 changes: 0 additions & 2 deletions src/Language/Cil/Syntax.hs
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,8 @@ data OpCode
, paramTypes :: [PrimitiveType] -- ^ Types of the formal parameters of the method.
} -- ^ Pops /n/ values, calls specified virtual method, pushes return value. (where /n/ is the number of formal parameters of the method).
| Ceq -- ^ Pops 2 values, if they are equal, pushes 1 to stack; otherwise, pushes 0.
| Cge -- ^ Pops 2 values and compares them.
| Cgt -- ^ Pops 2 values and compares them.
| Ckfinite -- ^ Pops a float or double. Throws an ArithmeticException if the popped value is NaN or +/- infinity. Pushes the popped value.
| Cle -- ^ Pops 2 values and compares them.
| Clt -- ^ Pops 2 values and compares them.
| Dup -- ^ Pops 1 value, copies it, pushes the same value twise.
| Div -- ^ Pops 2 values, divides the first by the second, pushes the result.
Expand Down

0 comments on commit c094d73

Please sign in to comment.