1 ; RUN: opt < %s -instsimplify -S | FileCheck %s
3 define double @fdiv_of_undef(double %X) {
4 ; CHECK: @fdiv_of_undef
6 %r = fdiv double undef, %X
8 ; CHECK: ret double undef
11 define double @fdiv_by_undef(double %X) {
12 ; CHECK: @fdiv_by_undef
14 %r = fdiv double %X, undef
16 ; CHECK: ret double undef