sh-rec2.ll 6.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. target 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"
  2. target 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. %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 }
  5. define 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 {
  6. entry:
  7. %xmc = alloca [52 x i16], align 16
  8. %arraydecay5 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 0
  9. 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
  10. %incdec.ptr136 = getelementptr inbounds i8, i8* %c, i64 10
  11. %incdec.ptr157 = getelementptr inbounds i8, i8* %c, i64 11
  12. store i8 0, i8* %incdec.ptr136, align 1
  13. %arrayidx162 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 11
  14. %0 = load i16, i16* %arrayidx162, align 2
  15. %conv1631 = trunc i16 %0 to i8
  16. %and164 = shl i8 %conv1631, 3
  17. %shl165 = and i8 %and164, 56
  18. %incdec.ptr172 = getelementptr inbounds i8, i8* %c, i64 12
  19. store i8 %shl165, i8* %incdec.ptr157, align 1
  20. %1 = load i16, i16* inttoptr (i64 2 to i16*), align 2
  21. %conv1742 = trunc i16 %1 to i8
  22. %and175 = shl i8 %conv1742, 1
  23. %incdec.ptr183 = getelementptr inbounds i8, i8* %c, i64 13
  24. store i8 %and175, i8* %incdec.ptr172, align 1
  25. %incdec.ptr199 = getelementptr inbounds i8, i8* %c, i64 14
  26. store i8 0, i8* %incdec.ptr183, align 1
  27. %arrayidx214 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 15
  28. %incdec.ptr220 = getelementptr inbounds i8, i8* %c, i64 15
  29. store i8 0, i8* %incdec.ptr199, align 1
  30. %2 = load i16, i16* %arrayidx214, align 2
  31. %conv2223 = trunc i16 %2 to i8
  32. %and223 = shl i8 %conv2223, 6
  33. %incdec.ptr235 = getelementptr inbounds i8, i8* %c, i64 16
  34. store i8 %and223, i8* %incdec.ptr220, align 1
  35. %arrayidx240 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 19
  36. %3 = load i16, i16* %arrayidx240, align 2
  37. %conv2414 = trunc i16 %3 to i8
  38. %and242 = shl i8 %conv2414, 2
  39. %shl243 = and i8 %and242, 28
  40. %incdec.ptr251 = getelementptr inbounds i8, i8* %c, i64 17
  41. store i8 %shl243, i8* %incdec.ptr235, align 1
  42. %incdec.ptr272 = getelementptr inbounds i8, i8* %c, i64 18
  43. store i8 0, i8* %incdec.ptr251, align 1
  44. %arrayidx282 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 25
  45. %4 = load i16, i16* %arrayidx282, align 2
  46. %conv2835 = trunc i16 %4 to i8
  47. %and284 = and i8 %conv2835, 7
  48. %incdec.ptr287 = getelementptr inbounds i8, i8* %c, i64 19
  49. store i8 %and284, i8* %incdec.ptr272, align 1
  50. %incdec.ptr298 = getelementptr inbounds i8, i8* %c, i64 20
  51. store i8 0, i8* %incdec.ptr287, align 1
  52. %incdec.ptr314 = getelementptr inbounds i8, i8* %c, i64 21
  53. store i8 0, i8* %incdec.ptr298, align 1
  54. %arrayidx319 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 26
  55. %5 = load i16, i16* %arrayidx319, align 4
  56. %conv3206 = trunc i16 %5 to i8
  57. %and321 = shl i8 %conv3206, 4
  58. %shl322 = and i8 %and321, 112
  59. %incdec.ptr335 = getelementptr inbounds i8, i8* %c, i64 22
  60. store i8 %shl322, i8* %incdec.ptr314, align 1
  61. %arrayidx340 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 29
  62. %6 = load i16, i16* %arrayidx340, align 2
  63. %conv3417 = trunc i16 %6 to i8
  64. %and342 = shl i8 %conv3417, 3
  65. %shl343 = and i8 %and342, 56
  66. %incdec.ptr350 = getelementptr inbounds i8, i8* %c, i64 23
  67. store i8 %shl343, i8* %incdec.ptr335, align 1
  68. %incdec.ptr366 = getelementptr inbounds i8, i8* %c, i64 24
  69. store i8 0, i8* %incdec.ptr350, align 1
  70. %arrayidx381 = getelementptr inbounds [52 x i16], [52 x i16]* %xmc, i64 0, i64 36
  71. %incdec.ptr387 = getelementptr inbounds i8, i8* %c, i64 25
  72. store i8 0, i8* %incdec.ptr366, align 1
  73. %7 = load i16, i16* %arrayidx381, align 8
  74. %conv3898 = trunc i16 %7 to i8
  75. %and390 = shl i8 %conv3898, 6
  76. store i8 %and390, i8* %incdec.ptr387, align 1
  77. unreachable
  78. ; CHECK-LABEL: @gsm_encode(
  79. }
  80. declare 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*)
  81. declare void @llvm.trap() noreturn nounwind