[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/ioport.llx
Chris Lattner
lattner at cs.uiuc.edu
Tue Apr 13 12:18:01 PDT 2004
Changes in directory llvm/test/Regression/CodeGen/X86:
ioport.llx updated: 1.1 -> 1.2
---
Log message:
Make the testcase more challenging
---
Diffs of the changes: (+8 -5)
Index: llvm/test/Regression/CodeGen/X86/ioport.llx
diff -u llvm/test/Regression/CodeGen/X86/ioport.llx:1.1 llvm/test/Regression/CodeGen/X86/ioport.llx:1.2
--- llvm/test/Regression/CodeGen/X86/ioport.llx:1.1 Mon Apr 12 11:42:43 2004
+++ llvm/test/Regression/CodeGen/X86/ioport.llx Tue Apr 13 12:18:07 2004
@@ -5,14 +5,17 @@
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
}
More information about the llvm-commits
mailing list