summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvandro Menezes <e.menezes@samsung.com>2018-02-22 23:32:06 +0000
committerEvandro Menezes <e.menezes@samsung.com>2018-02-22 23:32:06 +0000
commitc0571bd0658e125b2927abbf41c543989fb1ed42 (patch)
tree23733be040698ee3757cf5d9e30e18fc0e865c14
parent4b1a89fa928bb78955d86bb40e94872d367b2de1 (diff)
downloadbcm5719-llvm-c0571bd0658e125b2927abbf41c543989fb1ed42.tar.gz
bcm5719-llvm-c0571bd0658e125b2927abbf41c543989fb1ed42.zip
[AArch64] Improve macro fusion test case
Improve a vector in the test case for the fusion of address generation and loads or stores. Otherwise, NFC. llvm-svn: 325839
-rw-r--r--llvm/test/CodeGen/AArch64/misched-fusion-addr.ll8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/AArch64/misched-fusion-addr.ll b/llvm/test/CodeGen/AArch64/misched-fusion-addr.ll
index 9dfe9d3b602..f851148cca4 100644
--- a/llvm/test/CodeGen/AArch64/misched-fusion-addr.ll
+++ b/llvm/test/CodeGen/AArch64/misched-fusion-addr.ll
@@ -98,15 +98,17 @@ define void @ldst_float() {
}
define void @ldst_double() {
+ %valf = load volatile float, float* @var_float
+ %vale = fpext float %valf to double
%vald = load volatile double, double* @var_double
- %val = insertelement <2 x double> undef, double %vald, i32 0
- %vald2 = insertelement <2 x double> %val, double %vald, i32 1
+ %vald1 = insertelement <2 x double> undef, double %vald, i32 0
+ %vald2 = insertelement <2 x double> %vald1, double %vale, i32 1
store volatile <2 x double> %vald2, <2 x double>* @var_double2
ret void
; CHECK-LABEL: ldst_double:
; CHECK: adrp [[RD:x[0-9]+]], var_double
-; CHECK-NEXT: add {{x[0-9]+}}, [[RD]], {{#?}}:lo12:var_double
+; CHECK-NEXT: ldr {{d[0-9]+}}, {{\[}}[[RD]], {{#?}}:lo12:var_double{{\]}}
; CHECK: adrp [[RQ:x[0-9]+]], var_double2
; CHECK-NEXT: str {{q[0-9]+}}, {{\[}}[[RQ]], {{#?}}:lo12:var_double2{{\]}}
}
OpenPOWER on IntegriCloud