1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -instcombine -S | FileCheck %s
3 ; Verify that a cdecl-compatible calling convention does not trigger emitting
4 ; unreachable idom `store i1 true, i1* undef`.
6 define arm_aapcs_vfpcc i8 @bar(i8* %0) {
8 ; CHECK-NEXT: [[TMP2:%.*]] = load i8, i8* [[TMP0:%.*]], align 1
9 ; CHECK-NEXT: ret i8 [[TMP2]]
11 %2 = load i8, i8* %0, align 1
15 define dso_local arm_aapcs_vfpcc i8 @foo(i8* %0) {
17 ; CHECK-NEXT: [[TMP2:%.*]] = call i8 @bar(i8* [[TMP0:%.*]])
18 ; CHECK-NEXT: ret i8 [[TMP2]]
20 %2 = call i8 @bar(i8* %0)