llvm-6502/test/CodeGen/Mips/2008-08-01-AsmInline.ll
Akira Hatanaka fa341d919f Fix test cases to use FileCheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145716 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-02 22:28:09 +00:00

16 lines
471 B
LLVM

; RUN: llc -march=mips < %s | FileCheck %s
%struct.DWstruct = type { i32, i32 }
define i32 @A0(i32 %u, i32 %v) nounwind {
entry:
; CHECK: multu
; CHECK: mflo
; CHECK: mfhi
%asmtmp = tail call %struct.DWstruct asm "multu $2,$3", "={lo},={hi},d,d"( i32 %u, i32 %v ) nounwind
%asmresult = extractvalue %struct.DWstruct %asmtmp, 0
%asmresult1 = extractvalue %struct.DWstruct %asmtmp, 1 ; <i32> [#uses=1]
%res = add i32 %asmresult, %asmresult1
ret i32 %res
}