]> granicus.if.org Git - clang/commitdiff
[OpenCL] Fix vector literal test broken in rL367675.
authorAnastasia Stulova <anastasia.stulova@arm.com>
Mon, 5 Aug 2019 09:50:28 +0000 (09:50 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Mon, 5 Aug 2019 09:50:28 +0000 (09:50 +0000)
Avoid checking alignment unnecessary that is not portable
among targets.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367823 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenOpenCL/vector_literals_valid.cl

index 5aa7ae4a4b8924cedf74bfec77b07aa88f15a5af..249c95cd756d9b6f190a35c0ef0650e054806801 100644 (file)
@@ -51,11 +51,11 @@ void vector_literals_valid() {
   //CHECK: store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %a
   int4 a = (int4)(1);
 
-  //CHECK: load <4 x i32>, <4 x i32>* %a, align 16
+  //CHECK: load <4 x i32>, <4 x i32>* %a
   //CHECK: shufflevector <4 x i32> %{{[0-9]+}}, <4 x i32> undef, <2 x i32> <i32 0, i32 1>
   //CHECK: shufflevector <2 x i32> %{{[0-9]+}}, <2 x i32> undef, <8 x i32> <i32 0, i32 1, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>
   //CHECK: shufflevector <8 x i32> <i32 1, i32 2, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>, <8 x i32> %{{.+}}, <8 x i32> <i32 0, i32 1, i32 8, i32 9, i32 undef, i32 undef, i32 undef, i32 undef>
-  //CHECK: load <4 x i32>, <4 x i32>* %a, align 16
+  //CHECK: load <4 x i32>, <4 x i32>* %a
   //CHECK: shufflevector <4 x i32> %{{[0-9]+}}, <4 x i32> undef, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef>
   //CHECK: shufflevector <8 x i32> %{{.+}}, <8 x i32> %{{.+}}, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 8, i32 9, i32 10, i32 11>
   int8 b = (int8)(1, 2, a.xy, a);