summaryrefslogtreecommitdiffstats
path: root/test/Assembler
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-08 09:10:22 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-08 09:10:22 +0000
commita3cf7e7a95f24429f553e053a5065819e7843a83 (patch)
treebcef81614c2a67f755198deabbc8ea9eeea253ea /test/Assembler
parent9d4e2d0a2ee1ffd472bf272429864f5d7931227b (diff)
downloadexternal_llvm-a3cf7e7a95f24429f553e053a5065819e7843a83.zip
external_llvm-a3cf7e7a95f24429f553e053a5065819e7843a83.tar.gz
external_llvm-a3cf7e7a95f24429f553e053a5065819e7843a83.tar.bz2
New test cases for PR1187
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler')
-rw-r--r--test/Assembler/2007-02-07-BasicBlockRename.ll14
-rw-r--r--test/Assembler/2007-02-07-UpgradeGVarConflict.ll19
2 files changed, 33 insertions, 0 deletions
diff --git a/test/Assembler/2007-02-07-BasicBlockRename.ll b/test/Assembler/2007-02-07-BasicBlockRename.ll
new file mode 100644
index 0000000..084dc69
--- /dev/null
+++ b/test/Assembler/2007-02-07-BasicBlockRename.ll
@@ -0,0 +1,14 @@
+; PR1187
+; RUN: llvm-upgrade < %s | llvm-as > /dev/null
+
+implementation
+
+int @main(int %argc, sbyte** %argv) {
+entry:
+ %exit = alloca int, align 4 ; <i32*> [#uses=11]
+ store int 0, int* %exit
+ br label %exit
+
+exit:
+ ret int 0
+}
diff --git a/test/Assembler/2007-02-07-UpgradeGVarConflict.ll b/test/Assembler/2007-02-07-UpgradeGVarConflict.ll
new file mode 100644
index 0000000..06e9525
--- /dev/null
+++ b/test/Assembler/2007-02-07-UpgradeGVarConflict.ll
@@ -0,0 +1,19 @@
+; For PR1187
+; RUN: llvm-upgrade < %s > /dev/null
+
+%struct.isc_hash_t = type { uint, sbyte*, int, uint, uint,
+ [4 x ubyte], ulong, ushort* }
+%hash = internal global %struct.isc_hash_t* null
+
+implementation
+
+void %somefunc() {
+ %key_addr = alloca sbyte*
+ %tmp21 = load sbyte** %key_addr
+ %tmp22 = call fastcc uint %hash(sbyte* %tmp21, uint 0)
+ ret void
+}
+
+internal fastcc uint %hash(sbyte* %key, uint %case_sensitive) {
+ ret uint 0
+}