blob: d1efa1c0e845d56ded69299a59654d73a1c5b0d3 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<hlvm xmlns="http://hlvm.org/src/hlvm/Reader/XML/HLVM.rng" pubid="http://hlvm.org/src/hlvm/test/xml2xml/unaryarithmetic.hlx">
<bundle id="unaryarithmetic">
<constant id="one" type="u32">
<dec>1</dec>
</constant>
<constant id="result" type="s32">
<dec>0</dec>
</constant>
<program id="unaryarithmetic">
<block>
<autovar id="v1" type="u32"/>
<autovar id="v2" type="u32"/>
<preinc>
<get id="v1"/>
</preinc>
<postinc>
<get id="v1"/>
</postinc>
<postdec>
<get id="v2"/>
</postdec>
<predec>
<get id="v2"/>
</predec>
<neg>
<get id="v1"/>
</neg>
<cmpl>
<get id="v2"/>
</cmpl>
<add>
<get id="v1"/>
<get id="one"/>
</add>
<sub>
<get id="v1"/>
<get id="one"/>
</sub>
<mul>
<get id="v1"/>
<get id="v2"/>
</mul>
<div>
<get id="v1"/>
<get id="v2"/>
</div>
<mod>
<get id="v1"/>
<get id="v2"/>
</mod>
<band>
<get id="v1"/>
<get id="v2"/>
</band>
<bor>
<get id="v1"/>
<get id="v2"/>
</bor>
<bxor>
<get id="v1"/>
<get id="v2"/>
</bxor>
<bnor>
<get id="v1"/>
<get id="v2"/>
</bnor>
<result>
<get id="result"/>
</result>
<ret/>
</block>
</program>
</bundle>
</hlvm>