diff options
author | Dan Gohman <gohman@apple.com> | 2009-03-13 23:54:51 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-03-13 23:54:51 +0000 |
commit | d00d2feab2ddb3d0c89f6ca20c0a04216ddc77e9 (patch) | |
tree | b831ac8e061c484be36e60cd173eabe061f6d61d /test | |
parent | 474d3b3f40e117a66946e9fb9d2016b4c05caef0 (diff) | |
download | external_llvm-d00d2feab2ddb3d0c89f6ca20c0a04216ddc77e9.zip external_llvm-d00d2feab2ddb3d0c89f6ca20c0a04216ddc77e9.tar.gz external_llvm-d00d2feab2ddb3d0c89f6ca20c0a04216ddc77e9.tar.bz2 |
Add a few more ptrtoint/inttoptr cast tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66989 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/fast-isel.ll | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/CodeGen/X86/fast-isel.ll b/test/CodeGen/X86/fast-isel.ll index cd1e516..2ee2c83 100644 --- 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 +} |