diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-01-16 22:57:32 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-01-16 22:57:32 +0000 |
commit | ee5c2b8ba2bd9670931705ca04a46052d534ade9 (patch) | |
tree | 6897264049d28a2034d411f7beace1024a5c926c /test/CodeGen/PowerPC/2009-01-16-DeclareISelBug.ll | |
parent | 7059d47a6e1a378232dce3e47b51434dec0ea608 (diff) | |
download | external_llvm-ee5c2b8ba2bd9670931705ca04a46052d534ade9.zip external_llvm-ee5c2b8ba2bd9670931705ca04a46052d534ade9.tar.gz external_llvm-ee5c2b8ba2bd9670931705ca04a46052d534ade9.tar.bz2 |
Fix PPC ISD::Declare isel and eliminate the need for PPCTargetLowering::LowerGlobalAddress to check if isVerifiedDebugInfoDesc() is true. Given the recent changes, it would falsely return true for a lot of GlobalAddressSDNode's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/2009-01-16-DeclareISelBug.ll')
-rw-r--r-- | test/CodeGen/PowerPC/2009-01-16-DeclareISelBug.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/2009-01-16-DeclareISelBug.ll b/test/CodeGen/PowerPC/2009-01-16-DeclareISelBug.ll new file mode 100644 index 0000000..0cf5518 --- /dev/null +++ b/test/CodeGen/PowerPC/2009-01-16-DeclareISelBug.ll @@ -0,0 +1,19 @@ +; RUN: llvm-as < %s | llc -mtriple=powerpc-apple-darwin9.5 +; rdar://6499616 + + %llvm.dbg.anchor.type = type { i32, i32 } + %llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8* } +@llvm.dbg.compile_units = linkonce constant %llvm.dbg.anchor.type { i32 458752, i32 17 } ; <%llvm.dbg.anchor.type*> [#uses=1] +@.str = internal constant [11 x i8] c"testcase.c\00" ; <[11 x i8]*> [#uses=1] +@.str1 = internal constant [30 x i8] c"/Volumes/SandBox/NightlyTest/\00" ; <[30 x i8]*> [#uses=1] +@.str2 = internal constant [57 x i8] c"4.2.1 (Based on Apple Inc. build 5628) (LLVM build 9999)\00" ; <[57 x i8]*> [#uses=1] +@llvm.dbg.compile_unit = internal constant %llvm.dbg.compile_unit.type { i32 458769, { }* bitcast (%llvm.dbg.anchor.type* @llvm.dbg.compile_units to { }*), i32 1, i8* getelementptr ([11 x i8]* @.str, i32 0, i32 0), i8* getelementptr ([30 x i8]* @.str1, i32 0, i32 0), i8* getelementptr ([57 x i8]* @.str2, i32 0, i32 0) } ; <%llvm.dbg.compile_unit.type*> [#uses=0] +@"\01LC" = internal constant [13 x i8] c"conftest.val\00" ; <[13 x i8]*> [#uses=1] + +define i32 @main() nounwind { +entry: + %0 = call i8* @fopen(i8* getelementptr ([13 x i8]* @"\01LC", i32 0, i32 0), i8* null) nounwind ; <i8*> [#uses=0] + unreachable +} + +declare i8* @fopen(i8*, i8*) |