[llvm-mca] Improve test (NFC)

Add more instructions to the test for Cortex.

llvm-svn: 348565
This commit is contained in:
Evandro Menezes 2018-12-07 03:23:36 +00:00
parent 83beb91450
commit 51df880e70
1 changed files with 14 additions and 8 deletions

View File

@ -1,17 +1,20 @@
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
# RUN: llvm-mca -march=aarch64 -mcpu=cortex-a57 -resource-pressure=false < %s | FileCheck %s
add x0, x1, x2, lsl #3
add w0, w1, w2, lsl #0
sub x3, x4, x5, lsl #1
adds x6, x7, x8, lsr #2
subs x9, x10, x11, asr #3
# CHECK: Iterations: 100
# CHECK-NEXT: Instructions: 100
# CHECK-NEXT: Total Cycles: 104
# CHECK-NEXT: Total uOps: 100
# CHECK-NEXT: Instructions: 400
# CHECK-NEXT: Total Cycles: 304
# CHECK-NEXT: Total uOps: 400
# CHECK: Dispatch Width: 3
# CHECK-NEXT: uOps Per Cycle: 0.96
# CHECK-NEXT: IPC: 0.96
# CHECK-NEXT: Block RThroughput: 1.0
# CHECK-NEXT: uOps Per Cycle: 1.32
# CHECK-NEXT: IPC: 1.32
# CHECK-NEXT: Block RThroughput: 3.0
# CHECK: Instruction Info:
# CHECK-NEXT: [1]: #uOps
@ -22,4 +25,7 @@
# CHECK-NEXT: [6]: HasSideEffects (U)
# CHECK: [1] [2] [3] [4] [5] [6] Instructions:
# CHECK-NEXT: 1 2 1.00 add x0, x1, x2, lsl #3
# CHECK-NEXT: 1 1 0.50 add w0, w1, w2
# CHECK-NEXT: 1 2 1.00 sub x3, x4, x5, lsl #1
# CHECK-NEXT: 1 2 1.00 adds x6, x7, x8, lsr #2
# CHECK-NEXT: 1 2 1.00 subs x9, x10, x11, asr #3