1 ; NOTE: Assertions have been autogenerated by update_test_checks.py 2 ; RUN: opt < %s -instsimplify -S | FileCheck %s 3 4 define double @fdiv_of_undef(double %X) { 5 ; CHECK-LABEL: @fdiv_of_undef( 6 ; CHECK: ret double undef 7 ; 8 ; undef / X -> undef 9 %r = fdiv double undef, %X 10 ret double %r 11 } 12 13 define double @fdiv_by_undef(double %X) { 14 ; CHECK-LABEL: @fdiv_by_undef( 15 ; CHECK: ret double undef 16 ; 17 ; X / undef -> undef 18 %r = fdiv double %X, undef 19 ret double %r 20 } 21