Exit only with a value from 0-255.
authorChris Lattner <sabre@nondot.org>
Mon, 22 Nov 2004 19:50:41 +0000 (19:50 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 22 Nov 2004 19:50:41 +0000 (19:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18119 91177308-0d34-0410-b5e6-96231b3b80d8

test/ExecutionEngine/test-call.ll

index 89e128a5a12807f3e126c0ae05bd1736a38b9c44..e73157d917c87a8361bfbaa4e6525b439c13f24d 100644 (file)
@@ -5,8 +5,9 @@
 declare void %exit(int)
 
 int %test(sbyte %C, short %S) {
-  %X = cast short %S to int
-  ret int %X
+  %X = cast short %S to ubyte
+  %Y = cast ubyte %X to int
+  ret int %Y
 }
 
 void %FP(void(int) * %F) {