OSDN Git Service

92f54675b72bfa53b4ce320cbcf4accd8da93435
[android-x86/external-llvm.git] / test / CodeGen / SystemZ / 2009-07-10-BadIncomingArgOffset.ll
1 ; RUN: llc < %s | FileCheck %s
2 ; RUN: llc < %s -regalloc=basic | FileCheck %s
3
4 target datalayout = "E-p:64:64:64-i8:8:16-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-a0:16:16"
5 target triple = "s390x-ibm-linux"
6
7 declare void @rdft(i32 signext, i32 signext, double*, i32* nocapture, double*) nounwind
8
9 declare double @mp_mul_d2i_test(i32 signext, i32 signext, double* nocapture) nounwind
10
11 define void @mp_mul_radix_test_bb3(i32 %radix, i32 %nfft, double* %tmpfft, i32* %ip, double* %w, double* %arrayidx44.reload, double* %call.out) nounwind {
12 ; CHECK: lg %r{{[0-9]+}}, 328(%r15)
13
14 newFuncRoot:
15         br label %bb3
16
17 bb4.exitStub:           ; preds = %bb3
18         store double %call, double* %call.out
19         ret void
20
21 bb3:            ; preds = %newFuncRoot
22         tail call void @rdft(i32 signext %nfft, i32 signext -1, double* %arrayidx44.reload, i32* %ip, double* %w) nounwind
23         %call = tail call double @mp_mul_d2i_test(i32 signext %radix, i32 signext %nfft, double* %tmpfft)               ; <double> [#uses=1]
24         br label %bb4.exitStub
25 }