aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2008-12-19 10:55:56 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2008-12-19 10:55:56 +0000
commit1a93184e2d9beb24b0b9a7c24d5e7c7b51d8ee10 (patch)
tree6f60253965df296ed5310198772ec2eeb0bd5a95 /test
parent195f24c3efce8798431dbe714a60620cf6205e75 (diff)
downloadexternal_llvm-1a93184e2d9beb24b0b9a7c24d5e7c7b51d8ee10.zip
external_llvm-1a93184e2d9beb24b0b9a7c24d5e7c7b51d8ee10.tar.gz
external_llvm-1a93184e2d9beb24b0b9a7c24d5e7c7b51d8ee10.tar.bz2
Fix bug 3202.
The EH_frame and .eh symbols are now private, except for darwin9 and earlier. The patch also fixes the definition of PrivateGlobalPrefix on pcc linux. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/PowerPC/20081212.ll10
-rw-r--r--test/CodeGen/X86/20081212.ll12
2 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/20081212.ll b/test/CodeGen/PowerPC/20081212.ll
new file mode 100644
index 0000000..21218f5
--- /dev/null
+++ b/test/CodeGen/PowerPC/20081212.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | grep ^.L_Z1fv.eh
+; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin9 | grep ^__Z1fv.eh
+
+define void @_Z1fv() {
+entry:
+ br label %return
+
+return:
+ ret void
+}
diff --git a/test/CodeGen/X86/20081212.ll b/test/CodeGen/X86/20081212.ll
new file mode 100644
index 0000000..1a5cad9
--- /dev/null
+++ b/test/CodeGen/X86/20081212.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-unknown-linux-gnu | grep ^.L_Z1fv.eh
+; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-unknown-linux-gnu | grep ^.L_Z1fv.eh
+; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=-mtriple=x86_64-apple-darwin9 | grep ^__Z1fv.eh
+; RUN: llvm-as < %s | llc -march=x86 -mtriple=-mtriple=i386-apple-darwin9 | grep ^__Z1fv.eh
+
+define void @_Z1fv() {
+entry:
+ br label %return
+
+return:
+ ret void
+}