Advertisement
ErikCorry

LLVM phi with i1 -O3 output

Nov 23rd, 2016
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. foo:                                    # @foo
  2.     .cfi_startproc
  3. # BB#0:
  4.     testq   %rdi, %rdi
  5.     je  .LBB0_1
  6. # BB#2:                                 # %right
  7.     cmpq    %rdx, %rsi
  8.     jmp .LBB0_3
  9. .LBB0_1:                                # %left
  10.     cmpq    $1, %rsi
  11. .LBB0_3:                                # %join
  12.     sete    %al
  13.     testb   %al, %al
  14.     je  .LBB0_4
  15. # BB#5:                                 # %right2
  16.     movq    %rdi, %rax
  17.     retq
  18. .LBB0_4:                                # %left2
  19.     movq    %rdx, %rax
  20.     retq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement