[PATCH] D69986: [X86] Bugfix for rL349334

Bing Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 22:17:27 PST 2019


yubing created this revision.
yubing added reviewers: craig.topper, LuoYuanke, pengfei, RKSimon.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Since the width of a bit field cannot exceed the width of the underlying type, we should change fraction's type to long long for ia32.


Repository:
  rT test-suite

https://reviews.llvm.org/D69986

Files:
  SingleSource/UnitTests/Vector/AVX512F/getmant.c


Index: SingleSource/UnitTests/Vector/AVX512F/getmant.c
===================================================================
--- SingleSource/UnitTests/Vector/AVX512F/getmant.c
+++ SingleSource/UnitTests/Vector/AVX512F/getmant.c
@@ -116,7 +116,7 @@
 double getmant_pd(double src, int interval, int sc) {
   union {
     struct {
-      unsigned long int fraction : 52;
+      unsigned long long fraction : 52;
       unsigned int exp : 11;
       unsigned int sign : 1;
     } st;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69986.228366.patch
Type: text/x-patch
Size: 479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191108/46f1210a/attachment.bin>


More information about the llvm-commits mailing list