mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
95bc85e4ee
Fixes PR8113. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144409 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
432 B
LLVM
16 lines
432 B
LLVM
; RUN: llc %s -o /dev/null -mtriple=thumbv7-apple-ios -mcpu=cortex-a8 -debug-only=arm-ldst-opt 2> %t
|
|
; RUN: FileCheck %s < %t
|
|
; REQUIRES: asserts
|
|
; PR8113: ARMLoadStoreOptimizer must preserve memoperands.
|
|
|
|
@b = external global i64*
|
|
|
|
; CHECK: Formed {{.*}} t2LDRD{{.*}} mem:LD4[%0] LD4[%0+4]
|
|
define i64 @t(i64 %a) nounwind readonly {
|
|
entry:
|
|
%0 = load i64** @b, align 4
|
|
%1 = load i64* %0, align 4
|
|
%2 = mul i64 %1, %a
|
|
ret i64 %2
|
|
}
|