1 ; RUN: llvm-as < %s | llc -fast-isel -fast-isel-abort -march=x86 -mattr=sse2
3 ; This tests very minimal fast-isel functionality.
5 define i32* @foo(i32* %p, i32* %q, i32** %z) nounwind {
20 %t7 = getelementptr i32* %y, i32 1
21 %t8 = getelementptr i32* %t7, i32 %t6
28 define double @bar(double* %p, double* %q) nounwind {
35 %t0 = add double %r, %s
36 %t1 = mul double %t0, %s
37 %t2 = sub double %t1, %s
38 %t3 = add double %t2, 707.0
45 define i32 @cast() nounwind {
47 %tmp2 = bitcast i32 0 to i32
51 define i1 @ptrtoint_i1(i8* %p) nounwind {
52 %t = ptrtoint i8* %p to i1
55 define i8* @inttoptr_i1(i1 %p) nounwind {
56 %t = inttoptr i1 %p to i8*
59 define i32 @ptrtoint_i32(i8* %p) nounwind {
60 %t = ptrtoint i8* %p to i32
63 define i8* @inttoptr_i32(i32 %p) nounwind {
64 %t = inttoptr i32 %p to i8*