From: Kristof Beyls Date: Tue, 28 Jul 2015 14:23:47 +0000 (+0000) Subject: RegParmMax must be 0 for AArch64, as the regparm function attribute is not supported... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10fda73c3034a050b2143378f5c8501120e4217e;p=clang RegParmMax must be 0 for AArch64, as the regparm function attribute is not supported on AArch64. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243417 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 8ecaeaf1d1..f229c997f0 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -5082,7 +5082,6 @@ public: LongWidth = LongAlign = PointerWidth = PointerAlign = 64; MaxVectorAlign = 128; - RegParmMax = 8; MaxAtomicInlineWidth = 128; MaxAtomicPromoteWidth = 128; diff --git a/test/CodeGen/le32-regparm.c b/test/CodeGen/le32-regparm.c index c8f70694c4..ecb1030aa1 100644 --- a/test/CodeGen/le32-regparm.c +++ b/test/CodeGen/le32-regparm.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple le32-unknown-nacl %s -fsyntax-only -verify +// RUN: %clang_cc1 -triple aarch64 %s -fsyntax-only -verify void __attribute__((regparm(2))) fc_f1(int i, int j, int k) {} // expected-error{{'regparm' is not valid on this platform}}