]> granicus.if.org Git - clang/commitdiff
Fix some tests that were failing on Windows
authorHans Wennborg <hans@hanshq.net>
Fri, 20 Apr 2018 15:33:44 +0000 (15:33 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 20 Apr 2018 15:33:44 +0000 (15:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330441 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/function-alignment.c
test/CodeGenOpenCL/denorms-are-zero.cl
test/Driver/save-stats.c

index 9101b2c043f32184ed7f4a4ebce72094512c3627..8564ceb02354bc293cb52962b49a0cf55952075a 100644 (file)
@@ -5,12 +5,12 @@
 void f(void) {}
 void __attribute__((__aligned__(64))) g(void) {}
 
-// CHECK-NONE-NOT: define void @f() #0 align
-// CHECK-NONE: define void @g() #0 align 64
+// CHECK-NONE-NOT: define {{(dso_local )?}}void @f() #0 align
+// CHECK-NONE: define {{(dso_local )?}}void @g() #0 align 64
 
-// CHECK-16: define void @f() #0 align 16
-// CHECK-16: define void @g() #0 align 64
+// CHECK-16: define {{(dso_local )?}}void @f() #0 align 16
+// CHECK-16: define {{(dso_local )?}}void @g() #0 align 64
 
-// CHECK-32: define void @f() #0 align 32
-// CHECK-32: define void @g() #0 align 64
+// CHECK-32: define {{(dso_local )?}}void @f() #0 align 32
+// CHECK-32: define {{(dso_local )?}}void @g() #0 align 64
 
index 27ec336990cff057c0238a04bad85f70c85b2fb9..ab8bf7641c8737d4924c59028c97c897e91f1825 100644 (file)
@@ -7,10 +7,10 @@
 // For all targets 'denorms-are-zero' attribute is set to 'true'
 // if '-cl-denorms-are-zero' was specified and  to 'false' otherwise.
 
-// CHECK-LABEL: define void @f()
+// CHECK-LABEL: define {{(dso_local )?}}void @f()
 // CHECK: attributes #{{[0-9]*}} = {{{[^}]*}} "denorms-are-zero"="false"
 //
-// DENORM-ZERO-LABEL: define void @f()
+// DENORM-ZERO-LABEL: define {{(dso_local )?}}void @f()
 // DENORM-ZERO: attributes #{{[0-9]*}} = {{{[^}]*}} "denorms-are-zero"="true"
 
 // For amdgcn target cpu fiji, fp32 should be flushed since fiji does not support fp32 denormals, unless +fp32-denormals is
index ba6c7a83277c95793ae44a01fa6effe6b1a93739..d70220331ecbc02d7e4c7dc869954164aa05f61f 100644 (file)
@@ -25,4 +25,4 @@
 // CHECK-LTO: "-plugin-opt=stats-file=save-stats.stats"
 
 // RUN: %clang -target x86_64-linux-unknown -save-stats=obj -flto -o obj/dir/save-stats.exe %s -### 2>&1 | FileCheck %s -check-prefix=CHECK-LTO-OBJ
-// CHECK-LTO-OBJ: "-plugin-opt=stats-file=obj/dir/save-stats.stats"
+// CHECK-LTO-OBJ: "-plugin-opt=stats-file=obj/dir{{/|\\\\}}save-stats.stats"