summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2016-10-06 07:44:05 +0000
committerJames Molloy <james.molloy@arm.com>2016-10-06 07:44:05 +0000
commit78561c4917bcb77c509aa342180ed3bd7ee7cb5d (patch)
tree5dbebe52e49f2faeb34b5fa8e4154ebc189827cb
parent4ef1a69b405a9017599a5dab5e10089b572de988 (diff)
downloadbcm5719-llvm-78561c4917bcb77c509aa342180ed3bd7ee7cb5d.tar.gz
bcm5719-llvm-78561c4917bcb77c509aa342180ed3bd7ee7cb5d.zip
[ARM] Improve testcase for r283323
We can work around a shortcoming of FileCheck by using {{\[}} to match a square bracket before a [[ sequence. Thanks to Eli Friedman for the heads up! llvm-svn: 283422
-rw-r--r--llvm/test/CodeGen/ARM/constantpool-promote-ldrh.ll3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/ARM/constantpool-promote-ldrh.ll b/llvm/test/CodeGen/ARM/constantpool-promote-ldrh.ll
index 5d9a31a82d1..9e369dc08c4 100644
--- a/llvm/test/CodeGen/ARM/constantpool-promote-ldrh.ll
+++ b/llvm/test/CodeGen/ARM/constantpool-promote-ldrh.ll
@@ -9,8 +9,7 @@ target triple = "thumbv6m-arm-linux-gnueabi"
; CHECK-LABEL: fn1:
; CHECK: adr [[base:r[0-9]+]], .LCPI0_0
; CHECK-NOT: ldrh {{r[0-9]+}}, .LCPI0_0
-; FIXME: We want to use [[base]] below instead of "r0", but the preceding square bracket confuses FileCheck.
-; CHECK: ldrh r{{[0-9]+}}, [r0]
+; CHECK: ldrh r{{[0-9]+}}, {{\[}}[[base]]]
define hidden i32 @fn1() #0 {
entry:
call void @llvm.memcpy.p0i8.p0i8.i32(i8* undef, i8* bitcast ([4 x i16]* @fn1.a to i8*), i32 8, i32 2, i1 false)
OpenPOWER on IntegriCloud