[AVX512] Bring back vector-shuffle lowering support through broadcasts
[oota-llvm.git] / test / CodeGen / X86 / 2006-11-12-CSRetCC.ll
1 ; RUN: llc < %s -march=x86 | FileCheck %s
2
3 target triple = "i686-pc-linux-gnu"
4 @str = internal constant [9 x i8] c"%f+%f*i\0A\00"              ; <[9 x i8]*> [#uses=1]
5
6 define i32 @main() {
7 ; CHECK-LABEL: main:
8 ; CHECK-NOT: ret
9 ; CHECK: subl $4, %{{.*}}
10 ; CHECK: ret
11
12 entry:
13         %retval = alloca i32, align 4           ; <i32*> [#uses=1]
14         %tmp = alloca { double, double }, align 16              ; <{ double, double }*> [#uses=4]
15         %tmp1 = alloca { double, double }, align 16             ; <{ double, double }*> [#uses=4]
16         %tmp2 = alloca { double, double }, align 16             ; <{ double, double }*> [#uses=3]
17         %pi = alloca double, align 8            ; <double*> [#uses=2]
18         %z = alloca { double, double }, align 16                ; <{ double, double }*> [#uses=4]
19         %"alloca point" = bitcast i32 0 to i32          ; <i32> [#uses=0]
20         store double 0x400921FB54442D18, double* %pi
21         %tmp.upgrd.1 = load double* %pi         ; <double> [#uses=1]
22         %real = getelementptr { double, double }* %tmp1, i64 0, i32 0           ; <double*> [#uses=1]
23         store double 0.000000e+00, double* %real
24         %real3 = getelementptr { double, double }* %tmp1, i64 0, i32 1          ; <double*> [#uses=1]
25         store double %tmp.upgrd.1, double* %real3
26         %tmp.upgrd.2 = getelementptr { double, double }* %tmp, i64 0, i32 0             ; <double*> [#uses=1]
27         %tmp4 = getelementptr { double, double }* %tmp1, i64 0, i32 0           ; <double*> [#uses=1]
28         %tmp5 = load double* %tmp4              ; <double> [#uses=1]
29         store double %tmp5, double* %tmp.upgrd.2
30         %tmp6 = getelementptr { double, double }* %tmp, i64 0, i32 1            ; <double*> [#uses=1]
31         %tmp7 = getelementptr { double, double }* %tmp1, i64 0, i32 1           ; <double*> [#uses=1]
32         %tmp8 = load double* %tmp7              ; <double> [#uses=1]
33         store double %tmp8, double* %tmp6
34         %tmp.upgrd.3 = bitcast { double, double }* %tmp to { i64, i64 }*                ; <{ i64, i64 }*> [#uses=1]
35         %tmp.upgrd.4 = getelementptr { i64, i64 }* %tmp.upgrd.3, i64 0, i32 0           ; <i64*> [#uses=1]
36         %tmp.upgrd.5 = load i64* %tmp.upgrd.4           ; <i64> [#uses=1]
37         %tmp9 = bitcast { double, double }* %tmp to { i64, i64 }*               ; <{ i64, i64 }*> [#uses=1]
38         %tmp10 = getelementptr { i64, i64 }* %tmp9, i64 0, i32 1                ; <i64*> [#uses=1]
39         %tmp11 = load i64* %tmp10               ; <i64> [#uses=1]
40         call void @cexp( { double, double }* sret  %tmp2, i64 %tmp.upgrd.5, i64 %tmp11 )
41         %tmp12 = getelementptr { double, double }* %z, i64 0, i32 0             ; <double*> [#uses=1]
42         %tmp13 = getelementptr { double, double }* %tmp2, i64 0, i32 0          ; <double*> [#uses=1]
43         %tmp14 = load double* %tmp13            ; <double> [#uses=1]
44         store double %tmp14, double* %tmp12
45         %tmp15 = getelementptr { double, double }* %z, i64 0, i32 1             ; <double*> [#uses=1]
46         %tmp16 = getelementptr { double, double }* %tmp2, i64 0, i32 1          ; <double*> [#uses=1]
47         %tmp17 = load double* %tmp16            ; <double> [#uses=1]
48         store double %tmp17, double* %tmp15
49         %tmp18 = getelementptr { double, double }* %z, i64 0, i32 1             ; <double*> [#uses=1]
50         %tmp19 = load double* %tmp18            ; <double> [#uses=1]
51         %tmp20 = getelementptr { double, double }* %z, i64 0, i32 0             ; <double*> [#uses=1]
52         %tmp21 = load double* %tmp20            ; <double> [#uses=1]
53         %tmp.upgrd.6 = getelementptr [9 x i8]* @str, i32 0, i64 0               ; <i8*> [#uses=1]
54         %tmp.upgrd.7 = call i32 (i8*, ...)* @printf( i8* %tmp.upgrd.6, double %tmp21, double %tmp19 )           ; <i32> [#uses=0]
55         br label %finish
56 finish:
57         %retval.upgrd.8 = load i32* %retval             ; <i32> [#uses=1]
58         ret i32 %retval.upgrd.8
59 }
60
61 declare void @cexp({ double, double }* sret , i64, i64)
62
63 declare i32 @printf(i8*, ...)
64