1 ; Ensure that multiplication is lowered to function calls when the multiplier
2 ; unit is not available in the hardware and that function calls are not used
3 ; when the multiplier unit is available in the hardware.
5 ; RUN: llc < %s -march=mblaze | FileCheck -check-prefix=FUN %s
6 ; RUN: llc < %s -march=mblaze -mattr=+mul | FileCheck -check-prefix=MUL %s
8 define i8 @test_i8(i8 %a, i8 %b) {
12 %tmp.1 = mul i8 %a, %b
23 define i16 @test_i16(i16 %a, i16 %b) {
27 %tmp.1 = mul i16 %a, %b
38 define i32 @test_i32(i32 %a, i32 %b) {
42 %tmp.1 = mul i32 %a, %b