brintos

brintos / llvm-project-archived public Read only

0
0
Text · 833 B · 25d10b0 Raw
28 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i386-unknown | FileCheck %s --check-prefix=X863; RUN: llc < %s -mtriple=x86_64-unknown | FileCheck %s --check-prefix=X644 5define i64 @foo(i64 %t, i64 %u) nounwind {6; X86-LABEL: foo:7; X86:       # %bb.0:8; X86-NEXT:    pushl %esi9; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx10; X86-NEXT:    movl {{[0-9]+}}(%esp), %esi11; X86-NEXT:    movl %ecx, %eax12; X86-NEXT:    mull %esi13; X86-NEXT:    imull {{[0-9]+}}(%esp), %ecx14; X86-NEXT:    addl %ecx, %edx15; X86-NEXT:    imull {{[0-9]+}}(%esp), %esi16; X86-NEXT:    addl %esi, %edx17; X86-NEXT:    popl %esi18; X86-NEXT:    retl19;20; X64-LABEL: foo:21; X64:       # %bb.0:22; X64-NEXT:    movq %rdi, %rax23; X64-NEXT:    imulq %rsi, %rax24; X64-NEXT:    retq25  %k = mul i64 %t, %u26  ret i64 %k27}28