blob: 744fbd5efb860475e122bc79e301645757e6d3b9 [file] [log] [blame]
Andrew Trick28c1d182011-11-11 22:18:09 +00001; RUN: llc %s -o /dev/null -mtriple=thumbv7-apple-ios -mcpu=cortex-a8 -debug-only=arm-ldst-opt 2> %t
2; RUN: FileCheck %s < %t
3; REQUIRES: asserts
4; PR8113: ARMLoadStoreOptimizer must preserve memoperands.
5
6@b = external global i64*
7
8; CHECK: Formed {{.*}} t2LDRD{{.*}} mem:LD4[%0] LD4[%0+4]
9define i64 @t(i64 %a) nounwind readonly {
10entry:
David Blaikiea79ac142015-02-27 21:17:42 +000011 %0 = load i64*, i64** @b, align 4
12 %1 = load i64, i64* %0, align 4
Andrew Trick28c1d182011-11-11 22:18:09 +000013 %2 = mul i64 %1, %a
14 ret i64 %2
15}