Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. define i1 @bittest(i4096* %i, i32 %n) {
  2. %1 = lshr i32 %n, 3
  3. %2 = bitcast i4096* %i to i8*
  4. %3 = getelementptr i8, i8* %2, i32 %1
  5. %4 = load i8, i8* %3
  6. %5 = trunc i32 %n to i8
  7. %6 = and i8 %5, 7
  8. %7 = lshr i8 %4, %6
  9. %8 = and i8 %7, 1
  10. %9 = icmp ne i8 %7, 0
  11. ret i1 %9
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement