mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 05:35:11 +00:00
5fe5b3dcc8
More updating of tests to be explicit about the target triple rather than relying on the default target triple supporting ARM mode. Indicate to lit that object emission is not yet available for Windows on ARM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205545 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
398 B
LLVM
15 lines
398 B
LLVM
; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 %s -o - | FileCheck %s
|
|
|
|
define i32 @f(i32 %a, i32 %b, i32 %c) nounwind readnone ssp {
|
|
entry:
|
|
; CHECK-NOT: smmls
|
|
%conv4 = zext i32 %a to i64
|
|
%conv1 = sext i32 %b to i64
|
|
%conv2 = sext i32 %c to i64
|
|
%mul = mul nsw i64 %conv2, %conv1
|
|
%shr5 = lshr i64 %mul, 32
|
|
%sub = sub nsw i64 %conv4, %shr5
|
|
%conv3 = trunc i64 %sub to i32
|
|
ret i32 %conv3
|
|
}
|