crash_mandeltext.ll 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. ; RUN: opt < %s -basicaa -slp-vectorizer -dce -S -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7
  2. 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"
  3. target triple = "x86_64-apple-macosx10.8.0"
  4. define void @main() {
  5. entry:
  6. br label %for.body
  7. for.body: ; preds = %for.end44, %entry
  8. br label %for.cond4.preheader
  9. for.cond4.preheader: ; preds = %if.then25, %for.body
  10. br label %for.body6
  11. for.body6: ; preds = %for.inc21, %for.cond4.preheader
  12. br label %for.body12
  13. for.body12: ; preds = %if.end, %for.body6
  14. %fZImg.069 = phi double [ undef, %for.body6 ], [ %add19, %if.end ]
  15. %fZReal.068 = phi double [ undef, %for.body6 ], [ %add20, %if.end ]
  16. %mul13 = fmul double %fZReal.068, %fZReal.068
  17. %mul14 = fmul double %fZImg.069, %fZImg.069
  18. %add15 = fadd double %mul13, %mul14
  19. %cmp16 = fcmp ogt double %add15, 4.000000e+00
  20. br i1 %cmp16, label %for.inc21, label %if.end
  21. if.end: ; preds = %for.body12
  22. %mul18 = fmul double undef, %fZImg.069
  23. %add19 = fadd double undef, %mul18
  24. %sub = fsub double %mul13, %mul14
  25. %add20 = fadd double undef, %sub
  26. br i1 undef, label %for.body12, label %for.inc21
  27. for.inc21: ; preds = %if.end, %for.body12
  28. br i1 undef, label %for.end23, label %for.body6
  29. for.end23: ; preds = %for.inc21
  30. br i1 undef, label %if.then25, label %if.then26
  31. if.then25: ; preds = %for.end23
  32. br i1 undef, label %for.end44, label %for.cond4.preheader
  33. if.then26: ; preds = %for.end23
  34. unreachable
  35. for.end44: ; preds = %if.then25
  36. br i1 undef, label %for.end48, label %for.body
  37. for.end48: ; preds = %for.end44
  38. ret void
  39. }
  40. %struct.hoge = type { double, double, double}
  41. define void @zot(%struct.hoge* %arg) {
  42. bb:
  43. %tmp = load double, double* undef, align 8
  44. %tmp1 = fsub double %tmp, undef
  45. %tmp2 = load double, double* undef, align 8
  46. %tmp3 = fsub double %tmp2, undef
  47. %tmp4 = fmul double %tmp3, undef
  48. %tmp5 = fmul double %tmp3, undef
  49. %tmp6 = fsub double %tmp5, undef
  50. %tmp7 = getelementptr inbounds %struct.hoge, %struct.hoge* %arg, i64 0, i32 1
  51. store double %tmp6, double* %tmp7, align 8
  52. %tmp8 = fmul double %tmp1, undef
  53. %tmp9 = fsub double %tmp8, undef
  54. %tmp10 = getelementptr inbounds %struct.hoge, %struct.hoge* %arg, i64 0, i32 2
  55. store double %tmp9, double* %tmp10, align 8
  56. br i1 undef, label %bb11, label %bb12
  57. bb11: ; preds = %bb
  58. br label %bb14
  59. bb12: ; preds = %bb
  60. %tmp13 = fmul double undef, %tmp2
  61. br label %bb14
  62. bb14: ; preds = %bb12, %bb11
  63. ret void
  64. }
  65. %struct.rc4_state.0.24 = type { i32, i32, [256 x i32] }
  66. define void @rc4_crypt(%struct.rc4_state.0.24* nocapture %s) {
  67. entry:
  68. %x1 = getelementptr inbounds %struct.rc4_state.0.24, %struct.rc4_state.0.24* %s, i64 0, i32 0
  69. %y2 = getelementptr inbounds %struct.rc4_state.0.24, %struct.rc4_state.0.24* %s, i64 0, i32 1
  70. br i1 undef, label %for.body, label %for.end
  71. for.body: ; preds = %for.body, %entry
  72. %x.045 = phi i32 [ %conv4, %for.body ], [ undef, %entry ]
  73. %conv4 = and i32 undef, 255
  74. %conv7 = and i32 undef, 255
  75. %idxprom842 = zext i32 %conv7 to i64
  76. br i1 undef, label %for.end, label %for.body
  77. for.end: ; preds = %for.body, %entry
  78. %x.0.lcssa = phi i32 [ undef, %entry ], [ %conv4, %for.body ]
  79. %y.0.lcssa = phi i32 [ undef, %entry ], [ %conv7, %for.body ]
  80. store i32 %x.0.lcssa, i32* %x1, align 4
  81. store i32 %y.0.lcssa, i32* %y2, align 4
  82. ret void
  83. }