blob: f701bf17c6bbc84e2129878ed1a4fc81497031e0 [file] [log] [blame]
Akira Hatanakafa341d92011-12-02 22:28:09 +00001; RUN: llc -march=mips < %s | FileCheck %s
Bruno Cardoso Lopes0b4e1362008-08-08 04:09:57 +00002
Akira Hatanakafa341d92011-12-02 22:28:09 +00003%struct.DWstruct = type { i32, i32 }
Bruno Cardoso Lopes0b4e1362008-08-08 04:09:57 +00004
5define i32 @A0(i32 %u, i32 %v) nounwind {
6entry:
Akira Hatanakafa341d92011-12-02 22:28:09 +00007; CHECK: multu
8; CHECK: mflo
9; CHECK: mfhi
10 %asmtmp = tail call %struct.DWstruct asm "multu $2,$3", "={lo},={hi},d,d"( i32 %u, i32 %v ) nounwind
11 %asmresult = extractvalue %struct.DWstruct %asmtmp, 0
12 %asmresult1 = extractvalue %struct.DWstruct %asmtmp, 1 ; <i32> [#uses=1]
Bruno Cardoso Lopes0b4e1362008-08-08 04:09:57 +000013 %res = add i32 %asmresult, %asmresult1
Akira Hatanakafa341d92011-12-02 22:28:09 +000014 ret i32 %res
Bruno Cardoso Lopes0b4e1362008-08-08 04:09:57 +000015}