[llvm-commits] [llvm] r66989 - /llvm/trunk/test/CodeGen/X86/fast-isel.ll
Dan Gohman
gohman at apple.com
Fri Mar 13 16:54:51 PDT 2009
Author: djg
Date: Fri Mar 13 18:54:51 2009
New Revision: 66989
URL: http://llvm.org/viewvc/llvm-project?rev=66989&view=rev
Log:
Add a few more ptrtoint/inttoptr cast tests.
Modified:
llvm/trunk/test/CodeGen/X86/fast-isel.ll
Modified: llvm/trunk/test/CodeGen/X86/fast-isel.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fast-isel.ll?rev=66989&r1=66988&r2=66989&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fast-isel.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fast-isel.ll Fri Mar 13 18:54:51 2009
@@ -48,11 +48,19 @@
ret i32 %tmp2
}
-define i1 @ptrtoint(i8* %p) nounwind {
+define i1 @ptrtoint_i1(i8* %p) nounwind {
%t = ptrtoint i8* %p to i1
ret i1 %t
}
-define i8* @inttoptr(i1 %p) nounwind {
+define i8* @inttoptr_i1(i1 %p) nounwind {
%t = inttoptr i1 %p to i8*
ret i8* %t
}
+define i32 @ptrtoint_i32(i8* %p) nounwind {
+ %t = ptrtoint i8* %p to i32
+ ret i32 %t
+}
+define i8* @inttoptr_i32(i32 %p) nounwind {
+ %t = inttoptr i32 %p to i8*
+ ret i8* %t
+}
More information about the llvm-commits
mailing list