1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
2 ; RUN: opt -S -passes=inline < %s | FileCheck %s
4 ; Check that we don't crash when computing the
5 ; base pointer of `bitcast <1 x ptr> to ptr`
7 define void @caller(<1 x ptr> %x) {
8 ; CHECK-LABEL: define void @caller(
9 ; CHECK-SAME: <1 x ptr> [[X:%.*]]) {
10 ; CHECK-NEXT: [[ENTRY:.*:]]
11 ; CHECK-NEXT: [[P:%.*]] = bitcast <1 x ptr> [[X]] to ptr
12 ; CHECK-NEXT: ret void
15 %p = bitcast <1 x ptr> %x to ptr
16 call void @callee(ptr %p)
20 define void @callee(ptr %p) {
21 ; CHECK-LABEL: define void @callee(
22 ; CHECK-SAME: ptr [[P:%.*]]) {
23 ; CHECK-NEXT: [[ENTRY:.*:]]
24 ; CHECK-NEXT: ret void