llvm/llvm/test/Transforms/NewGVN/bitcast-of-call.ll

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -passes=newgvn -S | FileCheck %s
; PR2213

define ptr @f(ptr %x) {
; CHECK-LABEL: @f(
; CHECK-NEXT:  entry:
; CHECK-NEXT:    [[TMP:%.*]] = call ptr @m(i32 12)
; CHECK-NEXT:    ret ptr [[TMP]]
;
entry:
  %tmp = call ptr @m( i32 12 )            ; <ptr> [#uses=2]
  ret ptr %tmp
}

declare ptr @m(i32)