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=aarch64-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=aarch64-windows-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-WINDOWS-GNU 12 13# RUN: llvm-exegesis --mtriple=aarch64-windows-msvc --mcpu=generic --benchmark-phase=prepare-and-assemble-snippet \ 14# RUN: --snippets-file=%s --mode=latency --repetition-mode=duplicate \ 15# RUN: | FileCheck %s --check-prefix=CHECK-WINDOWS-MSVC 16 17# LLVM-EXEGESIS-DEFREG X0 0 18# LLVM-EXEGESIS-DEFREG X1 0 19add x0, x0, x1 20 21# CHECK-LINUX: cpu_name: generic 22# CHECK-LINUX: llvm_triple: aarch64-unknown-linux-gnu 23# CHECK-LINUX: assembled_snippet: 000080D2010080D20000018B0000018B0000018B0000018BC0035FD6{{$}} 24 25# CHECK-WINDOWS-GNU: cpu_name: generic 26# CHECK-WINDOWS-GNU: llvm_triple: aarch64-unknown-windows-gnu 27# CHECK-WINDOWS-GNU: assembled_snippet: 000080D2010080D20000018B0000018B0000018B0000018BC0035FD6{{$}} 28 29# CHECK-WINDOWS-MSVC: cpu_name: generic 30# CHECK-WINDOWS-MSVC: llvm_triple: aarch64-unknown-windows-msvc 31# CHECK-WINDOWS-MSVC: assembled_snippet: 000080D2010080D20000018B0000018B0000018B0000018BC0035FD6{{$}} 32