summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/asm_arm.c
diff options
context:
space:
mode:
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