From 2030db328ae319b53c358923009f3d48d6fd4b52 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 26 Oct 2020 15:20:14 +0000 Subject: [PATCH] [X86] Use mtriple instead of march in MIR tests --- llvm/test/CodeGen/X86/opt_phis.mir | 2 +- llvm/test/CodeGen/X86/opt_phis2.mir | 2 +- llvm/test/CodeGen/X86/unreachable-mbb-undef-phi.mir | 2 +- llvm/test/CodeGen/X86/x87-reg-usage.mir | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/test/CodeGen/X86/opt_phis.mir b/llvm/test/CodeGen/X86/opt_phis.mir index f00ee76..d9c63e3 100644 --- a/llvm/test/CodeGen/X86/opt_phis.mir +++ b/llvm/test/CodeGen/X86/opt_phis.mir @@ -1,4 +1,4 @@ -# RUN: llc -run-pass opt-phis -march=x86-64 -o - %s | FileCheck %s +# RUN: llc -run-pass opt-phis -mtriple=x86_64-- -o - %s | FileCheck %s --- | define void @test() { ret void diff --git a/llvm/test/CodeGen/X86/opt_phis2.mir b/llvm/test/CodeGen/X86/opt_phis2.mir index 3683d31..7aca734 100644 --- a/llvm/test/CodeGen/X86/opt_phis2.mir +++ b/llvm/test/CodeGen/X86/opt_phis2.mir @@ -1,4 +1,4 @@ -# RUN: llc -run-pass opt-phis -march=x86-64 -o - %s | FileCheck %s +# RUN: llc -run-pass opt-phis -mtriple=x86_64-- -o - %s | FileCheck %s # All PHIs should be removed since they can be securely replaced # by %8 register. # CHECK-NOT: PHI diff --git a/llvm/test/CodeGen/X86/unreachable-mbb-undef-phi.mir b/llvm/test/CodeGen/X86/unreachable-mbb-undef-phi.mir index 0839475..1bdbc53 100644 --- a/llvm/test/CodeGen/X86/unreachable-mbb-undef-phi.mir +++ b/llvm/test/CodeGen/X86/unreachable-mbb-undef-phi.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 %s -o - -run-pass=processimpdefs -run-pass=unreachable-mbb-elimination | FileCheck %s +# RUN: llc -mtriple=x86_64-- %s -o - -run-pass=processimpdefs -run-pass=unreachable-mbb-elimination | FileCheck %s --- name: f tracksRegLiveness: true diff --git a/llvm/test/CodeGen/X86/x87-reg-usage.mir b/llvm/test/CodeGen/X86/x87-reg-usage.mir index 8f9512c..6f4ff70 100644 --- a/llvm/test/CodeGen/X86/x87-reg-usage.mir +++ b/llvm/test/CodeGen/X86/x87-reg-usage.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -march=x86-64 -mattr=+x87 -mattr=-sse -run-pass none -o - %s | FileCheck %s +# RUN: llc -mtriple=x86_64-- -mattr=+x87 -mattr=-sse -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the x87 fpsw and fpcw regs --- | -- 2.7.4