Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Fir / target-rewrite-triple.fir
blob79f9cd641ace5dfb57d09af4c61396cfafcdc28d
1 // RUN: fir-opt --target-rewrite %s | FileCheck %s --check-prefix=UNCHANGED
2 // RUN: fir-opt --target-rewrite="target=x86_64-unknown-linux-gnu" %s | FileCheck %s --check-prefix=CHANGED
4 // UNCHANGED: llvm.target_triple = "aarch64-unknown-linux-gnu"
5 // CHANGED: llvm.target_triple = "x86_64-unknown-linux-gnu"
6 // CHANGED-NOT: llvm.target_triple = "aarch64-unknown-linux-gnu"
7 module attributes {llvm.target_triple = "aarch64-unknown-linux-gnu"}  {
8   func.func @dummyfunc() -> () {
9     return
10   }