blob: 5a1eaa2d4ce9c8a083274ae75de9cdec4c87f056 [file] [log] [blame]
Reid Spencer8ee16fb2007-03-14 23:07:24 +00001; PR1256
2; RUN: llvm-upgrade < %s | grep 'call void @f( i32 .tmp )'
3; RUN: llvm-upgrade < %s | grep 'call void @g( i8 .tmp\.upgrd\.2 )'
4
5target datalayout = "e-p:32:32"
6target endian = little
7target pointersize = 32
8target triple = "i686-pc-linux-gnu"
9
10implementation ; Functions:
11
12void %_Z4func() {
13entry:
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
23declare void %f(int)
24declare void %g(ubyte)