1target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" 2target triple = "x86_64-unknown-linux-gnu" 3; RUN: opt < %s -basicaa -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -bb-vectorize -S | FileCheck %s 4 5%struct.gsm_state.2.8.14.15.16.17.19.22.23.25.26.28.29.31.32.33.35.36.37.38.40.41.42.44.45.47.48.50.52.53.54.56.57.58.59.60.61.62.63.66.73.83.84.89.90.91.92.93.94.95.96.99.100.101.102.103.104.106.107.114.116.121.122.129.130.135.136.137.138.139.140.141.142.143.144.147.148.149.158.159.160.161.164.165.166.167.168.169.172.179.181.182.183.188.195.200.201.202.203.204.205.208.209.210.212.213.214.215.222.223.225.226.230.231.232.233.234.235.236.237.238.239.240.241.242.243.244.352 = type { [280 x i16], i16, i64, i32, [8 x i16], [2 x [8 x i16]], i16, i16, [9 x i16], i16, i8, i8 } 6 7define void @gsm_encode(%struct.gsm_state.2.8.14.15.16.17.19.22.23.25.26.28.29.31.32.33.35.36.37.38.40.41.42.44.45.47.48.50.52.53.54.56.57.58.59.60.61.62.63.66.73.83.84.89.90.91.92.93.94.95.96.99.100.101.102.103.104.106.107.114.116.121.122.129.130.135.136.137.138.139.140.141.142.143.144.147.148.149.158.159.160.161.164.165.166.167.168.169.172.179.181.182.183.188.195.200.201.202.203.204.205.208.209.210.212.213.214.215.222.223.225.226.230.231.232.233.234.235.236.237.238.239.240.241.242.243.244.352* %s, i16* %source, i8* %c) nounwind uwtable { 8entry: 9 %xmc = alloca [52 x i16], align 16 10 %arraydecay5 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 0 11 call void @Gsm_Coder(%struct.gsm_state.2.8.14.15.16.17.19.22.23.25.26.28.29.31.32.33.35.36.37.38.40.41.42.44.45.47.48.50.52.53.54.56.57.58.59.60.61.62.63.66.73.83.84.89.90.91.92.93.94.95.96.99.100.101.102.103.104.106.107.114.116.121.122.129.130.135.136.137.138.139.140.141.142.143.144.147.148.149.158.159.160.161.164.165.166.167.168.169.172.179.181.182.183.188.195.200.201.202.203.204.205.208.209.210.212.213.214.215.222.223.225.226.230.231.232.233.234.235.236.237.238.239.240.241.242.243.244.352* %s, i16* %source, i16* undef, i16* null, i16* undef, i16* undef, i16* undef, i16* %arraydecay5) nounwind 12 %incdec.ptr136 = getelementptr inbounds i8, i8* %c, i64 10 13 %incdec.ptr157 = getelementptr inbounds i8, i8* %c, i64 11 14 store i8 0, i8* %incdec.ptr136, align 1 15 %arrayidx162 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 11 16 %0 = load i16, i16* %arrayidx162, align 2 17 %conv1631 = trunc i16 %0 to i8 18 %and164 = shl i8 %conv1631, 3 19 %shl165 = and i8 %and164, 56 20 %incdec.ptr172 = getelementptr inbounds i8, i8* %c, i64 12 21 store i8 %shl165, i8* %incdec.ptr157, align 1 22 %1 = load i16, i16* inttoptr (i64 2 to i16*), align 2 23 %conv1742 = trunc i16 %1 to i8 24 %and175 = shl i8 %conv1742, 1 25 %incdec.ptr183 = getelementptr inbounds i8, i8* %c, i64 13 26 store i8 %and175, i8* %incdec.ptr172, align 1 27 %incdec.ptr199 = getelementptr inbounds i8, i8* %c, i64 14 28 store i8 0, i8* %incdec.ptr183, align 1 29 %arrayidx214 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 15 30 %incdec.ptr220 = getelementptr inbounds i8, i8* %c, i64 15 31 store i8 0, i8* %incdec.ptr199, align 1 32 %2 = load i16, i16* %arrayidx214, align 2 33 %conv2223 = trunc i16 %2 to i8 34 %and223 = shl i8 %conv2223, 6 35 %incdec.ptr235 = getelementptr inbounds i8, i8* %c, i64 16 36 store i8 %and223, i8* %incdec.ptr220, align 1 37 %arrayidx240 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 19 38 %3 = load i16, i16* %arrayidx240, align 2 39 %conv2414 = trunc i16 %3 to i8 40 %and242 = shl i8 %conv2414, 2 41 %shl243 = and i8 %and242, 28 42 %incdec.ptr251 = getelementptr inbounds i8, i8* %c, i64 17 43 store i8 %shl243, i8* %incdec.ptr235, align 1 44 %incdec.ptr272 = getelementptr inbounds i8, i8* %c, i64 18 45 store i8 0, i8* %incdec.ptr251, align 1 46 %arrayidx282 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 25 47 %4 = load i16, i16* %arrayidx282, align 2 48 %conv2835 = trunc i16 %4 to i8 49 %and284 = and i8 %conv2835, 7 50 %incdec.ptr287 = getelementptr inbounds i8, i8* %c, i64 19 51 store i8 %and284, i8* %incdec.ptr272, align 1 52 %incdec.ptr298 = getelementptr inbounds i8, i8* %c, i64 20 53 store i8 0, i8* %incdec.ptr287, align 1 54 %incdec.ptr314 = getelementptr inbounds i8, i8* %c, i64 21 55 store i8 0, i8* %incdec.ptr298, align 1 56 %arrayidx319 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 26 57 %5 = load i16, i16* %arrayidx319, align 4 58 %conv3206 = trunc i16 %5 to i8 59 %and321 = shl i8 %conv3206, 4 60 %shl322 = and i8 %and321, 112 61 %incdec.ptr335 = getelementptr inbounds i8, i8* %c, i64 22 62 store i8 %shl322, i8* %incdec.ptr314, align 1 63 %arrayidx340 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 29 64 %6 = load i16, i16* %arrayidx340, align 2 65 %conv3417 = trunc i16 %6 to i8 66 %and342 = shl i8 %conv3417, 3 67 %shl343 = and i8 %and342, 56 68 %incdec.ptr350 = getelementptr inbounds i8, i8* %c, i64 23 69 store i8 %shl343, i8* %incdec.ptr335, align 1 70 %incdec.ptr366 = getelementptr inbounds i8, i8* %c, i64 24 71 store i8 0, i8* %incdec.ptr350, align 1 72 %arrayidx381 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 36 73 %incdec.ptr387 = getelementptr inbounds i8, i8* %c, i64 25 74 store i8 0, i8* %incdec.ptr366, align 1 75 %7 = load i16, i16* %arrayidx381, align 8 76 %conv3898 = trunc i16 %7 to i8 77 %and390 = shl i8 %conv3898, 6 78 store i8 %and390, i8* %incdec.ptr387, align 1 79 unreachable 80; CHECK-LABEL: @gsm_encode( 81} 82 83declare void @Gsm_Coder(%struct.gsm_state.2.8.14.15.16.17.19.22.23.25.26.28.29.31.32.33.35.36.37.38.40.41.42.44.45.47.48.50.52.53.54.56.57.58.59.60.61.62.63.66.73.83.84.89.90.91.92.93.94.95.96.99.100.101.102.103.104.106.107.114.116.121.122.129.130.135.136.137.138.139.140.141.142.143.144.147.148.149.158.159.160.161.164.165.166.167.168.169.172.179.181.182.183.188.195.200.201.202.203.204.205.208.209.210.212.213.214.215.222.223.225.226.230.231.232.233.234.235.236.237.238.239.240.241.242.243.244.352*, i16*, i16*, i16*, i16*, i16*, i16*, i16*) 84 85declare void @llvm.trap() noreturn nounwind 86