[flang-commits] [flang] 9067de2 - [flang][driver]Fix broken PowerPC tests

Mats Petersson via flang-commits flang-commits at lists.llvm.org
Wed Sep 14 08:34:11 PDT 2022


Author: Mats Petersson
Date: 2022-09-14T16:33:38+01:00
New Revision: 9067de2a43145411eff8b7782a404c5834249717

URL: https://github.com/llvm/llvm-project/commit/9067de2a43145411eff8b7782a404c5834249717
DIFF: https://github.com/llvm/llvm-project/commit/9067de2a43145411eff8b7782a404c5834249717.diff

LOG: [flang][driver]Fix broken PowerPC tests

Tests don't work on PPC since `return` instruciton is't called `ret` (apparently)

Reviewed By: awarzynski

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

Added: 
    

Modified: 
    flang/test/Driver/emit-asm-from-mlir.mlir

Removed: 
    


################################################################################
diff  --git a/flang/test/Driver/emit-asm-from-mlir.mlir b/flang/test/Driver/emit-asm-from-mlir.mlir
index 3884c2cbc144c..5b16d2938e783 100644
--- a/flang/test/Driver/emit-asm-from-mlir.mlir
+++ b/flang/test/Driver/emit-asm-from-mlir.mlir
@@ -1,3 +1,6 @@
+// REQUIRES: aarch64-registered-target || x86-registered-target || arm-registered-target
+// Above restricts the test to those architectures that match "ret" to return
+// from a function.
 // Verify that the driver can consume MLIR/FIR files.
 
 // RUN: %flang_fc1 -S %s -o - | FileCheck %s


        


More information about the flang-commits mailing list