Fix tests of constant folding of fp operations on NaN values

Fix failures introduced due to change rG0b336b6048ae.
This commit is contained in:
Ehud Katz 2020-01-21 21:48:07 +02:00
parent d5de972f5b
commit feb5619091
2 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,7 @@ define double @test_NaN_2() {
define double @test_NaN_3() {
; CHECK-LABEL: @test_NaN_3(
; CHECK-NEXT: ret double 0x7FF8000000000000
; CHECK-NEXT: ret double 0xFFF8000000000000
;
%1 = call double @llvm.fma.f64(double 0xFFF8000000000000, double 8.0, double 0.0)
ret double %1
@ -86,7 +86,7 @@ define double @test_NaN_3() {
define double @test_NaN_4() {
; CHECK-LABEL: @test_NaN_4(
; CHECK-NEXT: ret double 0x7FF8000000000000
; CHECK-NEXT: ret double 0xFFF8000000000000
;
%1 = call double @llvm.fma.f64(double 7.0, double 0xFFF8000000000000, double 0.0)
ret double %1

View File

@ -103,7 +103,7 @@ define float @frem_nan_op1(float %x) {
define double @fneg_nan_1(double %x) {
; CHECK-LABEL: @fneg_nan_1(
; CHECK-NEXT: ret double 0xFFFABCDEF0123456
; CHECK-NEXT: ret double 0x7FFABCDEF0123456
;
%r = fsub double -0.0, 0x7FFABCDEF0123456
ret double %r
@ -119,7 +119,7 @@ define double @unary_fneg_nan_1(double %x) {
define <2 x double> @fneg_nan_2(<2 x double> %x) {
; CHECK-LABEL: @fneg_nan_2(
; CHECK-NEXT: ret <2 x double> <double 0x7FF1234567890ABC, double 0xFFF0000000000001>
; CHECK-NEXT: ret <2 x double> <double 0xFFF9234567890ABC, double 0x7FF8000000000001>
;
%r = fsub <2 x double> <double -0.0, double -0.0>, <double 0xFFF1234567890ABC, double 0x7FF0000000000001>
ret <2 x double> %r