InstCombine: Don't assume that m_ZExt matches an Instruction
[oota-llvm.git] / test / Transforms / InstCombine / apint-call-cast-target.ll
1 ; RUN: opt < %s -instcombine -S | FileCheck %s
2
3 target datalayout = "e-p:32:32"
4 target triple = "i686-pc-linux-gnu"
5
6 define i32 @main() {
7 ; CHECK-LABEL: @main(
8 ; CHECK: call i32 bitcast
9 entry:
10         %tmp = call i32 bitcast (i7* (i999*)* @ctime to i32 (i99*)*)( i99* null )
11         ret i32 %tmp
12 }
13
14 define i7* @ctime(i999*) {
15 ; CHECK-LABEL: @ctime(
16 ; CHECK: call i7* bitcast
17 entry:
18         %tmp = call i7* bitcast (i32 ()* @main to i7* ()*)( )
19         ret i7* %tmp
20 }