[llvm] 3c3f2f9 - [x86] add test for mismatched fneg; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 06:45:42 PDT 2022


Author: Sanjay Patel
Date: 2022-06-01T09:45:33-04:00
New Revision: 3c3f2f99c445a4f5ae83ce9dc6ec0868246fbb4e

URL: https://github.com/llvm/llvm-project/commit/3c3f2f99c445a4f5ae83ce9dc6ec0868246fbb4e
DIFF: https://github.com/llvm/llvm-project/commit/3c3f2f99c445a4f5ae83ce9dc6ec0868246fbb4e.diff

LOG: [x86] add test for mismatched fneg; NFC

issue #55758

Added: 
    

Modified: 
    llvm/test/CodeGen/X86/neg_fp.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/neg_fp.ll b/llvm/test/CodeGen/X86/neg_fp.ll
index b71565603d747..1d7260a8e78e5 100644
--- a/llvm/test/CodeGen/X86/neg_fp.ll
+++ b/llvm/test/CodeGen/X86/neg_fp.ll
@@ -81,3 +81,15 @@ define float @fdiv_extra_use_changes_cost(float %a0, float %a1, float %a2) nounw
   %div5 = fdiv fast float %sub4, %mul2
   ret float %div5
 }
+
+; FIXME: PR55758 - this is not -(-X)
+
+define <2 x i64> @fneg_mismatched_sizes(<4 x float> %x) {
+; CHECK-LABEL: fneg_mismatched_sizes:
+; CHECK:       # %bb.0:
+; CHECK-NEXT:    retl
+  %n = fneg <4 x float> %x
+  %b = bitcast <4 x float> %n to <2 x i64>
+  %r = xor <2 x i64> %b, <i64 -9223372036854775808, i64 -9223372036854775808>
+  ret <2 x i64> %r
+}


        


More information about the llvm-commits mailing list