mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-14 22:07:54 +00:00
9 lines
274 B
LLVM
9 lines
274 B
LLVM
|
; 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)
|
||
|
}
|