1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/Transforms/ConstProp/float-to-ptr-cast.ll

13 lines
258 B
LLVM
Raw Normal View History

; RUN: llvm-as < %s | opt -constprop | llvm-dis | \
; RUN: grep -F {ret i32* null} | count 2
define i32* @test1() {
%X = inttoptr i64 0 to i32* ; <i32*> [#uses=1]
ret i32* %X
2006-11-20 22:20:57 +01:00
}
define i32* @test2() {
ret i32* null
2006-11-20 22:20:57 +01:00
}