[MIPS] Add cpu octeon and some instructions
[oota-llvm.git] / test / CodeGen / Mips / octeon.ll
1 ; RUN: llc -O1 < %s -march=mips64 -mcpu=octeon | FileCheck %s -check-prefix=OCTEON
2 ; RUN: llc -O1 < %s -march=mips64 -mcpu=mips64 | FileCheck %s -check-prefix=MIPS64
3
4 define i64 @mul(i64 %a, i64 %b) nounwind {
5 entry:
6 ; OCTEON-LABEL: mul:
7 ; OCTEON: jr    $ra
8 ; OCTEON: dmul  $2, $4, $5
9 ; MIPS64-LABEL: mul:
10 ; MIPS64: dmult
11 ; MIPS64: jr
12 ; MIPS64: mflo
13   %res = mul i64 %a, %b
14   ret i64 %res
15 }