brintos

brintos / llvm-project-archived public Read only

0
0
Text · 543 B · cdcd3fd Raw
17 lines · plain
1; RUN: llc --mtriple=mips-mti-linux-gnu < %s -debug 2>&1 | FileCheck %s --check-prefixes=CHECK,MIPS2; RUN: llc --mtriple=mips-mti-linux-gnu < %s -mattr=+micromips -debug 2>&1 | FileCheck %s --check-prefixes=CHECK,MM3 4; REQUIRES: asserts5 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, %b15  ret i32 %016}17