diff options
author | Tim Northover <tnorthover@apple.com> | 2013-10-29 08:22:33 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2013-10-29 08:22:33 +0000 |
commit | fd4937fe2a0a2bbceeff8ba14e49411c0ae78855 (patch) | |
tree | 7faf74127bd9c82d0c50c37b8da68d3f64efb622 /test | |
parent | 6b713800ff03fdbb1d770d1e00af0e76041f3c03 (diff) | |
download | llvm-fd4937fe2a0a2bbceeff8ba14e49411c0ae78855.tar.gz llvm-fd4937fe2a0a2bbceeff8ba14e49411c0ae78855.tar.bz2 llvm-fd4937fe2a0a2bbceeff8ba14e49411c0ae78855.tar.xz |
AArch64: add 'a' inline asm operand modifier
This is used in the Linux kernel, and effectively just means "print an
address".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/AArch64/inline-asm-modifiers.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/inline-asm-modifiers.ll b/test/CodeGen/AArch64/inline-asm-modifiers.ll index d0b158f1f2..124b719d77 100644 --- a/test/CodeGen/AArch64/inline-asm-modifiers.ll +++ b/test/CodeGen/AArch64/inline-asm-modifiers.ll @@ -107,3 +107,12 @@ define void @test_inline_modifier_c() nounwind { ret void } + +define void @test_inline_modifier_a() nounwind { +; CHECK-LABEL: test_inline_modifier_a: + call void asm sideeffect "prfm pldl1keep, ${0:a}", "r"(i32* @var_simple) +; CHECK: adrp [[VARHI:x[0-9]+]], var_simple +; CHECK: add x[[VARADDR:[0-9]+]], [[VARHI]], #:lo12:var_simple +; CHECK: prfm pldl1keep, [x[[VARADDR]]] + ret void +} |