]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/ARM/smml.ll
Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
[FreeBSD/FreeBSD.git] / test / CodeGen / ARM / smml.ll
1 ; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 %s -o - | FileCheck %s
2
3 define i32 @f(i32 %a, i32 %b, i32 %c) nounwind readnone ssp {
4 entry:
5 ; CHECK-NOT: smmls
6   %conv4 = zext i32 %a to i64
7   %conv1 = sext i32 %b to i64
8   %conv2 = sext i32 %c to i64
9   %mul = mul nsw i64 %conv2, %conv1
10   %shr5 = lshr i64 %mul, 32
11   %sub = sub nsw i64 %conv4, %shr5
12   %conv3 = trunc i64 %sub to i32
13   ret i32 %conv3
14 }