Frits van Bommel | c254966 | 2011-01-29 15:26:31 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -instsimplify -S | FileCheck %s |
| 2 | |
| 3 | define double @fdiv_of_undef(double %X) { |
Stephen Lin | c1c7a13 | 2013-07-14 01:42:54 +0000 | [diff] [blame^] | 4 | ; CHECK-LABEL: @fdiv_of_undef( |
Frits van Bommel | c254966 | 2011-01-29 15:26:31 +0000 | [diff] [blame] | 5 | ; undef / X -> undef |
| 6 | %r = fdiv double undef, %X |
| 7 | ret double %r |
| 8 | ; CHECK: ret double undef |
| 9 | } |
| 10 | |
| 11 | define double @fdiv_by_undef(double %X) { |
Stephen Lin | c1c7a13 | 2013-07-14 01:42:54 +0000 | [diff] [blame^] | 12 | ; CHECK-LABEL: @fdiv_by_undef( |
Frits van Bommel | c254966 | 2011-01-29 15:26:31 +0000 | [diff] [blame] | 13 | ; X / undef -> undef |
| 14 | %r = fdiv double %X, undef |
| 15 | ret double %r |
| 16 | ; CHECK: ret double undef |
| 17 | } |