apint-bigint2.ll 498 B

123456789101112131415161718
  1. ; RUN: opt < %s -sccp -S | not grep load
  2. @Y = constant [6 x i101] [ i101 12, i101 123456789000000, i101 -12,
  3. i101 -123456789000000, i101 0,i101 9123456789000000]
  4. define i101 @array()
  5. {
  6. Head:
  7. %A = getelementptr [6 x i101], [6 x i101]* @Y, i32 0, i32 1
  8. %B = load i101, i101* %A
  9. %D = and i101 %B, 1
  10. %DD = or i101 %D, 1
  11. %E = trunc i101 %DD to i32
  12. %F = getelementptr [6 x i101], [6 x i101]* @Y, i32 0, i32 %E
  13. %G = load i101, i101* %F
  14. ret i101 %G
  15. }