33 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=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-LINUX8 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-GNU12 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-MSVC16 17# LLVM-EXEGESIS-DEFREG RDI 018# LLVM-EXEGESIS-DEFREG RSI 019# LLVM-EXEGESIS-DEFREG RAX 020leaq (%rdi,%rsi), %rax21 22# CHECK-LINUX: cpu_name: x86-6423# CHECK-LINUX: llvm_triple: x86_64-unknown-linux-gnu24# CHECK-LINUX: assembled_snippet: 48BF000000000000000048BE000000000000000048B80000000000000000488D0437488D0437488D0437488D0437C3{{$}}25 26# CHECK-WINDOWS-GNU: cpu_name: x86-6427# CHECK-WINDOWS-GNU: llvm_triple: x86_64-unknown-windows-gnu28# CHECK-WINDOWS-GNU: assembled_snippet: 565748BF000000000000000048BE000000000000000048B80000000000000000488D0437488D0437488D0437488D04375F5EC3{{$}}29 30# CHECK-WINDOWS-MSVC: cpu_name: x86-6431# CHECK-WINDOWS-MSVC: llvm_triple: x86_64-unknown-windows-msvc32# CHECK-WINDOWS-MSVC: assembled_snippet: 565748BF000000000000000048BE000000000000000048B80000000000000000488D0437488D0437488D0437488D04375F5EC3{{$}}33