Skip to content

Commit b36d678

Browse files
[flang]Fix build failure in tests
After submitting the DataLayout fix, some tests fail when they didn't before. This has to do with the target essentially being ignored when these tests were run earlier, as the --target x86-unknown-linux-gnu only has to be correctly formed to be accepted. Now the target triple is actually being used to get the targetmachine earlier - before MLIR is generated - so the test that has a valid target but not available on the platform fails. Fix is to require x86 registered target when running those tests. Reviewed By: awarzynski Differential Revision: https://reviews.llvm.org/D137335
1 parent 74bace2 commit b36d678

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

flang/test/Fir/boxchar.fir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: tco --target=x86_64-unknown-linux-gnu %s | FileCheck %s
2-
// RUN: %flang_fc1 -emit-llvm -triple x86_64-unknown-linux-gnu %s -o - | FileCheck %s
1+
// RUN: tco %s | FileCheck %s
2+
// RUN: %flang_fc1 -emit-llvm %s -o - | FileCheck %s
33

44
// Test of building and passing boxchar.
55

flang/test/Fir/inline.fir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: tco --target=x86_64-unknown-linux-gnu --inline-all %s -o - | FileCheck %s
2-
// RUN: %flang_fc1 -triple x86_64-unknown-linux-gnu -mmlir --inline-all -emit-llvm %s -o - | FileCheck %s
1+
// RUN: tco --inline-all %s -o - | FileCheck %s
2+
// RUN: %flang_fc1 -mmlir --inline-all -emit-llvm %s -o - | FileCheck %s
33

44
// CHECK-LABEL: @add
55
func.func @add(%a : i32, %b : i32) -> i32 {

0 commit comments

Comments
 (0)