r188271 - Fix xcore tests to use regex.
jahanian
fjahanian at apple.com
Tue Aug 13 08:30:28 PDT 2013
Hopefully, this fixes breakage of score-abi.c on windows.
- Fariborz
On Aug 13, 2013, at 7:51 AM, Arnold Schwaighofer <aschwaighofer at apple.com> wrote:
> Author: arnolds
> Date: Tue Aug 13 09:51:38 2013
> New Revision: 188271
>
> URL: http://llvm.org/viewvc/llvm-project?rev=188271&view=rev
> Log:
> Fix xcore tests to use regex.
>
> Modified:
> cfe/trunk/test/CodeGen/xcore-abi.c
>
> Modified: cfe/trunk/test/CodeGen/xcore-abi.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/xcore-abi.c?rev=188271&r1=188270&r2=188271&view=diff
> ==============================================================================
> --- cfe/trunk/test/CodeGen/xcore-abi.c (original)
> +++ cfe/trunk/test/CodeGen/xcore-abi.c Tue Aug 13 09:51:38 2013
> @@ -7,26 +7,26 @@
> struct x { int a; };
> void testva (int n, ...) {
> va_list ap;
> - // CHECK: %ap = alloca i8*, align 4
> + // CHECK: [[AP:%[a-z0-9]+]] = alloca i8*, align 4
>
> char* v1 = va_arg (ap, char*);
> - // CHECK: %0 = va_arg i8** %ap, i8*
> + // CHECK: va_arg i8** [[AP]], i8*
>
> int v2 = va_arg (ap, int);
> - // CHECK: %1 = va_arg i8** %ap, i32
> + // CHECK: va_arg i8** [[AP]], i32
>
> long long int v3 = va_arg (ap, long long int);
> - // CHECK: %2 = va_arg i8** %ap, i64
> + // CHECK: va_arg i8** [[AP]], i64
>
> //struct x t = va_arg (ap, struct x);
> //cannot compile aggregate va_arg expressions yet
> }
>
> void testbuiltin (void) {
> -// CHECK: %0 = tail call i32 @llvm.xcore.getid()
> -// CHECK: %1 = tail call i32 @llvm.xcore.getps(i32 %0)
> -// CHECK: %2 = tail call i32 @llvm.xcore.bitrev(i32 %1)
> -// CHECK: tail call void @llvm.xcore.setps(i32 %0, i32 %2)
> +// CHECK: [[I:%[a-z0-9]+]] = tail call i32 @llvm.xcore.getid()
> +// CHECK: [[UI:%[a-z0-9]+]] = tail call i32 @llvm.xcore.getps(i32 [[I]])
> +// CHECK: [[UI2:%[a-z0-9]+]] = tail call i32 @llvm.xcore.bitrev(i32 [[UI]])
> +// CHECK: tail call void @llvm.xcore.setps(i32 [[I]], i32 [[UI2]])
> int i = __builtin_getid();
> unsigned int ui = __builtin_getps(i);
> ui = __builtin_bitrev(ui);
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130813/678b6932/attachment.html>
More information about the cfe-commits
mailing list