Advertisement
Guest User

Untitled

a guest
Sep 15th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 0.40 KB | None | 0 0
  1. define i32 @test1(i8 %x, i8 %y, i8 %z) nounwind readnone {
  2.   %A = lshr i8 %x, 5
  3.   %B = zext i8 %A to i32
  4.   %C = shl nuw nsw i32 %B, 5
  5.   ret i32 %C
  6. }
  7.  
  8. define i32 @test2(i8 %x, i8 %y, i8 %z) nounwind readnone {
  9.   %A = zext i8 %x to i32
  10.   %B = and i32 %A, 224
  11.   ret i32 %B
  12. }
  13.  
  14. define i32 @test3(i8 %x, i8 %y, i8 %z) nounwind readnone {
  15.   %A = and i8 %x, -32
  16.   %C = zext i8 %A to i32
  17.   ret i32 %C
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement