Author: kparzysz Date: Thu Feb 18 14:02:03 2016 New Revision: 261251 URL: http://llvm.org/viewvc/llvm-project?rev=261251&view=rev Log: Make test less prone to attribute changes
Modified: cfe/trunk/test/CodeGen/ms-intrinsics.c Modified: cfe/trunk/test/CodeGen/ms-intrinsics.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/ms-intrinsics.c?rev=261251&r1=261250&r2=261251&view=diff ============================================================================== --- cfe/trunk/test/CodeGen/ms-intrinsics.c (original) +++ cfe/trunk/test/CodeGen/ms-intrinsics.c Thu Feb 18 14:02:03 2016 @@ -18,7 +18,7 @@ void *test_InterlockedExchangePointer(vo return _InterlockedExchangePointer(Target, Value); } -// CHECK: define{{.*}}i8* @test_InterlockedExchangePointer(i8** %Target, i8* %Value){{.*}}{ +// CHECK: define{{.*}}i8* @test_InterlockedExchangePointer(i8** {{[a-z_ ]*}}%Target, i8* %Value){{.*}}{ // CHECK: %[[TARGET:[0-9]+]] = bitcast i8** %Target to [[iPTR:i[0-9]+]]* // CHECK: %[[VALUE:[0-9]+]] = ptrtoint i8* %Value to [[iPTR]] // CHECK: %[[EXCHANGE:[0-9]+]] = atomicrmw xchg [[iPTR]]* %[[TARGET]], [[iPTR]] %[[VALUE]] seq_cst @@ -31,7 +31,7 @@ void *test_InterlockedCompareExchangePoi return _InterlockedCompareExchangePointer(Destination, Exchange, Comparand); } -// CHECK: define{{.*}}i8* @test_InterlockedCompareExchangePointer(i8** %Destination, i8* %Exchange, i8* %Comparand){{.*}}{ +// CHECK: define{{.*}}i8* @test_InterlockedCompareExchangePointer(i8** nocapture %Destination, i8* %Exchange, i8* %Comparand){{.*}}{ // CHECK: %[[DEST:[0-9]+]] = bitcast i8** %Destination to [[iPTR]]* // CHECK: %[[EXCHANGE:[0-9]+]] = ptrtoint i8* %Exchange to [[iPTR]] // CHECK: %[[COMPARAND:[0-9]+]] = ptrtoint i8* %Comparand to [[iPTR]] @@ -45,7 +45,7 @@ long test_InterlockedExchange(long *Targ return _InterlockedExchange(Target, Value); } -// CHECK: define{{.*}}i32 @test_InterlockedExchange(i32* %Target, i32 %Value){{.*}}{ +// CHECK: define{{.*}}i32 @test_InterlockedExchange(i32* {{[a-z_ ]*}}%Target, i32 %Value){{.*}}{ // CHECK: %[[EXCHANGE:[0-9]+]] = atomicrmw xchg i32* %Target, i32 %Value seq_cst // CHECK: ret i32 %[[EXCHANGE:[0-9]+]] // CHECK: } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits