diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-06-18 20:37:15 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-06-18 20:37:15 +0000 |
commit | b13bafe5c12dd908b55c559c93adaeb1627ed096 (patch) | |
tree | 7f781baafb635ef6408d4f6a5aa386b3a376b846 /test/CodeGen/X86/pic_jumptable.ll | |
parent | bcf9737f1e8ca39efc4f7a4638d0836cad7ba4e1 (diff) | |
download | llvm-b13bafe5c12dd908b55c559c93adaeb1627ed096.tar.gz llvm-b13bafe5c12dd908b55c559c93adaeb1627ed096.tar.bz2 llvm-b13bafe5c12dd908b55c559c93adaeb1627ed096.tar.xz |
On Darwin, ams printer should output a second label before a jump table so the linker knows it's a new atom. But this is only needed if the jump table is put in a separate section from the function body.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/pic_jumptable.ll')
-rw-r--r-- | test/CodeGen/X86/pic_jumptable.ll | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pic_jumptable.ll b/test/CodeGen/X86/pic_jumptable.ll index 1731feb58e..229865bb71 100644 --- a/test/CodeGen/X86/pic_jumptable.ll +++ b/test/CodeGen/X86/pic_jumptable.ll @@ -1,6 +1,8 @@ ; RUN: llvm-as < %s | llc -relocation-model=pic -mtriple=i386-linux-gnu -asm-verbose=false | not grep -F .text ; RUN: llvm-as < %s | llc -relocation-model=pic -mtriple=i686-apple-darwin -asm-verbose=false | not grep lea ; RUN: llvm-as < %s | llc -relocation-model=pic -mtriple=i686-apple-darwin -asm-verbose=false | grep add | count 2 +; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin | not grep 'lJTI' +; rdar://6971437 declare void @_Z3bari(i32) |