diff --git a/test/tools/llvm-mca/X86/Atom/resources-sse3.s b/test/tools/llvm-mca/X86/Atom/resources-sse3.s index 7a40abac280..b604d10c0a2 100644 --- a/test/tools/llvm-mca/X86/Atom/resources-sse3.s +++ b/test/tools/llvm-mca/X86/Atom/resources-sse3.s @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py -# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=slm -instruction-tables < %s | FileCheck %s +# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=atom -instruction-tables < %s | FileCheck %s addsubpd %xmm0, %xmm2 addsubpd (%rax), %xmm2 @@ -39,59 +39,53 @@ movsldup (%rax), %xmm2 # CHECK-NEXT: [6]: HasSideEffects # CHECK: [1] [2] [3] [4] [5] [6] Instructions: -# CHECK-NEXT: 1 3 1.00 addsubpd %xmm0, %xmm2 -# CHECK-NEXT: 1 6 1.00 * addsubpd (%rax), %xmm2 -# CHECK-NEXT: 1 3 1.00 addsubps %xmm0, %xmm2 -# CHECK-NEXT: 1 6 1.00 * addsubps (%rax), %xmm2 -# CHECK-NEXT: 1 3 1.00 haddpd %xmm0, %xmm2 -# CHECK-NEXT: 1 6 1.00 * haddpd (%rax), %xmm2 -# CHECK-NEXT: 1 3 1.00 haddps %xmm0, %xmm2 -# CHECK-NEXT: 1 6 1.00 * haddps (%rax), %xmm2 -# CHECK-NEXT: 1 3 1.00 hsubpd %xmm0, %xmm2 -# CHECK-NEXT: 1 6 1.00 * hsubpd (%rax), %xmm2 -# CHECK-NEXT: 1 3 1.00 hsubps %xmm0, %xmm2 -# CHECK-NEXT: 1 6 1.00 * hsubps (%rax), %xmm2 -# CHECK-NEXT: 1 3 1.00 * lddqu (%rax), %xmm2 +# CHECK-NEXT: 1 6 3.00 addsubpd %xmm0, %xmm2 +# CHECK-NEXT: 1 6 3.00 * addsubpd (%rax), %xmm2 +# CHECK-NEXT: 1 5 5.00 addsubps %xmm0, %xmm2 +# CHECK-NEXT: 1 5 5.00 * addsubps (%rax), %xmm2 +# CHECK-NEXT: 1 8 4.00 haddpd %xmm0, %xmm2 +# CHECK-NEXT: 1 9 4.50 * haddpd (%rax), %xmm2 +# CHECK-NEXT: 1 8 4.00 haddps %xmm0, %xmm2 +# CHECK-NEXT: 1 9 4.50 * haddps (%rax), %xmm2 +# CHECK-NEXT: 1 8 4.00 hsubpd %xmm0, %xmm2 +# CHECK-NEXT: 1 9 4.50 * hsubpd (%rax), %xmm2 +# CHECK-NEXT: 1 8 4.00 hsubps %xmm0, %xmm2 +# CHECK-NEXT: 1 9 4.50 * hsubps (%rax), %xmm2 +# CHECK-NEXT: 1 3 1.50 * lddqu (%rax), %xmm2 # CHECK-NEXT: 1 1 1.00 movddup %xmm0, %xmm2 -# CHECK-NEXT: 1 4 1.00 * movddup (%rax), %xmm2 +# CHECK-NEXT: 1 1 1.00 * movddup (%rax), %xmm2 # CHECK-NEXT: 1 1 1.00 movshdup %xmm0, %xmm2 -# CHECK-NEXT: 1 4 1.00 * movshdup (%rax), %xmm2 +# CHECK-NEXT: 1 1 1.00 * movshdup (%rax), %xmm2 # CHECK-NEXT: 1 1 1.00 movsldup %xmm0, %xmm2 -# CHECK-NEXT: 1 4 1.00 * movsldup (%rax), %xmm2 +# CHECK-NEXT: 1 1 1.00 * movsldup (%rax), %xmm2 # CHECK: Resources: -# CHECK-NEXT: [0] - SLMDivider -# CHECK-NEXT: [1] - SLMFPDivider -# CHECK-NEXT: [2] - SLMFPMultiplier -# CHECK-NEXT: [3] - SLM_FPC_RSV0 -# CHECK-NEXT: [4] - SLM_FPC_RSV1 -# CHECK-NEXT: [5] - SLM_IEC_RSV0 -# CHECK-NEXT: [6] - SLM_IEC_RSV1 -# CHECK-NEXT: [7] - SLM_MEC_RSV +# CHECK-NEXT: [0] - AtomPort0 +# CHECK-NEXT: [1] - AtomPort1 # CHECK: Resource pressure per iteration: -# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] -# CHECK-NEXT: - - - 14.00 12.00 - - 10.00 +# CHECK-NEXT: [0] [1] +# CHECK-NEXT: 57.50 41.50 # CHECK: Resource pressure by instruction: -# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] Instructions: -# CHECK-NEXT: - - - - 1.00 - - - addsubpd %xmm0, %xmm2 -# CHECK-NEXT: - - - - 1.00 - - 1.00 addsubpd (%rax), %xmm2 -# CHECK-NEXT: - - - - 1.00 - - - addsubps %xmm0, %xmm2 -# CHECK-NEXT: - - - - 1.00 - - 1.00 addsubps (%rax), %xmm2 -# CHECK-NEXT: - - - 1.00 1.00 - - - haddpd %xmm0, %xmm2 -# CHECK-NEXT: - - - 1.00 1.00 - - 1.00 haddpd (%rax), %xmm2 -# CHECK-NEXT: - - - 1.00 1.00 - - - haddps %xmm0, %xmm2 -# CHECK-NEXT: - - - 1.00 1.00 - - 1.00 haddps (%rax), %xmm2 -# CHECK-NEXT: - - - 1.00 1.00 - - - hsubpd %xmm0, %xmm2 -# CHECK-NEXT: - - - 1.00 1.00 - - 1.00 hsubpd (%rax), %xmm2 -# CHECK-NEXT: - - - 1.00 1.00 - - - hsubps %xmm0, %xmm2 -# CHECK-NEXT: - - - 1.00 1.00 - - 1.00 hsubps (%rax), %xmm2 -# CHECK-NEXT: - - - - - - - 1.00 lddqu (%rax), %xmm2 -# CHECK-NEXT: - - - 1.00 - - - - movddup %xmm0, %xmm2 -# CHECK-NEXT: - - - 1.00 - - - 1.00 movddup (%rax), %xmm2 -# CHECK-NEXT: - - - 1.00 - - - - movshdup %xmm0, %xmm2 -# CHECK-NEXT: - - - 1.00 - - - 1.00 movshdup (%rax), %xmm2 -# CHECK-NEXT: - - - 1.00 - - - - movsldup %xmm0, %xmm2 -# CHECK-NEXT: - - - 1.00 - - - 1.00 movsldup (%rax), %xmm2 +# CHECK-NEXT: [0] [1] Instructions: +# CHECK-NEXT: 3.00 3.00 addsubpd %xmm0, %xmm2 +# CHECK-NEXT: 3.00 3.00 addsubpd (%rax), %xmm2 +# CHECK-NEXT: 5.00 - addsubps %xmm0, %xmm2 +# CHECK-NEXT: 5.00 - addsubps (%rax), %xmm2 +# CHECK-NEXT: 4.00 4.00 haddpd %xmm0, %xmm2 +# CHECK-NEXT: 4.50 4.50 haddpd (%rax), %xmm2 +# CHECK-NEXT: 4.00 4.00 haddps %xmm0, %xmm2 +# CHECK-NEXT: 4.50 4.50 haddps (%rax), %xmm2 +# CHECK-NEXT: 4.00 4.00 hsubpd %xmm0, %xmm2 +# CHECK-NEXT: 4.50 4.50 hsubpd (%rax), %xmm2 +# CHECK-NEXT: 4.00 4.00 hsubps %xmm0, %xmm2 +# CHECK-NEXT: 4.50 4.50 hsubps (%rax), %xmm2 +# CHECK-NEXT: 1.50 1.50 lddqu (%rax), %xmm2 +# CHECK-NEXT: 1.00 - movddup %xmm0, %xmm2 +# CHECK-NEXT: 1.00 - movddup (%rax), %xmm2 +# CHECK-NEXT: 1.00 - movshdup %xmm0, %xmm2 +# CHECK-NEXT: 1.00 - movshdup (%rax), %xmm2 +# CHECK-NEXT: 1.00 - movsldup %xmm0, %xmm2 +# CHECK-NEXT: 1.00 - movsldup (%rax), %xmm2