xref: /aosp_15_r20/external/llvm/test/Bitcode/2006-12-11-Cast-ConstExpr.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; This test ensures that we get a bitcast constant expression in and out,
2*9880d681SAndroid Build Coastguard Worker; not a sitofp constant expression.
3*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as < %s | llvm-dis | FileCheck %s
4*9880d681SAndroid Build Coastguard Worker; RUN: verify-uselistorder < %s
5*9880d681SAndroid Build Coastguard Worker; CHECK: bitcast (
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker@G = external global i32
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerdefine float @tryit(i32 %A) {
10*9880d681SAndroid Build Coastguard Worker   ret float bitcast( i32 ptrtoint (i32* @G to i32) to float)
11*9880d681SAndroid Build Coastguard Worker}
12