1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -instcombine -S | FileCheck %s
4 target datalayout = "e-p:32:32"
5 target triple = "i686-pc-linux-gnu"
8 declare i7* @ctime2(i999*)
10 define i7* @ctime(i999*) {
11 ; CHECK-LABEL: @ctime(
13 ; CHECK-NEXT: [[I0:%.*]] = call i32 @main2()
14 ; CHECK-NEXT: [[TMP1:%.*]] = inttoptr i32 [[I0]] to i7*
15 ; CHECK-NEXT: ret i7* [[TMP1]]
18 %i0 = call i7* bitcast (i32 ()* @main2 to i7* ()*)( )
25 ; CHECK-NEXT: [[I1:%.*]] = call i7* @ctime2(i999* null)
26 ; CHECK-NEXT: [[TMP0:%.*]] = ptrtoint i7* [[I1]] to i32
27 ; CHECK-NEXT: ret i32 [[TMP0]]
30 %i1 = call i32 bitcast (i7* (i999*)* @ctime2 to i32 (i99*)*)( i99* null )