diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2018-11-07 14:44:09 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2018-11-07 14:44:09 +0000 |
| commit | 46a2510d010972fed9ba00a817c0d3a26a7c16b5 (patch) | |
| tree | d3e5da71ab2e9d934f279579ad99e91d26b011b5 /llvm/test/Transforms | |
| parent | de58e936667f57a0a891e0f283a0788c9241d024 (diff) | |
| download | bcm5719-llvm-46a2510d010972fed9ba00a817c0d3a26a7c16b5.tar.gz bcm5719-llvm-46a2510d010972fed9ba00a817c0d3a26a7c16b5.zip | |
[InstCombine] add FMF to fcmp to show failure to propagate; NFC
llvm-svn: 346317
Diffstat (limited to 'llvm/test/Transforms')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/fcmp.ll | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/test/Transforms/InstCombine/fcmp.ll b/llvm/test/Transforms/InstCombine/fcmp.ll index 919659e45f4..dc91ee9552b 100644 --- a/llvm/test/Transforms/InstCombine/fcmp.ll +++ b/llvm/test/Transforms/InstCombine/fcmp.ll @@ -193,7 +193,7 @@ define <2 x i1> @fabs_ole(<2 x float> %a) { ; CHECK-NEXT: ret <2 x i1> [[CMP]] ; %call = call <2 x float> @llvm.fabs.v2f32(<2 x float> %a) - %cmp = fcmp ole <2 x float> %call, zeroinitializer + %cmp = fcmp ninf ole <2 x float> %call, zeroinitializer ret <2 x i1> %cmp } @@ -203,7 +203,7 @@ define i1 @fabs_ogt(double %a) { ; CHECK-NEXT: ret i1 [[CMP]] ; %call = call double @llvm.fabs.f64(double %a) - %cmp = fcmp ogt double %call, 0.0 + %cmp = fcmp reassoc ogt double %call, 0.0 ret i1 %cmp } @@ -213,7 +213,7 @@ define i1 @fabs_oge(double %a) { ; CHECK-NEXT: ret i1 [[CMP]] ; %call = call double @llvm.fabs.f64(double %a) - %cmp = fcmp oge double %call, 0.0 + %cmp = fcmp afn oge double %call, 0.0 ret i1 %cmp } @@ -223,7 +223,7 @@ define i1 @fabs_une(half %a) { ; CHECK-NEXT: ret i1 [[CMP]] ; %call = call half @llvm.fabs.f16(half %a) - %cmp = fcmp une half %call, 0.0 + %cmp = fcmp ninf une half %call, 0.0 ret i1 %cmp } @@ -233,7 +233,7 @@ define i1 @fabs_oeq(double %a) { ; CHECK-NEXT: ret i1 [[CMP]] ; %call = call double @llvm.fabs.f64(double %a) - %cmp = fcmp oeq double %call, 0.0 + %cmp = fcmp ninf reassoc oeq double %call, 0.0 ret i1 %cmp } @@ -243,7 +243,7 @@ define i1 @fabs_one(double %a) { ; CHECK-NEXT: ret i1 [[CMP]] ; %call = call double @llvm.fabs.f64(double %a) - %cmp = fcmp one double %call, 0.0 + %cmp = fcmp fast one double %call, 0.0 ret i1 %cmp } @@ -253,7 +253,7 @@ define <2 x i1> @fabs_ueq(<2 x float> %a) { ; CHECK-NEXT: ret <2 x i1> [[CMP]] ; %call = call <2 x float> @llvm.fabs.v2f32(<2 x float> %a) - %cmp = fcmp ueq <2 x float> %call, zeroinitializer + %cmp = fcmp arcp ueq <2 x float> %call, zeroinitializer ret <2 x i1> %cmp } |

