diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-26 23:37:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-26 23:37:21 +0000 |
commit | a408333857f9fc404c69a4954590c348caef9e0d (patch) | |
tree | 23b17d9a2ae83b24f36a5dd40068e7a4d8b177a3 /test | |
parent | 568ca048e519747e1ea028d6a688171f91e0589e (diff) | |
download | external_llvm-a408333857f9fc404c69a4954590c348caef9e0d.zip external_llvm-a408333857f9fc404c69a4954590c348caef9e0d.tar.gz external_llvm-a408333857f9fc404c69a4954590c348caef9e0d.tar.bz2 |
on darwin empty functions need to codegen into something of non-zero length,
otherwise labels get incorrectly merged. We handled this by emitting a
".byte 0", but this isn't correct on thumb/arm targets where the text segment
needs to be a multiple of 2/4 bytes. Handle this by emitting a noop. This
is more gross than it should be because arm/ppc are not fully mc'ized yet.
This fixes rdar://7908505
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/PowerPC/2008-01-25-EmptyFunction.ll | 2 | ||||
-rw-r--r-- | test/CodeGen/X86/2008-01-25-EmptyFunction.ll | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.ll b/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.ll index a05245d..db2ab87 100644 --- a/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.ll +++ b/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=ppc32 | grep .byte +; RUN: llc < %s -march=ppc32 | grep nop target triple = "powerpc-apple-darwin8" diff --git a/test/CodeGen/X86/2008-01-25-EmptyFunction.ll b/test/CodeGen/X86/2008-01-25-EmptyFunction.ll index 387645f..b936686 100644 --- a/test/CodeGen/X86/2008-01-25-EmptyFunction.ll +++ b/test/CodeGen/X86/2008-01-25-EmptyFunction.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=x86 | grep {.byte 0} +; RUN: llc < %s -march=x86 | grep nop target triple = "i686-apple-darwin8" |