xref: /llvm-project/llvm/test/CodeGen/AArch64/GlobalISel/call-lowering-const-bitcast-func.ll (revision 46584de02c1a38a0ccde85cb5c16331380966c36)
1; RUN: llc -O0 -global-isel -verify-machineinstrs %s -o - 2>&1 | FileCheck %s
2
3target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
4target triple = "aarch64-darwin-ios13.0"
5
6declare ptr @objc_msgSend(ptr, ptr, ...)
7define void @call_bitcast_ptr_const() {
8; CHECK-LABEL: @call_bitcast_ptr_const
9; CHECK: bl _objc_msgSend
10; CHECK-NOT: blr
11entry:
12  call void @objc_msgSend(ptr undef, ptr undef, [2 x i32] zeroinitializer, i32 0, float 1.000000e+00)
13  ret void
14}
15