• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc --mtriple=mips-mti-linux-gnu < %s -debug 2>&1 | FileCheck %s --check-prefixes=CHECK,MIPS
2; RUN: llc --mtriple=mips-mti-linux-gnu < %s -mattr=+micromips -debug 2>&1 | FileCheck %s --check-prefixes=CHECK,MM
3
4; REQUIRES: asserts
5
6; Test that the correct mul instruction is selected upfront.
7
8; CHECK-LABEL: Instruction selection ends:
9; MIPS: t{{[0-9]+}}: i32,i32 = MUL t{{[0-9]+}}, t{{[0-9]+}}
10; MM: t{{[0-9]+}}: i32,i32 = MUL_MM t{{[0-9]+}}, t{{[0-9]+}}
11
12define i32 @mul(i32 %a, i32 %b) {
13entry:
14  %0 = mul i32 %a, %b
15  ret i32 %0
16}
17