2013-06-28 09:29:35 +08:00
|
|
|
; RUN: opt < %s -instcombine -S | FileCheck %s
|
2008-01-06 18:12:28 +08:00
|
|
|
|
|
|
|
define void @f(i16 %y) {
|
2013-07-31 04:45:05 +08:00
|
|
|
ret void
|
2008-01-06 18:12:28 +08:00
|
|
|
}
|
2013-07-31 04:45:05 +08:00
|
|
|
|
2008-01-06 18:12:28 +08:00
|
|
|
define i32 @g(i32 %y) {
|
2013-07-31 04:45:05 +08:00
|
|
|
; CHECK-LABEL: @g(
|
|
|
|
; CHECK: call i32 bitcast
|
|
|
|
%x = call i32 bitcast (void (i16)* @f to i32 (i32)*)( i32 %y ) ; <i32> [#uses=1]
|
|
|
|
ret i32 %x
|
2008-01-06 18:12:28 +08:00
|
|
|
}
|