1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/test/Transforms/InstCombine/pr28143.ll
David Majnemer 89fe9b6eda [TargetLibraryInfo] Teach isValidProtoForLibFunc about tan
We would fail to validate the type of the tan function which would cause
downstream users of isValidProtoForLibFunc to assert.

This fixes PR28143.

llvm-svn: 272802
2016-06-15 16:47:23 +00:00

13 lines
220 B
LLVM

; RUN: opt -S -instcombine < %s | FileCheck %s
define void @test1() {
entry:
call void @tan()
ret void
}
; CHECK-LABEL: define void @test1(
; CHECK: call void @tan()
; CHECK-NEXT: ret void
declare void @tan()