r219679 - [SystemZ] Add test case to verify default use of integrated assembler

David Blaikie dblaikie at gmail.com
Tue Oct 14 08:41:35 PDT 2014


On Tue, Oct 14, 2014 at 4:45 AM, Ulrich Weigand <ulrich.weigand at de.ibm.com>
wrote:

> Author: uweigand
> Date: Tue Oct 14 06:45:53 2014
> New Revision: 219679
>
> URL: http://llvm.org/viewvc/llvm-project?rev=219679&view=rev
> Log:
> [SystemZ] Add test case to verify default use of integrated assembler
>
>
> Added:
>     cfe/trunk/test/Driver/systemz-as.s
>
> Added: cfe/trunk/test/Driver/systemz-as.s
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/systemz-as.s?rev=219679&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/Driver/systemz-as.s (added)
> +++ cfe/trunk/test/Driver/systemz-as.s Tue Oct 14 06:45:53 2014
>

Out of curiosity - were there tests for the default assembler on other
achitectures? (if you change the default so that no architecture uses the
integrated assembler by default, do other tests fail? Maybe you can find
existing tests of this functionality for other achitectures so you can put
this test beside/in/with those existing tests)


> @@ -0,0 +1,14 @@
> +// Make sure SystemZ defaults to using the integrated assembler
> +
> +// RUN: %clang -target s390x-ibm-linux -### -c %s 2>&1 \
> +// RUN: | FileCheck -check-prefix=DEFAULT %s
> +// DEFAULT: "-cc1as"{{.*}} "-target-cpu" "z10"
> +
> +// RUN: %clang -target s390x-ibm-linux -integrated-as -### -c %s 2>&1 \
> +// RUN: | FileCheck -check-prefix=IAS %s
> +// IAS: "-cc1as"{{.*}} "-target-cpu" "z10"
>

If you like, you could do these first two with the same CHECK line (I'd
probably just use the default CHECK suffix)


> +
> +// RUN: %clang -target s390x-ibm-linux -no-integrated-as -### -c %s 2>&1 \
> +// RUN: | FileCheck -check-prefix=NO-IAS %s
> +// NO-IAS: "-march=z10"
>

& maybe test this with CHECK-NOT: "-cc1as" might be more direct/obvious
what it's testing?


> +
>
>
> _______________________________________________
> 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/20141014/5b71fb36/attachment.html>


More information about the cfe-commits mailing list