diff options
Diffstat (limited to 'test/CodeGen/Generic/2002-04-14-UnexpectedUnsignedType.ll')
-rw-r--r-- | test/CodeGen/Generic/2002-04-14-UnexpectedUnsignedType.ll | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/test/CodeGen/Generic/2002-04-14-UnexpectedUnsignedType.ll b/test/CodeGen/Generic/2002-04-14-UnexpectedUnsignedType.ll index 3e2dbfe..879c4c8 100644 --- a/test/CodeGen/Generic/2002-04-14-UnexpectedUnsignedType.ll +++ b/test/CodeGen/Generic/2002-04-14-UnexpectedUnsignedType.ll @@ -1,15 +1,13 @@ -; RUN: llvm-upgrade < %s | llvm-as -o - | llc +; RUN: llvm-as < %s -o - | llc ; 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 +} |