summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-02-19 21:53:59 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-02-19 21:53:59 +0000
commit0c99b096c55db6f6772d0ba7fde6ca7d6b9e1917 (patch)
tree37ac5d88a73cf502910e342ca449b58df1027f0d /llvm/test
parentf7ed82da1011dc74cfbac0a65b7295ca0d4473d3 (diff)
downloadbcm5719-llvm-0c99b096c55db6f6772d0ba7fde6ca7d6b9e1917.tar.gz
bcm5719-llvm-0c99b096c55db6f6772d0ba7fde6ca7d6b9e1917.zip
Added test case for PR1207.
llvm-svn: 34429
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/2007-02-19-LiveIntervalAssert.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/2007-02-19-LiveIntervalAssert.cpp b/llvm/test/CodeGen/X86/2007-02-19-LiveIntervalAssert.cpp
new file mode 100644
index 00000000000..365768afe79
--- /dev/null
+++ b/llvm/test/CodeGen/X86/2007-02-19-LiveIntervalAssert.cpp
@@ -0,0 +1,21 @@
+; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-pc-linux-gnu -relocation-model=pic
+; PR1027
+
+ %struct._IO_FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %struct._IO_marker*, %struct._IO_FILE*, i32, i32, i32, i16, i8, [1 x i8], i8*, i64, i8*, i8*, i8*, i8*, i32, i32, [40 x i8] }
+ %struct._IO_marker = type { %struct._IO_marker*, %struct._IO_FILE*, i32 }
+@stderr = external global %struct._IO_FILE*
+
+define void @__eprintf(i8* %string, i8* %expression, i32 %line, i8* %filename) {
+ %tmp = load %struct._IO_FILE** @stderr
+ %tmp5 = tail call i32 (%struct._IO_FILE*, i8*, ...)* @fprintf( %struct._IO_FILE* %tmp, i8* %string, i8* %expression, i32 %line, i8* %filename )
+ %tmp6 = load %struct._IO_FILE** @stderr
+ %tmp7 = tail call i32 @fflush( %struct._IO_FILE* %tmp6 )
+ tail call void @abort( )
+ unreachable
+}
+
+declare i32 @fprintf(%struct._IO_FILE*, i8*, ...)
+
+declare i32 @fflush(%struct._IO_FILE*)
+
+declare void @abort()
OpenPOWER on IntegriCloud