mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-20 12:31:40 +00:00
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:
parent
442b9a6981
commit
1565491af2
8
test/Bytecode/2006-12-11-Cast-ConstExpr.ll
Normal file
8
test/Bytecode/2006-12-11-Cast-ConstExpr.ll
Normal 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)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user