[llvm] r337298 - [llvm-mca][x86] Add displacement-only and additional scale=1 LEA tests
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 17 09:17:34 PDT 2018
Author: rksimon
Date: Tue Jul 17 09:17:33 2018
New Revision: 337298
URL: http://llvm.org/viewvc/llvm-project?rev=337298&view=rev
Log:
[llvm-mca][x86] Add displacement-only and additional scale=1 LEA tests
Modified:
llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-lea.s
Modified: llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-lea.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-lea.s?rev=337298&r1=337297&r2=337298&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-lea.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-lea.s Tue Jul 17 09:17:33 2018
@@ -1,6 +1,9 @@
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -instruction-tables < %s | FileCheck %s
+lea 0(), %cx
+lea 0(), %ecx
+lea 0(), %rcx
lea (%eax), %cx
lea (%eax), %ecx
lea (%eax), %rcx
@@ -31,6 +34,12 @@ lea (%eax, %ebx), %rcx
lea (%rax, %rbx), %cx
lea (%rax, %rbx), %ecx
lea (%rax, %rbx), %rcx
+lea (%eax, %ebx, 1), %cx
+lea (%eax, %ebx, 1), %ecx
+lea (%eax, %ebx, 1), %rcx
+lea (%rax, %rbx, 1), %cx
+lea (%rax, %rbx, 1), %ecx
+lea (%rax, %rbx, 1), %rcx
lea (%eax, %ebx, 2), %cx
lea (%eax, %ebx, 2), %ecx
lea (%eax, %ebx, 2), %rcx
@@ -38,6 +47,9 @@ lea (%rax, %rbx, 2), %cx
lea (%rax, %rbx, 2), %ecx
lea (%rax, %rbx, 2), %rcx
+lea -16(), %cx
+lea -16(), %ecx
+lea -16(), %rcx
lea -16(%eax), %cx
lea -16(%eax), %ecx
lea -16(%eax), %rcx
@@ -68,6 +80,12 @@ lea -16(%eax, %ebx), %rcx
lea -16(%rax, %rbx), %cx
lea -16(%rax, %rbx), %ecx
lea -16(%rax, %rbx), %rcx
+lea -16(%eax, %ebx, 1), %cx
+lea -16(%eax, %ebx, 1), %ecx
+lea -16(%eax, %ebx, 1), %rcx
+lea -16(%rax, %rbx, 1), %cx
+lea -16(%rax, %rbx, 1), %ecx
+lea -16(%rax, %rbx, 1), %rcx
lea -16(%eax, %ebx, 2), %cx
lea -16(%eax, %ebx, 2), %ecx
lea -16(%eax, %ebx, 2), %rcx
@@ -75,6 +93,9 @@ lea -16(%rax, %rbx, 2), %cx
lea -16(%rax, %rbx, 2), %ecx
lea -16(%rax, %rbx, 2), %rcx
+lea 1024(), %cx
+lea 1024(), %ecx
+lea 1024(), %rcx
lea 1024(%eax), %cx
lea 1024(%eax), %ecx
lea 1024(%eax), %rcx
@@ -105,6 +126,12 @@ lea 1024(%eax, %ebx), %rcx
lea 1024(%rax, %rbx), %cx
lea 1024(%rax, %rbx), %ecx
lea 1024(%rax, %rbx), %rcx
+lea 1024(%eax, %ebx, 1), %cx
+lea 1024(%eax, %ebx, 1), %ecx
+lea 1024(%eax, %ebx, 1), %rcx
+lea 1024(%rax, %rbx, 1), %cx
+lea 1024(%rax, %rbx, 1), %ecx
+lea 1024(%rax, %rbx, 1), %rcx
lea 1024(%eax, %ebx, 2), %cx
lea 1024(%eax, %ebx, 2), %ecx
lea 1024(%eax, %ebx, 2), %rcx
@@ -121,6 +148,9 @@ lea 1024(%rax, %rbx, 2), %rcx
# CHECK-NEXT: [6]: HasSideEffects (U)
# CHECK: [1] [2] [3] [4] [5] [6] Instructions:
+# CHECK-NEXT: 1 1 0.50 leaw 0, %cx
+# CHECK-NEXT: 1 1 0.50 leal 0, %ecx
+# CHECK-NEXT: 1 1 0.50 leaq 0, %rcx
# CHECK-NEXT: 1 1 0.50 leaw (%eax), %cx
# CHECK-NEXT: 1 1 0.50 leal (%eax), %ecx
# CHECK-NEXT: 1 1 0.50 leaq (%eax), %rcx
@@ -151,12 +181,21 @@ lea 1024(%rax, %rbx, 2), %rcx
# CHECK-NEXT: 1 1 0.50 leaw (%rax,%rbx), %cx
# CHECK-NEXT: 1 1 0.50 leal (%rax,%rbx), %ecx
# CHECK-NEXT: 1 1 0.50 leaq (%rax,%rbx), %rcx
+# CHECK-NEXT: 1 1 0.50 leaw (%eax,%ebx), %cx
+# CHECK-NEXT: 1 1 0.50 leal (%eax,%ebx), %ecx
+# CHECK-NEXT: 1 1 0.50 leaq (%eax,%ebx), %rcx
+# CHECK-NEXT: 1 1 0.50 leaw (%rax,%rbx), %cx
+# CHECK-NEXT: 1 1 0.50 leal (%rax,%rbx), %ecx
+# CHECK-NEXT: 1 1 0.50 leaq (%rax,%rbx), %rcx
# CHECK-NEXT: 1 1 0.50 leaw (%eax,%ebx,2), %cx
# CHECK-NEXT: 1 1 0.50 leal (%eax,%ebx,2), %ecx
# CHECK-NEXT: 1 1 0.50 leaq (%eax,%ebx,2), %rcx
# CHECK-NEXT: 1 1 0.50 leaw (%rax,%rbx,2), %cx
# CHECK-NEXT: 1 1 0.50 leal (%rax,%rbx,2), %ecx
# CHECK-NEXT: 1 1 0.50 leaq (%rax,%rbx,2), %rcx
+# CHECK-NEXT: 1 1 0.50 leaw -16, %cx
+# CHECK-NEXT: 1 1 0.50 leal -16, %ecx
+# CHECK-NEXT: 1 1 0.50 leaq -16, %rcx
# CHECK-NEXT: 1 1 0.50 leaw -16(%eax), %cx
# CHECK-NEXT: 1 1 0.50 leal -16(%eax), %ecx
# CHECK-NEXT: 1 1 0.50 leaq -16(%eax), %rcx
@@ -187,12 +226,21 @@ lea 1024(%rax, %rbx, 2), %rcx
# CHECK-NEXT: 1 1 0.50 leaw -16(%rax,%rbx), %cx
# CHECK-NEXT: 1 1 0.50 leal -16(%rax,%rbx), %ecx
# CHECK-NEXT: 1 1 0.50 leaq -16(%rax,%rbx), %rcx
+# CHECK-NEXT: 1 1 0.50 leaw -16(%eax,%ebx), %cx
+# CHECK-NEXT: 1 1 0.50 leal -16(%eax,%ebx), %ecx
+# CHECK-NEXT: 1 1 0.50 leaq -16(%eax,%ebx), %rcx
+# CHECK-NEXT: 1 1 0.50 leaw -16(%rax,%rbx), %cx
+# CHECK-NEXT: 1 1 0.50 leal -16(%rax,%rbx), %ecx
+# CHECK-NEXT: 1 1 0.50 leaq -16(%rax,%rbx), %rcx
# CHECK-NEXT: 1 1 0.50 leaw -16(%eax,%ebx,2), %cx
# CHECK-NEXT: 1 1 0.50 leal -16(%eax,%ebx,2), %ecx
# CHECK-NEXT: 1 1 0.50 leaq -16(%eax,%ebx,2), %rcx
# CHECK-NEXT: 1 1 0.50 leaw -16(%rax,%rbx,2), %cx
# CHECK-NEXT: 1 1 0.50 leal -16(%rax,%rbx,2), %ecx
# CHECK-NEXT: 1 1 0.50 leaq -16(%rax,%rbx,2), %rcx
+# CHECK-NEXT: 1 1 0.50 leaw 1024, %cx
+# CHECK-NEXT: 1 1 0.50 leal 1024, %ecx
+# CHECK-NEXT: 1 1 0.50 leaq 1024, %rcx
# CHECK-NEXT: 1 1 0.50 leaw 1024(%eax), %cx
# CHECK-NEXT: 1 1 0.50 leal 1024(%eax), %ecx
# CHECK-NEXT: 1 1 0.50 leaq 1024(%eax), %rcx
@@ -223,6 +271,12 @@ lea 1024(%rax, %rbx, 2), %rcx
# CHECK-NEXT: 1 1 0.50 leaw 1024(%rax,%rbx), %cx
# CHECK-NEXT: 1 1 0.50 leal 1024(%rax,%rbx), %ecx
# CHECK-NEXT: 1 1 0.50 leaq 1024(%rax,%rbx), %rcx
+# CHECK-NEXT: 1 1 0.50 leaw 1024(%eax,%ebx), %cx
+# CHECK-NEXT: 1 1 0.50 leal 1024(%eax,%ebx), %ecx
+# CHECK-NEXT: 1 1 0.50 leaq 1024(%eax,%ebx), %rcx
+# CHECK-NEXT: 1 1 0.50 leaw 1024(%rax,%rbx), %cx
+# CHECK-NEXT: 1 1 0.50 leal 1024(%rax,%rbx), %ecx
+# CHECK-NEXT: 1 1 0.50 leaq 1024(%rax,%rbx), %rcx
# CHECK-NEXT: 1 1 0.50 leaw 1024(%eax,%ebx,2), %cx
# CHECK-NEXT: 1 1 0.50 leal 1024(%eax,%ebx,2), %ecx
# CHECK-NEXT: 1 1 0.50 leaq 1024(%eax,%ebx,2), %rcx
@@ -248,10 +302,13 @@ lea 1024(%rax, %rbx, 2), %rcx
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
-# CHECK-NEXT: 54.00 54.00 - - - - - - - - - - - -
+# CHECK-NEXT: 67.50 67.50 - - - - - - - - - - - -
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw 0, %cx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal 0, %ecx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq 0, %rcx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw (%eax), %cx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal (%eax), %ecx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq (%eax), %rcx
@@ -282,12 +339,21 @@ lea 1024(%rax, %rbx, 2), %rcx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw (%rax,%rbx), %cx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal (%rax,%rbx), %ecx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq (%rax,%rbx), %rcx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw (%eax,%ebx), %cx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal (%eax,%ebx), %ecx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq (%eax,%ebx), %rcx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw (%rax,%rbx), %cx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal (%rax,%rbx), %ecx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq (%rax,%rbx), %rcx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw (%eax,%ebx,2), %cx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal (%eax,%ebx,2), %ecx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq (%eax,%ebx,2), %rcx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw (%rax,%rbx,2), %cx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal (%rax,%rbx,2), %ecx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq (%rax,%rbx,2), %rcx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw -16, %cx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal -16, %ecx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq -16, %rcx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw -16(%eax), %cx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal -16(%eax), %ecx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq -16(%eax), %rcx
@@ -318,12 +384,21 @@ lea 1024(%rax, %rbx, 2), %rcx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw -16(%rax,%rbx), %cx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal -16(%rax,%rbx), %ecx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq -16(%rax,%rbx), %rcx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw -16(%eax,%ebx), %cx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal -16(%eax,%ebx), %ecx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq -16(%eax,%ebx), %rcx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw -16(%rax,%rbx), %cx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal -16(%rax,%rbx), %ecx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq -16(%rax,%rbx), %rcx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw -16(%eax,%ebx,2), %cx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal -16(%eax,%ebx,2), %ecx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq -16(%eax,%ebx,2), %rcx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw -16(%rax,%rbx,2), %cx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal -16(%rax,%rbx,2), %ecx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq -16(%rax,%rbx,2), %rcx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw 1024, %cx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal 1024, %ecx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq 1024, %rcx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw 1024(%eax), %cx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal 1024(%eax), %ecx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq 1024(%eax), %rcx
@@ -351,6 +426,12 @@ lea 1024(%rax, %rbx, 2), %rcx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw 1024(%eax,%ebx), %cx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal 1024(%eax,%ebx), %ecx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq 1024(%eax,%ebx), %rcx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw 1024(%rax,%rbx), %cx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal 1024(%rax,%rbx), %ecx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq 1024(%rax,%rbx), %rcx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw 1024(%eax,%ebx), %cx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal 1024(%eax,%ebx), %ecx
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq 1024(%eax,%ebx), %rcx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaw 1024(%rax,%rbx), %cx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leal 1024(%rax,%rbx), %ecx
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - leaq 1024(%rax,%rbx), %rcx
More information about the llvm-commits
mailing list