1 ; RUN: llc < %s -fast-isel -fast-isel-abort -march=x86 -mattr=sse2
2 ; RUN: llc < %s -fast-isel -fast-isel-abort -march=x86-64
4 ; This tests very minimal fast-isel functionality.
6 define i32* @foo(i32* %p, i32* %q, i32** %z) nounwind {
21 %t7 = getelementptr i32* %y, i32 1
22 %t8 = getelementptr i32* %t7, i32 %t6
29 define double @bar(double* %p, double* %q) nounwind {
36 %t0 = fadd double %r, %s
37 %t1 = fmul double %t0, %s
38 %t2 = fsub double %t1, %s
39 %t3 = fadd double %t2, 707.0
46 define i32 @cast() nounwind {
48 %tmp2 = bitcast i32 0 to i32
52 define void @ptrtoint_i1(i8* %p, i1* %q) nounwind {
53 %t = ptrtoint i8* %p to i1
57 define i8* @inttoptr_i1(i1 %p) nounwind {
58 %t = inttoptr i1 %p to i8*
61 define i32 @ptrtoint_i32(i8* %p) nounwind {
62 %t = ptrtoint i8* %p to i32
65 define i8* @inttoptr_i32(i32 %p) nounwind {
66 %t = inttoptr i32 %p to i8*
70 define i8 @trunc_i32_i8(i32 %x) signext nounwind {
71 %tmp1 = trunc i32 %x to i8
75 define i8 @trunc_i16_i8(i16 signext %x) signext nounwind {
76 %tmp1 = trunc i16 %x to i8
80 define i8 @shl_i8(i8 %a, i8 %c) nounwind {
85 define i8 @mul_i8(i8 %a) nounwind {
90 define void @load_store_i1(i1* %p, i1* %q) nounwind {