aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-08-13 18:18:52 +0000
committerEric Christopher <echristo@apple.com>2012-08-13 18:18:52 +0000
commit001d219b9729684ea514068cff1cf79cd2e71121 (patch)
tree2d2ebf26a4bbab3bcf555647d4b072acabb60cc6 /test/CodeGen
parent365a1d48d85bba52c0c87ca3951b56a2c268c0f1 (diff)
downloadexternal_llvm-001d219b9729684ea514068cff1cf79cd2e71121.zip
external_llvm-001d219b9729684ea514068cff1cf79cd2e71121.tar.gz
external_llvm-001d219b9729684ea514068cff1cf79cd2e71121.tar.bz2
Add support for the %H output modifier.
Patch by Weiming Zhao. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/ARM/arm-modifier.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/arm-modifier.ll b/test/CodeGen/ARM/arm-modifier.ll
index 396de37..5e12d8e 100644
--- a/test/CodeGen/ARM/arm-modifier.ll
+++ b/test/CodeGen/ARM/arm-modifier.ll
@@ -57,3 +57,12 @@ store i64 %0, i64* @f3_var, align 4
store i64 %1, i64* @f3_var, align 4
ret void
}
+
+define i64 @f4(i64* %val) nounwind {
+entry:
+ ;CHECK: f4
+ ;CHECK: ldrexd [[REG1:(r[0-9]?[02468])]], {{r[0-9]?[13579]}}, [r0]
+ ;CHECK: mov r0, [[REG1]]
+ %0 = tail call i64 asm sideeffect "ldrexd $0, ${0:H}, [$1]", "=&r,r,*Qo"(i64* %val, i64* %val) nounwind
+ ret i64 %0
+}