1 ; RUN: llc < %s -march=x86-64 -mattr=+sse3,+sse41 -stats |& grep {8 machine-licm} 2 ; RUN: llc < %s -march=x86-64 -mattr=+sse3,+sse41 | FileCheck %s 3 ; rdar://6627786 4 ; rdar://7792037 5 6 target triple = "x86_64-apple-darwin10.0" 7 %struct.Key = type { i64 } 8 %struct.__Rec = type opaque 9 %struct.__vv = type { } 10 11 define %struct.__vv* @t(%struct.Key* %desc, i64 %p) nounwind ssp { 12 entry: 13 br label %bb4 14 15 bb4: ; preds = %bb.i, %bb26, %bb4, %entry 16 ; CHECK: %bb4 17 ; CHECK: xorb 18 ; CHECK: callq 19 ; CHECK: movq 20 ; CHECK: xorl 21 ; CHECK: xorb 22 23 %0 = call i32 (...)* @xxGetOffsetForCode(i32 undef) nounwind ; <i32> [#uses=0] 24 %ins = or i64 %p, 2097152 ; <i64> [#uses=1] 25 %1 = call i32 (...)* @xxCalculateMidType(%struct.Key* %desc, i32 0) nounwind ; <i32> [#uses=1] 26 %cond = icmp eq i32 %1, 1 ; <i1> [#uses=1] 27 br i1 %cond, label %bb26, label %bb4 28 29 bb26: ; preds = %bb4 30 %2 = and i64 %ins, 15728640 ; <i64> [#uses=1] 31 %cond.i = icmp eq i64 %2, 1048576 ; <i1> [#uses=1] 32 br i1 %cond.i, label %bb.i, label %bb4 33 34 bb.i: ; preds = %bb26 35 %3 = load i32* null, align 4 ; <i32> [#uses=1] 36 %4 = uitofp i32 %3 to float ; <float> [#uses=1] 37 %.sum13.i = add i64 0, 4 ; <i64> [#uses=1] 38 %5 = getelementptr i8* null, i64 %.sum13.i ; <i8*> [#uses=1] 39 %6 = bitcast i8* %5 to i32* ; <i32*> [#uses=1] 40 %7 = load i32* %6, align 4 ; <i32> [#uses=1] 41 %8 = uitofp i32 %7 to float ; <float> [#uses=1] 42 %.sum.i = add i64 0, 8 ; <i64> [#uses=1] 43 %9 = getelementptr i8* null, i64 %.sum.i ; <i8*> [#uses=1] 44 %10 = bitcast i8* %9 to i32* ; <i32*> [#uses=1] 45 %11 = load i32* %10, align 4 ; <i32> [#uses=1] 46 %12 = uitofp i32 %11 to float ; <float> [#uses=1] 47 %13 = insertelement <4 x float> undef, float %4, i32 0 ; <<4 x float>> [#uses=1] 48 %14 = insertelement <4 x float> %13, float %8, i32 1 ; <<4 x float>> [#uses=1] 49 %15 = insertelement <4 x float> %14, float %12, i32 2 ; <<4 x float>> [#uses=1] 50 store <4 x float> %15, <4 x float>* null, align 16 51 br label %bb4 52 } 53 54 declare i32 @xxGetOffsetForCode(...) 55 56 declare i32 @xxCalculateMidType(...) 57