llvm.org GIT mirror llvm / release_35 test / CodeGen / ARM / mul.ll
release_35

Tree @release_35 (Download .tar.gz)

mul.ll @release_35

5fe5b3d
71f3b94
e3ff5ad
9e38e32
 
71f3b94
 
5fe5b3d
 
e3ff5ad
9e38e32
 
 
 
e3ff5ad
9e38e32
 
 
 
5fe5b3d
 
 
e3ff5ad
9e38e32
 
71f3b94
5fe5b3d
 
 
 
 
 
; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s

define i32 @f1(i32 %u) {
    %tmp = mul i32 %u, %u
    ret i32 %tmp
}

; CHECK: mul

define i32 @f2(i32 %u, i32 %v) {
    %tmp = mul i32 %u, %v
    ret i32 %tmp
}

define i32 @f3(i32 %u) {
	%tmp = mul i32 %u, 5
        ret i32 %tmp
}

; CHECK: mul
; CHECK: lsl

define i32 @f4(i32 %u) {
	%tmp = mul i32 %u, 4
        ret i32 %tmp
}

; CHECK-NOT: mul

; CHECK: lsl
; CHECK-NOT: lsl