Advertisement
Guest User

Clang

a guest
May 4th, 2014
240
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .section __TEXT,__text,regular,pure_instructions
  2. .globl __Z4funcPP1Xi
  3. .align 4, 0x90
  4. __Z4funcPP1Xi: ## @_Z4funcPP1Xi
  5. .cfi_startproc
  6. ## BB#0: ## %entry
  7. pushq %rbp
  8. Ltmp3:
  9. .cfi_def_cfa_offset 16
  10. Ltmp4:
  11. .cfi_offset %rbp, -16
  12. movq %rsp, %rbp
  13. Ltmp5:
  14. .cfi_def_cfa_register %rbp
  15. pushq %rbx
  16. Ltmp6:
  17. .cfi_offset %rbx, -24
  18. ## kill: ESI<def> ESI<kill> RSI<def>
  19. xorl %eax, %eax
  20. testl %esi, %esi
  21. jle LBB0_8
  22. ## BB#1: ## %while.body.preheader
  23. leal -1(%rsi), %ecx
  24. leaq 1(%rcx), %r8
  25. movabsq $8589934590, %r9 ## imm = 0x1FFFFFFFE
  26. movq %r8, %rax
  27. andq %r9, %rax
  28. xorl %r10d, %r10d
  29. andq %r8, %r9
  30. je LBB0_2
  31. ## BB#3: ## %vector.body.preheader
  32. subl %eax, %esi
  33. leaq (%rdi,%r9,8), %r10
  34. addq $8, %rdi
  35. incq %rcx
  36. andq $-2, %rcx
  37. xorl %eax, %eax
  38. xorl %edx, %edx
  39. .align 4, 0x90
  40. LBB0_4: ## %vector.body
  41. ## =>This Inner Loop Header: Depth=1
  42. movq -8(%rdi), %r11
  43. movq (%rdi), %rbx
  44. addl (%r11), %eax
  45. addl (%rbx), %edx
  46. addq $16, %rdi
  47. addq $-2, %rcx
  48. jne LBB0_4
  49. ## BB#5:
  50. movq %r10, %rdi
  51. movq %r9, %r10
  52. jmp LBB0_6
  53. LBB0_2:
  54. xorl %eax, %eax
  55. xorl %edx, %edx
  56. LBB0_6: ## %middle.block
  57. addl %edx, %eax
  58. cmpq %r10, %r8
  59. je LBB0_8
  60. .align 4, 0x90
  61. LBB0_7: ## %while.body
  62. ## =>This Inner Loop Header: Depth=1
  63. movq (%rdi), %rcx
  64. addl (%rcx), %eax
  65. addq $8, %rdi
  66. decl %esi
  67. testl %esi, %esi
  68. jg LBB0_7
  69. LBB0_8: ## %while.end
  70. ## kill: EAX<def> EAX<kill> RAX<kill>
  71. popq %rbx
  72. popq %rbp
  73. retq
  74. .cfi_endproc
  75.  
  76. .globl _main
  77. .align 4, 0x90
  78. _main: ## @main
  79. .cfi_startproc
  80. ## BB#0: ## %entry
  81. pushq %rbp
  82. Ltmp9:
  83. .cfi_def_cfa_offset 16
  84. Ltmp10:
  85. .cfi_offset %rbp, -16
  86. movq %rsp, %rbp
  87. Ltmp11:
  88. .cfi_def_cfa_register %rbp
  89. xorl %eax, %eax
  90. popq %rbp
  91. retq
  92. .cfi_endproc
  93.  
  94.  
  95. .subsections_via_symbols
Advertisement
RAW Paste Data Copied
Advertisement