From 260990f87da1ec4747666f7adf7993804c34530c 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 --- test/CodeGen/X86/opt_phis.mir | 2 +- test/CodeGen/X86/opt_phis2.mir | 2 +- test/CodeGen/X86/unreachable-mbb-undef-phi.mir | 2 +- test/CodeGen/X86/x87-reg-usage.mir | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/CodeGen/X86/opt_phis.mir b/test/CodeGen/X86/opt_phis.mir index f00ee76385d..d9c63e3ebeb 100644 --- a/test/CodeGen/X86/opt_phis.mir +++ b/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/test/CodeGen/X86/opt_phis2.mir b/test/CodeGen/X86/opt_phis2.mir index 3683d31db17..7aca7341182 100644 --- a/test/CodeGen/X86/opt_phis2.mir +++ b/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/test/CodeGen/X86/unreachable-mbb-undef-phi.mir b/test/CodeGen/X86/unreachable-mbb-undef-phi.mir index 08394756358..1bdbc538626 100644 --- a/test/CodeGen/X86/unreachable-mbb-undef-phi.mir +++ b/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/test/CodeGen/X86/x87-reg-usage.mir b/test/CodeGen/X86/x87-reg-usage.mir index 8f9512cf7e8..6f4ff700db7 100644 --- a/test/CodeGen/X86/x87-reg-usage.mir +++ b/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 --- |