Test case for ensuring correct reading back of cast constant expressions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32449 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2006-12-11 23:19:53 +00:00
parent 442b9a6981
commit 1565491af2

View File

@ -0,0 +1,8 @@
; This test ensures that we get a bitcast constant expression in and out,
; not a sitofp constant expression.
; RUN: llvm-as < %s | llvm-dis | grep 'bitcast ('
%G = external global int
float %tryit(int %A) {
ret float bitcast( int ptrtoint (int* %G to int) to float)
}