1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes="ipsccp<func-spec>" -force-specialization -S < %s | FileCheck %s
4 ; Check that we don't crash and specialise on a poison value.
6 %struct.quux = type { i16 }
7 %struct.spam = type { i16 }
9 @global.12 = external global %struct.quux, align 1
11 define internal i16 @wobble(ptr byval(%struct.spam) %arg2) {
12 ; CHECK-LABEL: @wobble(
14 ; CHECK-NEXT: unreachable
20 define internal i16 @snork() {
21 ; CHECK-LABEL: @snork(
23 ; CHECK-NEXT: [[B:%.*]] = call i16 @wobble(ptr poison)
24 ; CHECK-NEXT: unreachable
27 %B = call i16 @wobble(ptr poison)
34 ; CHECK-NEXT: [[A:%.*]] = call i16 @snork()
35 ; CHECK-NEXT: unreachable
38 %A = call i16 @snork()