[PATCH] D77393: [X86] Fix implicit sign conversion warnings in X86 headers.

Phabricator via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 8 07:34:51 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG937e63b8d5e9: [X86] Fix x86-header-warnings.c test not detecting regressions as intended. (authored by Pierre Gousseau <pierre.gousseau at sony.com>).

Changed prior to commit:
  https://reviews.llvm.org/D77393?vs=255666&id=256019#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77393/new/

https://reviews.llvm.org/D77393

Files:
  clang/test/Headers/x86-header-warnings.c


Index: clang/test/Headers/x86-header-warnings.c
===================================================================
--- clang/test/Headers/x86-header-warnings.c
+++ clang/test/Headers/x86-header-warnings.c
@@ -1,16 +1,14 @@
 // Fix sign conversion warnings found by fsanitize=implicit-integer-sign-change
 // in intrinsic headers.
 // Preprocess file to workaround no warnings in system headers.
-// RUN: %clang_cc1 %s -triple x86_64-pc-linux-gnu -ffreestanding -E 2>&1 \
-// RUN:     | %clang_cc1 -x c - -triple x86_64-pc-linux-gnu -ffreestanding -Wsign-conversion -E -o - 2>&1 \
-// RUN:     | FileCheck --allow-empty %s
+// RUN: %clang_cc1 %s -triple x86_64-pc-linux-gnu -ffreestanding -E -CC 2>&1 \
+// RUN:     | %clang_cc1 -x c - -triple x86_64-pc-linux-gnu -Wsign-conversion -fsyntax-only -verify
 // REQUIRES: x86-registered-target
 
 #include <x86intrin.h>
 
 void test0() {
-  // CHECK-LABEL: test0
-  // CHECK-NOT: warning:
+  // expected-no-diagnostics
   _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
   _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_OFF);
   _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_MASK);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77393.256019.patch
Type: text/x-patch
Size: 1133 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200408/49cb9a98/attachment-0001.bin>


More information about the cfe-commits mailing list