Make the testcase more challenging
authorChris Lattner <sabre@nondot.org>
Tue, 13 Apr 2004 17:18:07 +0000 (17:18 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 13 Apr 2004 17:18:07 +0000 (17:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12892 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/ioport.llx

index 37f80d2fb8543390bc0062d0fedb53df5bad76e1..8f09aa21049db3a4b68c24051cfa646a65d3c7ff 100644 (file)
@@ -5,14 +5,17 @@ implementation
 declare int %llvm.readport (ushort)
 declare void %llvm.writeport (int, ushort)
 
-uint %in (uint %p) {
-  %i1 = call int(ushort)* %llvm.readport (ushort 255)
-  ret uint 5
+int %in(ushort %p) {
+  %i1 = call int %llvm.readport (ushort 255)
+  %i2 = call int %llvm.readport (ushort %p)
+  %r = add int %i1, %i2
+  ret int %r
 }
 
 
-uint %out (uint %p) {
+void %out(ushort %p) {
   call void(int, ushort)* %llvm.writeport (int 1, ushort 255)
-  ret uint 5
+  call void(int, ushort)* %llvm.writeport (int 4, ushort %p)
+  ret void
 }