OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
474d3b3
)
Add a few more ptrtoint/inttoptr cast tests.
author
Dan Gohman
<gohman@apple.com>
Fri, 13 Mar 2009 23:54:51 +0000
(23:54 +0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 13 Mar 2009 23:54:51 +0000
(23:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66989
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/CodeGen/X86/fast-isel.ll
patch
|
blob
|
history
diff --git
a/test/CodeGen/X86/fast-isel.ll
b/test/CodeGen/X86/fast-isel.ll
index
cd1e516
..
2ee2c83
100644
(file)
--- a/
test/CodeGen/X86/fast-isel.ll
+++ b/
test/CodeGen/X86/fast-isel.ll
@@
-48,11
+48,19
@@
entry:
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
+}