1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -ipconstprop -S -o - | FileCheck %s
4 ; This test is just to verify that we do not crash/assert due to mismatch in
5 ; argument type between the caller and callee.
7 define dso_local void @foo(i16 %a) {
9 ; CHECK-NEXT: [[CALL:%.*]] = call i16 bitcast (i16 (i16, i16)* @bar to i16 (i16, i32)*)(i16 [[A:%.*]], i32 7)
10 ; CHECK-NEXT: ret void
12 %call = call i16 bitcast (i16 (i16, i16) * @bar to i16 (i16, i32) *)(i16 %a, i32 7)
16 define internal i16 @bar(i16 %p1, i16 %p2) {
18 ; CHECK-NEXT: ret i16 [[P2:%.*]]