Change these tests to feed the assembly files to opt directly, instead
[oota-llvm.git] / test / Transforms / DeadArgElim / 2007-12-20-ParamAttrs.ll
1 ; RUN: opt %s -deadargelim | llvm-dis > %t
2 ; RUN: cat %t | grep nounwind | count 2
3 ; RUN: cat %t | grep signext | count 2
4 ; RUN: cat %t | not grep inreg
5 ; RUN: cat %t | not grep zeroext
6 ; RUN: cat %t | not grep byval
7
8         %struct = type { }
9
10 @g = global i8 0
11
12 define internal i8 @foo(i8* inreg %p, i8 signext %y, ... ) zeroext nounwind {
13         store i8 %y, i8* @g
14         ret i8 0
15 }
16
17 define i32 @bar() {
18         %A = call i8(i8*, i8, ...)* @foo(i8* inreg null, i8 signext 1, %struct* byval null ) zeroext nounwind
19         ret i32 0
20 }