summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/asm_arm.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-11 02:17:11 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-11 02:17:11 +0000
commit256e1f3ad05d6ffe89f7e64a65ee5e753ddb228c (patch)
treea036aed4d869f7a08b4b48b53206bf402ecfbaa1 /clang/test/CodeGen/asm_arm.c
parent836a7e8468a76320bbdce9752b7d4aef9b5afdf2 (diff)
downloadbcm5719-llvm-256e1f3ad05d6ffe89f7e64a65ee5e753ddb228c.tar.gz
bcm5719-llvm-256e1f3ad05d6ffe89f7e64a65ee5e753ddb228c.zip
ARM: Swap which registers we consider real / aliases to match LLVM and llvm-gcc.
llvm-svn: 110774
Diffstat (limited to 'clang/test/CodeGen/asm_arm.c')
-rw-r--r--clang/test/CodeGen/asm_arm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/asm_arm.c b/clang/test/CodeGen/asm_arm.c
index aac47d57dc5..12cf5d79c83 100644
--- a/clang/test/CodeGen/asm_arm.c
+++ b/clang/test/CodeGen/asm_arm.c
@@ -30,3 +30,11 @@ void test4(float *a, float *b) {
"vst1.32 {q4}, [%0,:128] \n\t"
:: "r"(a), "r"(b));
}
+
+// {sp, lr, pc} are the canonical names for {r13, r14, r15}.
+//
+// CHECK: @test5
+// CHECK: call void asm sideeffect "", "~{sp},~{lr},~{pc},~{sp},~{lr},~{pc}"()
+void test5() {
+ __asm__("" : : : "r13", "r14", "r15", "sp", "lr", "pc");
+}
OpenPOWER on IntegriCloud