diff options
author | Erich Keane <erich.keane@intel.com> | 2017-08-30 21:17:40 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2017-08-30 21:17:40 +0000 |
commit | bb9c704784dc0920e185e72090cef18cbe73e8cd (patch) | |
tree | cd5593d9c3b64f67c6cb531cb4a0062f14e38a6d /clang/test/CodeGen/function-attributes.c | |
parent | 4f44bf7f212205327b72849400d3ed9a8bae11d2 (diff) | |
download | bcm5719-llvm-bb9c704784dc0920e185e72090cef18cbe73e8cd.tar.gz bcm5719-llvm-bb9c704784dc0920e185e72090cef18cbe73e8cd.zip |
[CodeGen][x86_64] Enable 'force_align_arg_pointer' attribute at x86_64
This attribute is useful in OS development when we jump from 32 to 64 bit
code and expect that 64bit function forces correct stack alignment.
Related discussion: http://lists.llvm.org/pipermail/cfe-dev/2017-June/054358.html
Patch By: anatol.pomozov (anatol.pomozov@gmail.com)
Differential Revision:https://reviews.llvm.org/D36272
llvm-svn: 312173
Diffstat (limited to 'clang/test/CodeGen/function-attributes.c')
-rw-r--r-- | clang/test/CodeGen/function-attributes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CodeGen/function-attributes.c b/clang/test/CodeGen/function-attributes.c index 2139f6fe654..e1439744010 100644 --- a/clang/test/CodeGen/function-attributes.c +++ b/clang/test/CodeGen/function-attributes.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -disable-llvm-passes -Os -o - %s | FileCheck %s // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -disable-llvm-passes -Os -std=c99 -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -disable-llvm-passes -Os -std=c99 -o - %s | FileCheck %s // CHECK: define signext i8 @f0(i32 %x) [[NUW:#[0-9]+]] // CHECK: define zeroext i8 @f1(i32 %x) [[NUW]] // CHECK: define void @f2(i8 signext %x) [[NUW]] |