Perform sibcall in some cases when arguments are passes memory. Look for cases
[oota-llvm.git] / test / CodeGen / Generic / 2002-04-14-UnexpectedUnsignedType.ll
index 6e617361bc81d8ff1dfdb5a113baa9009876ab7f..dd382cfcb24dec4529e0c7d2782be593473b6240 100644 (file)
@@ -1,13 +1,13 @@
-; This causes the backend to assert out with:
+; RUN: llc < %s
+
+; This caused the backend to assert out with:
 ; SparcInstrInfo.cpp:103: failed assertion `0 && "Unexpected unsigned type"'
 ;
-implementation
 
-declare void "bar"(sbyte* %G)
+declare void @bar(i8*)
 
-void "foo"()
-begin
-       %cast225 = cast ulong 123456 to sbyte*          ; <sbyte*> [#uses=1]
-       call void %bar( sbyte* %cast225)
-       ret void
-end
+define void @foo() {
+        %cast225 = inttoptr i64 123456 to i8*           ; <i8*> [#uses=1]
+        call void @bar( i8* %cast225 )
+        ret void
+}