diff options
-rw-r--r-- | test/Transforms/ConstProp/float-to-ptr-cast.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/ConstProp/float-to-ptr-cast.ll b/test/Transforms/ConstProp/float-to-ptr-cast.ll new file mode 100644 index 0000000..39e0fc7 --- /dev/null +++ b/test/Transforms/ConstProp/float-to-ptr-cast.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | opt -constprop | llvm-dis | grep -F 'ret int* null' | wc -l | grep 2 +int* %test1() { + %X = cast float 0.0 to int* + ret int* %X +} + +int* %test2() { + ret int* cast (float 0.0 to int*) +} |