brintos

brintos / llvm-project-archived public Read only

0
0
Text · 723 B · 2c2aeb4 Raw
29 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 52; RUN: opt -S -passes=inline < %s | FileCheck %s3 4; Check that we don't crash when computing the5; base pointer of `bitcast <1 x ptr> to ptr`6 7define 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 ptr12; CHECK-NEXT:    ret void13;14entry:15  %p = bitcast <1 x ptr> %x to ptr16  call void @callee(ptr %p)17  ret void18}19 20define void @callee(ptr %p) {21; CHECK-LABEL: define void @callee(22; CHECK-SAME: ptr [[P:%.*]]) {23; CHECK-NEXT:  [[ENTRY:.*:]]24; CHECK-NEXT:    ret void25;26entry:27  ret void28}29