]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/Thumb2/thumb2-ldrd.ll
Vendor import of llvm trunk r238337:
[FreeBSD/FreeBSD.git] / test / CodeGen / Thumb2 / thumb2-ldrd.ll
1 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin -mattr=+thumb2 | FileCheck %s
2
3 @b = external global i64*
4
5 define i64 @t(i64 %a) nounwind readonly {
6 entry:
7 ; CHECK: ldrd
8 ; CHECK: umull
9         %0 = load i64*, i64** @b, align 4
10         %1 = load i64, i64* %0, align 4
11         %2 = mul i64 %1, %a
12         ret i64 %2
13 }