[llvm] r373098 - Change -march=systemz to triple and fix test

Kai Nacke via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 27 09:19:16 PDT 2019


Author: redstar
Date: Fri Sep 27 09:19:15 2019
New Revision: 373098

URL: http://llvm.org/viewvc/llvm-project?rev=373098&view=rev
Log:
Change -march=systemz to triple and fix test

These two test cases use -march=systemz instead of a triple. In
particular, the used file format is then based on the default host
triple. This leads to different behaviour on different platforms.

The SystemZ implementation uses the integrated assembler for a
long time now. The mature-mc-support test can be fully enabled.

Differential Revision: https://reviews.llvm.org/D68129

Modified:
    llvm/trunk/test/CodeGen/SystemZ/mature-mc-support.ll
    llvm/trunk/test/CodeGen/SystemZ/tail-call-mem-intrinsics.ll

Modified: llvm/trunk/test/CodeGen/SystemZ/mature-mc-support.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/mature-mc-support.ll?rev=373098&r1=373097&r2=373098&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/mature-mc-support.ll (original)
+++ llvm/trunk/test/CodeGen/SystemZ/mature-mc-support.ll Fri Sep 27 09:19:15 2019
@@ -1,12 +1,10 @@
 ; Test that inline assembly is parsed by the MC layer when MC support is mature
 ; (even when the output is assembly).
-; FIXME: SystemZ doesn't use the integrated assembler by default so we only test
-; that -filetype=obj tries to parse the assembly.
 
-; SKIP: not llc -march=systemz < %s > /dev/null 2> %t1
-; SKIP: FileCheck %s < %t1
+; RUN: not llc -mtriple=s390x-linux-gnu < %s > /dev/null 2> %t1
+; RUN: FileCheck %s < %t1
 
-; RUN: not llc -march=systemz -filetype=obj < %s > /dev/null 2> %t2
+; RUN: not llc -mtriple=s390x-linux-gnu -filetype=obj < %s > /dev/null 2> %t2
 ; RUN: FileCheck %s < %t2
 
 

Modified: llvm/trunk/test/CodeGen/SystemZ/tail-call-mem-intrinsics.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/tail-call-mem-intrinsics.ll?rev=373098&r1=373097&r2=373098&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/tail-call-mem-intrinsics.ll (original)
+++ llvm/trunk/test/CodeGen/SystemZ/tail-call-mem-intrinsics.ll Fri Sep 27 09:19:15 2019
@@ -1,4 +1,4 @@
-; RUN: llc -march=systemz < %s | FileCheck %s
+; RUN: llc -mtriple=s390x-linux-gnu < %s | FileCheck %s
 
 ; CHECK-LABEL: tail_memcpy:
 ; CHECK: jg memcpy




More information about the llvm-commits mailing list