2011-01-29 23:26:31 +08:00
|
|
|
; RUN: opt < %s -instsimplify -S | FileCheck %s
|
|
|
|
|
|
|
|
define double @fdiv_of_undef(double %X) {
|
2013-07-14 09:42:54 +08:00
|
|
|
; CHECK-LABEL: @fdiv_of_undef(
|
2011-01-29 23:26:31 +08:00
|
|
|
; undef / X -> undef
|
|
|
|
%r = fdiv double undef, %X
|
|
|
|
ret double %r
|
|
|
|
; CHECK: ret double undef
|
|
|
|
}
|
|
|
|
|
|
|
|
define double @fdiv_by_undef(double %X) {
|
2013-07-14 09:42:54 +08:00
|
|
|
; CHECK-LABEL: @fdiv_by_undef(
|
2011-01-29 23:26:31 +08:00
|
|
|
; X / undef -> undef
|
|
|
|
%r = fdiv double %X, undef
|
|
|
|
ret double %r
|
|
|
|
; CHECK: ret double undef
|
|
|
|
}
|