llvm.org GIT mirror llvm / 51e04da
new testacse for PR1384 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36774 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 30 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -instcombine -disable-output
1 ; PR1384
2
3 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
4 target triple = "i686-apple-darwin8"
5 %struct.CFRuntimeBase = type { i32, [4 x i8] }
6 %struct.CGColor = type opaque
7 %struct.CGColorSpace = type { %struct.CFRuntimeBase, i8, i8, i8, i32, i32, i32, %struct.CGColor*, float*, %struct.CGMD5Signature, %struct.CGMD5Signature*, [0 x %struct.CGColorSpaceDescriptor] }
8 %struct.CGColorSpaceCalibratedRGBData = type { [3 x float], [3 x float], [3 x float], [9 x float] }
9 %struct.CGColorSpaceDescriptor = type { %struct.CGColorSpaceCalibratedRGBData }
10 %struct.CGColorSpaceLabData = type { [3 x float], [3 x float], [4 x float] }
11 %struct.CGMD5Signature = type { [16 x i8], i8 }
12
13 declare fastcc %struct.CGColorSpace* @CGColorSpaceCreate(i32, i32)
14
15 declare void @llvm.memcpy.i32(i8*, i8*, i32, i32)
16
17 define %struct.CGColorSpace* @CGColorSpaceCreateLab(float* %whitePoint, float* %blackPoint, float* %range) {
18 entry:
19 %tmp17 = call fastcc %struct.CGColorSpace* @CGColorSpaceCreate( i32 5, i32 3 ) ; <%struct.CGColorSpace*> [#uses=2]
20 %tmp28 = getelementptr %struct.CGColorSpace* %tmp17, i32 0, i32 11 ; <[0 x %struct.CGColorSpaceDescriptor]*> [#uses=1]
21 %tmp29 = getelementptr [0 x %struct.CGColorSpaceDescriptor]* %tmp28, i32 0, i32 0 ; <%struct.CGColorSpaceDescriptor*> [#uses=1]
22 %tmp30 = getelementptr %struct.CGColorSpaceDescriptor* %tmp29, i32 0, i32 0 ; <%struct.CGColorSpaceCalibratedRGBData*> [#uses=1]
23 %tmp3031 = bitcast %struct.CGColorSpaceCalibratedRGBData* %tmp30 to %struct.CGColorSpaceLabData* ; <%struct.CGColorSpaceLabData*> [#uses=1]
24 %tmp45 = getelementptr %struct.CGColorSpaceLabData* %tmp3031, i32 0, i32 2 ; <[4 x float]*> [#uses=1]
25 %tmp46 = getelementptr [4 x float]* %tmp45, i32 0, i32 0 ; [#uses=1]
26 %tmp4648 = bitcast float* %tmp46 to i8* ; [#uses=1]
27 call void @llvm.memcpy.i32( i8* %tmp4648, i8* null, i32 16, i32 4 )
28 ret %struct.CGColorSpace* %tmp17
29 }