[flang-commits] [flang] e9bf766 - [flang] Add target/triple in a test

Andrzej Warzynski via flang-commits flang-commits at lists.llvm.org
Mon Jun 13 07:04:16 PDT 2022


Author: Andrzej Warzynski
Date: 2022-06-13T14:01:37Z
New Revision: e9bf76675d8260bb4feebb12ca353b56ca7f9623

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

LOG: [flang] Add target/triple in a test

A test added in https://reviews.llvm.org/D127207 is missing
target/triple. This has caused the PowerPC buildbot to start failing:
  * https://lab.llvm.org/buildbot/#/builders/21/builds/42860
(on PowerPC `; CHECK: ret` should be replaced with `; CHECK: `blr`).

Sending this without a review as the fix is rather straightforward. Note
that I've decided to add triple/target instead of e.g. removing:
`; CHECK: ret`. That's for consistency with other tests that generate
assembly. We could change that if that's what folks prefer.

Added: 
    

Modified: 
    flang/test/Driver/input-from-stdin-llvm.ll

Removed: 
    


################################################################################
diff  --git a/flang/test/Driver/input-from-stdin-llvm.ll b/flang/test/Driver/input-from-stdin-llvm.ll
index 142c332af1e53..b223c85bea8c7 100644
--- a/flang/test/Driver/input-from-stdin-llvm.ll
+++ b/flang/test/Driver/input-from-stdin-llvm.ll
@@ -1,5 +1,7 @@
 ; Verify that reading from stdin works as expected - LLVM input
 
+; REQUIRES: aarch64-registered-target
+
 ;----------
 ; RUN LINES
 ;----------
@@ -9,8 +11,8 @@
 ; RUN: cat %s | not %flang_fc1 -S - -o -
 
 ; Input type is explicit
-; RUN: cat %s | %flang -x ir -S - -o - | FileCheck %s
-; RUN: cat %s | %flang_fc1 -x ir -S - -o - | FileCheck %s
+; RUN: cat %s | %flang -x ir -S -target aarch64-unknown-linux-gnu - -o - | FileCheck %s
+; RUN: cat %s | %flang_fc1 -x ir -S -triple aarch64-unknown-linux-gnu - -o - | FileCheck %s
 
 ;----------------
 ; EXPECTED OUTPUT


        


More information about the flang-commits mailing list