Reid Spencer | 8ee16fb | 2007-03-14 23:07:24 +0000 | [diff] [blame] | 1 | ; PR1256 |
Reid Spencer | 90008f4 | 2007-04-15 10:07:55 +0000 | [diff] [blame] | 2 | ; RUN: llvm-upgrade < %s | grep {call void @f( i32 .tmp )} |
| 3 | ; RUN: llvm-upgrade < %s | grep {call void @g( i8 .tmp\.upgrd\.2 )} |
Reid Spencer | 8ee16fb | 2007-03-14 23:07:24 +0000 | [diff] [blame] | 4 | |
| 5 | target datalayout = "e-p:32:32" |
| 6 | target endian = little |
| 7 | target pointersize = 32 |
| 8 | target triple = "i686-pc-linux-gnu" |
| 9 | |
| 10 | implementation ; Functions: |
| 11 | |
| 12 | void %_Z4func() { |
| 13 | entry: |
| 14 | %tmp = add int 0, 0 |
| 15 | %tmp = add uint 1, 1 |
| 16 | %tmp = add ubyte 1, 2 |
| 17 | %tmp = add sbyte 2, 3 |
| 18 | call void %f (int %tmp) |
| 19 | call void %g (ubyte %tmp) |
| 20 | ret void |
| 21 | } |
| 22 | |
| 23 | declare void %f(int) |
| 24 | declare void %g(ubyte) |