[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/ioport.llx

John Criswell criswell at cs.uiuc.edu
Mon Apr 12 11:44:01 PDT 2004


Changes in directory llvm/test/Regression/CodeGen/X86:

ioport.llx added (r1.1)

---
Log message:

Added testcase for the llvm.readport and llvm.writeport intrinsics.



---
Diffs of the changes:  (+18 -0)

Index: llvm/test/Regression/CodeGen/X86/ioport.llx
diff -c /dev/null llvm/test/Regression/CodeGen/X86/ioport.llx:1.1
*** /dev/null	Mon Apr 12 11:42:56 2004
--- llvm/test/Regression/CodeGen/X86/ioport.llx	Mon Apr 12 11:42:43 2004
***************
*** 0 ****
--- 1,18 ----
+ ; RUN: llvm-as < %s | llc -march=x86
+ 
+ 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
+ }
+ 
+ 
+ uint %out (uint %p) {
+   call void(int, ushort)* %llvm.writeport (int 1, ushort 255)
+   ret uint 5
+ }
+ 





More information about the llvm-commits mailing list