Added RUN lines and dejagnu support for Feature dir.
[oota-llvm.git] / test / Feature / casttest.ll
1 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
4
5 implementation
6
7 short "FunFunc"(long %x, sbyte %z)
8 begin
9 bb0:            ;;<label>
10         %cast110 = cast sbyte %z to short       ;;<short>:(signed operands)
11         %cast10 = cast long %x to short         ;;<short>
12         %reg109 = add short %cast110, %cast10   ;;<short>
13         ret short %reg109                       ;;<void>
14 end
15