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=x86_64-linux-gnu --mcpu=x86-64 --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=x86_64-windows-gnu --mcpu=x86-64 --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=x86_64-windows-msvc --mcpu=x86-64 --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 RDI 0 18# LLVM-EXEGESIS-DEFREG RSI 0 19# LLVM-EXEGESIS-DEFREG RAX 0 20leaq (%rdi,%rsi), %rax 21 22# CHECK-LINUX: cpu_name: x86-64 23# CHECK-LINUX: llvm_triple: x86_64-unknown-linux-gnu 24# CHECK-LINUX: assembled_snippet: 48BF000000000000000048BE000000000000000048B80000000000000000488D0437488D0437488D0437488D0437C3{{$}} 25 26# CHECK-WINDOWS-GNU: cpu_name: x86-64 27# CHECK-WINDOWS-GNU: llvm_triple: x86_64-unknown-windows-gnu 28# CHECK-WINDOWS-GNU: assembled_snippet: 565748BF000000000000000048BE000000000000000048B80000000000000000488D0437488D0437488D0437488D04375F5EC3{{$}} 29 30# CHECK-WINDOWS-MSVC: cpu_name: x86-64 31# CHECK-WINDOWS-MSVC: llvm_triple: x86_64-unknown-windows-msvc 32# CHECK-WINDOWS-MSVC: assembled_snippet: 565748BF000000000000000048BE000000000000000048B80000000000000000488D0437488D0437488D0437488D04375F5EC3{{$}} 33