24 lines · plain
1# Check that "assembled_snippet" is fetched correctly from object file.2# Feel free to update the snippet in this test if the code generated by the3# snippet repetitor was changed intentionally and it is still fetched correctly.4 5# RUN: llvm-exegesis --mtriple=mips-linux-gnu --mcpu=generic --benchmark-phase=prepare-and-assemble-snippet \6# RUN: --snippets-file=%s --mode=latency --repetition-mode=duplicate \7# RUN: | FileCheck %s --check-prefix=CHECK-LINUX8 9# RUN: llvm-exegesis --mtriple=mips64-linux-gnu --mcpu=generic --benchmark-phase=prepare-and-assemble-snippet \10# RUN: --snippets-file=%s --mode=latency --repetition-mode=duplicate \11# RUN: | FileCheck %s --check-prefix=CHECK-LINUX-6412 13# LLVM-EXEGESIS-DEFREG A0 014# LLVM-EXEGESIS-DEFREG A1 015add $2, $5, $416 17# CHECK-LINUX: cpu_name: generic18# CHECK-LINUX: llvm_triple: mips-unknown-linux-gnu19# CHECK-LINUX: assembled_snippet: 340400003405000000A4102000A4102000A4102000A4102003E00008{{$}}20 21# CHECK-LINUX-64: cpu_name: generic22# CHECK-LINUX-64: llvm_triple: mips64-unknown-linux-gnu23# CHECK-LINUX-64: assembled_snippet: 340400003405000000A4102000A4102000A4102000A4102003E00008{{$}}24