MIR Serialization: Initial serialization of stack objects.
[oota-llvm.git] / test / CodeGen / Generic / 2002-04-14-UnexpectedUnsignedType.ll
index 3e2dbfefae13be4c0306bc1ce503a265d3f0d259..dd382cfcb24dec4529e0c7d2782be593473b6240 100644 (file)
@@ -1,15 +1,13 @@
-; RUN: llvm-upgrade < %s | llvm-as -o - | llc 
+; 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
+}