1; RUN: opt < %s -slp-vectorizer -S -mtriple=i386-pc-linux 2 3target 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-f80:32:32-n8:16:32-S128" 4target triple = "i386-pc-linux" 5 6; Function Attrs: nounwind 7define i32 @_Z16adjustFixupValueyj(i64 %Value, i32 %Kind) { 8entry: 9 %extract.t = trunc i64 %Value to i32 10 %extract = lshr i64 %Value, 12 11 %extract.t6 = trunc i64 %extract to i32 12 switch i32 %Kind, label %sw.default [ 13 i32 0, label %return 14 i32 1, label %return 15 i32 129, label %sw.bb1 16 i32 130, label %sw.bb2 17 ] 18 19sw.default: ; preds = %entry 20 call void @_Z25llvm_unreachable_internalv() 21 unreachable 22 23sw.bb1: ; preds = %entry 24 %shr = lshr i64 %Value, 16 25 %extract.t5 = trunc i64 %shr to i32 26 %extract7 = lshr i64 %Value, 28 27 %extract.t8 = trunc i64 %extract7 to i32 28 br label %sw.bb2 29 30sw.bb2: ; preds = %sw.bb1, %entry 31 %Value.addr.0.off0 = phi i32 [ %extract.t, %entry ], [ %extract.t5, %sw.bb1 ] 32 %Value.addr.0.off12 = phi i32 [ %extract.t6, %entry ], [ %extract.t8, %sw.bb1 ] 33 %conv6 = and i32 %Value.addr.0.off0, 4095 34 %conv4 = shl i32 %Value.addr.0.off12, 16 35 %shl = and i32 %conv4, 983040 36 %or = or i32 %shl, %conv6 37 %or11 = or i32 %or, 8388608 38 br label %return 39 40return: ; preds = %sw.bb2, %entry, %entry 41 %retval.0 = phi i32 [ %or11, %sw.bb2 ], [ %extract.t, %entry ], [ %extract.t, %entry ] 42 ret i32 %retval.0 43} 44 45; Function Attrs: noreturn 46declare void @_Z25llvm_unreachable_internalv() 47 48