mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[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
This commit is contained in:
parent
994e0d12ef
commit
8870a22d98
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user