Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
test/CodeGen/X86/mul-i256.ll
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | |||||
; X32-NEXT: movl %ecx, 20(%ebx) | ; X32-NEXT: movl %ecx, 20(%ebx) | ||||
; X32-NEXT: movl %edx, 24(%ebx) | ; X32-NEXT: movl %edx, 24(%ebx) | ||||
; X32-NEXT: movl %eax, 28(%ebx) | ; X32-NEXT: movl %eax, 28(%ebx) | ||||
; X32-NEXT: leal -12(%ebp), %esp | ; X32-NEXT: leal -12(%ebp), %esp | ||||
; X32-NEXT: popl %esi | ; X32-NEXT: popl %esi | ||||
; X32-NEXT: popl %edi | ; X32-NEXT: popl %edi | ||||
; X32-NEXT: popl %ebx | ; X32-NEXT: popl %ebx | ||||
; X32-NEXT: popl %ebp | ; X32-NEXT: popl %ebp | ||||
; X32-NEXT: .Lcfi6: | |||||
; X32-NEXT: .cfi_def_cfa %esp, 4 | |||||
; X32-NEXT: retl | ; X32-NEXT: retl | ||||
; | ; | ||||
; X64-LABEL: test: | ; X64-LABEL: test: | ||||
; X64: # BB#0: # %entry | ; X64: # BB#0: # %entry | ||||
; X64-NEXT: pushq %r15 | ; X64-NEXT: pushq %r15 | ||||
; X64-NEXT: .Lcfi0: | ; X64-NEXT: .Lcfi0: | ||||
; X64-NEXT: .cfi_def_cfa_offset 16 | ; X64-NEXT: .cfi_def_cfa_offset 16 | ||||
; X64-NEXT: pushq %r14 | ; X64-NEXT: pushq %r14 | ||||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
; X64-NEXT: adcq %rcx, %rdx | ; X64-NEXT: adcq %rcx, %rdx | ||||
; X64-NEXT: addq %r10, %rax | ; X64-NEXT: addq %r10, %rax | ||||
; X64-NEXT: adcq %rdi, %rdx | ; X64-NEXT: adcq %rdi, %rdx | ||||
; X64-NEXT: movq %r14, (%r9) | ; X64-NEXT: movq %r14, (%r9) | ||||
; X64-NEXT: movq %r11, 8(%r9) | ; X64-NEXT: movq %r11, 8(%r9) | ||||
; X64-NEXT: movq %rax, 16(%r9) | ; X64-NEXT: movq %rax, 16(%r9) | ||||
; X64-NEXT: movq %rdx, 24(%r9) | ; X64-NEXT: movq %rdx, 24(%r9) | ||||
; X64-NEXT: popq %rbx | ; X64-NEXT: popq %rbx | ||||
; X64-NEXT: .Lcfi6: | |||||
; X64-NEXT: .cfi_def_cfa_offset 24 | |||||
; X64-NEXT: popq %r14 | ; X64-NEXT: popq %r14 | ||||
; X64-NEXT: .Lcfi7: | |||||
; X64-NEXT: .cfi_def_cfa_offset 16 | |||||
; X64-NEXT: popq %r15 | ; X64-NEXT: popq %r15 | ||||
; X64-NEXT: .Lcfi8: | |||||
; X64-NEXT: .cfi_def_cfa_offset 8 | |||||
; X64-NEXT: retq | ; X64-NEXT: retq | ||||
entry: | entry: | ||||
%av = load i256, i256* %a | %av = load i256, i256* %a | ||||
%bv = load i256, i256* %b | %bv = load i256, i256* %b | ||||
%r = mul i256 %av, %bv | %r = mul i256 %av, %bv | ||||
store i256 %r, i256* %out | store i256 %r, i256* %out | ||||
ret void | ret void | ||||
} | } | ||||
attributes #0 = { norecurse nounwind uwtable } | attributes #0 = { norecurse nounwind uwtable } |