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 the 3# 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-LINUX 8 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-64 12 13# LLVM-EXEGESIS-DEFREG A0 0 14# LLVM-EXEGESIS-DEFREG A1 0 15add $2, $5, $4 16 17# CHECK-LINUX: cpu_name: generic 18# CHECK-LINUX: llvm_triple: mips-unknown-linux-gnu 19# CHECK-LINUX: assembled_snippet: 340400003405000000A4102000A4102000A4102000A4102003E00008{{$}} 20 21# CHECK-LINUX-64: cpu_name: generic 22# CHECK-LINUX-64: llvm_triple: mips64-unknown-linux-gnu 23# CHECK-LINUX-64: assembled_snippet: 340400003405000000A4102000A4102000A4102000A4102003E00008{{$}} 24