aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips/2008-08-01-AsmInline.ll
blob: f701bf17c6bbc84e2129878ed1a4fc81497031e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; 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
}