diff --git a/llvm/test/tools/llvm-snippy/error_1.yaml b/llvm/test/tools/llvm-snippy/error_1.yaml deleted file mode 100644 index eef8946b6acd..000000000000 --- a/llvm/test/tools/llvm-snippy/error_1.yaml +++ /dev/null @@ -1,34 +0,0 @@ -# XFAIL: * -# RUN: llvm-snippy %s -march=riscv64-linux-gnu -mattr=-a -list-opcode-names -dump-mi -num-instrs=10 -model-plugin=NONEXISTENT >& %t || true -# RUN: FileCheck --input-file=%t --dump-input always %s - -sections: - - no: 1 - VMA: 0x80000000 - SIZE: 0x400000 - LMA: 0x80000000 - ACCESS: rw - - no: 2 - VMA: 0x80600000 - SIZE: 0x400000 - LMA: 0x80600000 - ACCESS: rx - - no: 3 - VMA: 0x90000000 - SIZE: 0x400000 - LMA: 0x90000000 - ACCESS: rw - - no: 4 - VMA: 0x90600000 - SIZE: 0x400000 - LMA: 0x90600000 - ACCESS: rx - - -histogram: - - [LW, 1.0] - - [SW, 1.0] - - [ADD, 1.0] - - [ADDI, 1.0] - -# CHECK: error: Incorrect list of sections: all RW sections must go either before all other sections or after them all diff --git a/llvm/test/tools/llvm-snippy/float-nan-propagation-error.yaml b/llvm/test/tools/llvm-snippy/float-nan-propagation-error.yaml deleted file mode 100644 index 9e973954dffd..000000000000 --- a/llvm/test/tools/llvm-snippy/float-nan-propagation-error.yaml +++ /dev/null @@ -1,23 +0,0 @@ -# XFAIL: * -# RUN: not llvm-snippy %s --model-plugin None |& FileCheck %s - -include: - - Inputs/sections.yaml - -options: - march: riscv64-unknown-elf - mcpu: generic-rv64 - mattr: "+d" - num-instrs: 10 - -fpu-config: - overwrite: - range: - min: 3 - max: 1 - -histogram: - - [FMUL_D, 1.0] - -# CHECK: {{.*}}.yaml: -# CHECK-SAME: error: Max should be greater or equal than min. diff --git a/llvm/test/tools/llvm-snippy/float-nan-propagation-warning.yaml b/llvm/test/tools/llvm-snippy/float-nan-propagation-warning.yaml deleted file mode 100644 index 98b64e28c6d4..000000000000 --- a/llvm/test/tools/llvm-snippy/float-nan-propagation-warning.yaml +++ /dev/null @@ -1,18 +0,0 @@ -# XFAIL: * -# RUN: llvm-snippy %s --model-plugin None |& FileCheck %s - -include: - - Inputs/sections.yaml - -options: - march: riscv64-unknown-elf - mcpu: generic-rv64 - mattr: "+d" - num-instrs: 10 - dump-mf: true - -histogram: - - [FMUL_D, 1.0] - -# CHECK: remark: Float override range was not specified -# CHECK-SAME: Using range: [{{-?[[:digit:]]+}}, {{-?[[:digit:]]+}}] diff --git a/llvm/test/tools/llvm-snippy/gen-plan-verification-warn.yaml b/llvm/test/tools/llvm-snippy/gen-plan-verification-warn.yaml deleted file mode 100644 index 64fb4fbc340d..000000000000 --- a/llvm/test/tools/llvm-snippy/gen-plan-verification-warn.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# XFAIL: * -# RUN: llvm-snippy %s -verify-gen-plan \ -# RUN: -march=riscv64-linux-gnu -mattr=+m \ -# RUN: -num-instrs=all |& FileCheck %s - -sections: - - no: 1 - VMA: 0x800000 - SIZE: 0x400 - LMA: 0x800000 - ACCESS: rx - - no: 2 - VMA: 0x806000 - SIZE: 0x4000 - LMA: 0x806000 - ACCESS: rw - -histogram: - - [DIV, 1.0] - - [XOR, 1.0] - -# CHECK: warning: request for {{[a-zA-Z0-9]+}} contains limits not only on the number of generated instructions: number of instructions in some blocks can differ from plan diff --git a/llvm/test/tools/llvm-snippy/redefine-sp-ext-funcs-warn.yaml b/llvm/test/tools/llvm-snippy/redefine-sp-ext-funcs-warn.yaml deleted file mode 100644 index 24264e3e99ad..000000000000 --- a/llvm/test/tools/llvm-snippy/redefine-sp-ext-funcs-warn.yaml +++ /dev/null @@ -1,49 +0,0 @@ -# XFAIL: * -# RUN: llvm-snippy %s --model-plugin None -redefine-sp=any |& \ -# RUN: FileCheck %s --ignore-case -# RUN: llvm-snippy %s --model-plugin None -redefine-sp=any |& \ -# RUN: FileCheck %s --ignore-case - -options: - march: riscv64-unknown-elf - mcpu: generic-rv64 - mattr: "+f,+d" - num-instrs: 10 - init-regs-in-elf: on - dump-mf: on - -sections: - - no: 0 - VMA: 0x200000 - SIZE: 0x10000 - LMA: 0x200000 - ACCESS: r - - no: 1 - VMA: 0x210000 - SIZE: 0x100000 - LMA: 0x210000 - ACCESS: rx - - no: 2 - VMA: 0x400000 - SIZE: 0x100000 - LMA: 0x400000 - ACCESS: rw - -call-graph: - entry-point: SnippyFunction - function-list: - - name: SnippyFunction - callees: - - myfunc - - name: myfunc - external: true - -histogram: - - [FADD_D, 3.0] - - [FDIV_D, 3.0] - - [FMUL_D, 3.0] - - [FSUB_D, 3.0] - - [JAL, 1.0] - - [ADDIW, 1.0] - -# CHECK: warning: call-graph contains external functions: 'redefine-sp' is assumed to be SP diff --git a/llvm/test/tools/llvm-snippy/reserved-reg-fail.yaml b/llvm/test/tools/llvm-snippy/reserved-reg-fail.yaml deleted file mode 100644 index 221bded70d52..000000000000 --- a/llvm/test/tools/llvm-snippy/reserved-reg-fail.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# XFAIL: * -# RUN: llvm-snippy %s -march=riscv64-linux-gnu -redefine-sp=SP \ -# RUN: -dump-mi -num-instrs=20000 -reserved-regs-list=X0,X1,X2,X3,X4,X5,\ -# RUN:X6,X7,X8,X9,X10,X11,X12,X13,X14,X15,X16,X17,X18,X19,X20,X21,X22,X23,X24,X25,X26,X27,\ -# RUN:X28,X29,X30,X31 -last-instr= -model-plugin=None >& %t || true -# RUN: FileCheck --input-file=%t --dump-input always %s -# RUN: not llvm-snippy %s -march=riscv64-linux-gnu \ -# RUN: -dump-mi -num-instrs=20000 -reserved-regs-list=X0,X1,X2,XA,X4,\ -# RUN: -last-instr= -model-plugin=None |& FileCheck --dump-input always \ -# RUN: --check-prefix=ILLEGAL %s -sections: - - no: 1 - VMA: 0x210000 - SIZE: 0x1000 - LMA: 0x210000 - ACCESS: rx - - no: 2 - VMA: 0x100000 - SIZE: 0x100000 - LMA: 0x100000 - ACCESS: rw - -histogram: - - [ADD, 1.0] - - [ADDI, 1.0] -# CHECK: LLVM ERROR: No available register GPR: instruction generation -# ILLEGAL: LLVM ERROR: Illegal register name XA is specified in --reserved-regs-list diff --git a/llvm/test/tools/llvm-snippy/stack-all-reserved.yaml b/llvm/test/tools/llvm-snippy/stack-all-reserved.yaml deleted file mode 100644 index d881623bbd1d..000000000000 --- a/llvm/test/tools/llvm-snippy/stack-all-reserved.yaml +++ /dev/null @@ -1,6 +0,0 @@ -# XFAIL: * -# RUN: llvm-snippy %s -march=riscv64-linux-gnu -mattr=+m,+c \ -# RUN: %S/Inputs/stack-all-reserved-layout.yaml \ -# RUN: -num-instrs=10000 -stack-size=1024 \ -# RUN: --reserved-regs-list=X1,X3,X4,X8,X9,X10,X11,X12,X13,X14,X15,X16,X17,X18,X19,X20,X21,X22,X23,X24,X25,X26,X27,X29,X30,X31 \ -# RUN: --spilled-regs-list=X5,X6,X7,X28 -init-regs-in-elf -verify-mi diff --git a/llvm/test/tools/llvm-snippy/stack-pointer-reg-warn.yaml b/llvm/test/tools/llvm-snippy/stack-pointer-reg-warn.yaml deleted file mode 100644 index 1b0f964156d0..000000000000 --- a/llvm/test/tools/llvm-snippy/stack-pointer-reg-warn.yaml +++ /dev/null @@ -1,23 +0,0 @@ -# XFAIL: * -# RUN: llvm-snippy %s -march=riscv64-linux-gnu -redefine-sp=any-not-SP \ -# RUN: -num-instrs=10000 -model-plugin=None -external-stack \ -# RUN: |& FileCheck %s -# RUN: llvm-snippy %s -march=riscv64-linux-gnu -redefine-sp=any \ -# RUN: -num-instrs=10000 -model-plugin=None -external-stack \ -# RUN: |& FileCheck %s -sections: - - no: 1 - VMA: 0x500000 - SIZE: 0x100000 - LMA: 0x500000 - ACCESS: rx - - no: 2 - VMA: 0x600000 - SIZE: 0x700000 - LMA: 0x600000 - ACCESS: rw - -histogram: - - [ADD, 1.0] - -# CHECK: warning: 'external-stack' is specified: 'redefine-sp' is assumed to be SP