From cecc3ebcc80169bc42b7f76a9489f061edf6111c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 4 Apr 2006 17:38:31 +0000 Subject: [PATCH] New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27401 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/Alpha/2006-04-04-zextload.ll | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 test/CodeGen/Alpha/2006-04-04-zextload.ll diff --git a/test/CodeGen/Alpha/2006-04-04-zextload.ll b/test/CodeGen/Alpha/2006-04-04-zextload.ll new file mode 100644 index 00000000000..055bc1048a7 --- /dev/null +++ b/test/CodeGen/Alpha/2006-04-04-zextload.ll @@ -0,0 +1,36 @@ +; RUN: llvm-as < %s | llc -march=alpha + +target endian = little +target pointersize = 64 +target triple = "alphaev67-unknown-linux-gnu" + %llvm.dbg.compile_unit.type = type { uint, { }*, uint, uint, sbyte*, sbyte*, sbyte* } + %struct._Callback_list = type { %struct._Callback_list*, void (uint, %struct.ios_base*, int)*, int, int } + %struct._Impl = type { int, %struct.facet**, ulong, %struct.facet**, sbyte** } + %struct._Words = type { sbyte*, long } + "struct.__codecvt_abstract_base" = type { %struct.facet } + "struct.basic_streambuf >" = type { int (...)**, sbyte*, sbyte*, sbyte*, sbyte*, sbyte*, sbyte*, %struct.locale } + %struct.facet = type { int (...)**, int } + %struct.ios_base = type { int (...)**, long, long, uint, uint, uint, %struct._Callback_list*, %struct._Words, [8 x %struct._Words], int, %struct._Words*, %struct.locale } + %struct.locale = type { %struct._Impl* } + "struct.ostreambuf_iterator >" = type { "struct.basic_streambuf >"*, bool } +%llvm.dbg.compile_unit1047 = external global %llvm.dbg.compile_unit.type ; <%llvm.dbg.compile_unit.type*> [#uses=1] + +implementation ; Functions: + +void %_ZNKSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE15_M_insert_floatIdEES3_S3_RSt8ios_baseccT_() { +entry: + %tmp234 = seteq sbyte 0, 0 ; [#uses=1] + br bool %tmp234, label %cond_next243, label %cond_true235 + +cond_true235: ; preds = %entry + ret void + +cond_next243: ; preds = %entry + %tmp428 = load long* null ; [#uses=1] + %tmp428 = cast long %tmp428 to uint ; [#uses=1] + %tmp429 = alloca sbyte, uint %tmp428 ; [#uses=0] + call void %llvm.dbg.stoppoint( uint 1146, uint 0, { }* cast (%llvm.dbg.compile_unit.type* %llvm.dbg.compile_unit1047 to { }*) ) + unreachable +} + +declare void %llvm.dbg.stoppoint(uint, uint, { }*)