mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
cc12b285b6
This will currently accept the old number of bytes syntax, and convert it to a scalar. This should be removed in the near future (I think I converted all of the tests already, but likely missed a few). Not sure what the exact syntax and policy should be. We can continue printing the number of bytes for non-generic instructions to avoid test churn and only allow non-scalar types for generic instructions. This will currently print the LLT in parentheses, but accept parsing the existing integers and implicitly converting to scalar. The parentheses are a bit ugly, but the parser logic seems unable to deal without either parentheses or some keyword to indicate the start of a type.
16 lines
474 B
LLVM
16 lines
474 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{{.*}} (load (s32) from %ir.0), (load (s32) from %ir.0 + 4)
|
|
define i64 @t(i64 %a) nounwind readonly {
|
|
entry:
|
|
%0 = load i64*, i64** @b, align 4
|
|
%1 = load i64, i64* %0, align 4
|
|
%2 = mul i64 %1, %a
|
|
ret i64 %2
|
|
}
|