Tanya Lattner | 3f7706b | 2004-11-07 06:08:43 +0000 | [diff] [blame^] | 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 | |
Chris Lattner | 0908309 | 2001-07-08 04:57:15 +0000 | [diff] [blame] | 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 | |