1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[llvm-mca] Split test (NFC)

Split the Exynos test of the register offset addressing mode into separate
loads and stores tests.

llvm-svn: 349651
This commit is contained in:
Evandro Menezes 2018-12-19 17:37:14 +00:00
parent 245e81ba86
commit 5b23bf13c5
2 changed files with 56 additions and 29 deletions

View File

@ -12,33 +12,23 @@
ldr d21, [x22, x23, lsl #3]
ldr q24, [x25, x26, lsl #4]
strb w0, [x1, x2, lsl #0]
strh w3, [x4, x5, sxtx #1]
str w6, [x7, w8, uxtw #2]
str x9, [x10, w11, sxtw #3]
str b12, [x13, w14, sxtw #0]
str h15, [x16, w17, uxtw #1]
str s18, [x19, x20, sxtx #2]
str d21, [x22, x23, lsl #3]
str q24, [x25, x26, lsl #4]
# ALL: Iterations: 100
# ALL-NEXT: Instructions: 1800
# ALL-NEXT: Instructions: 900
# EM1-NEXT: Total Cycles: 1719
# EM3-NEXT: Total Cycles: 1713
# EM1-NEXT: Total Cycles: 1207
# EM3-NEXT: Total Cycles: 458
# ALL-NEXT: Total uOps: 2800
# ALL-NEXT: Total uOps: 1400
# EM1: Dispatch Width: 4
# EM1-NEXT: uOps Per Cycle: 1.63
# EM1-NEXT: IPC: 1.05
# EM1-NEXT: uOps Per Cycle: 1.16
# EM1-NEXT: IPC: 0.75
# EM1-NEXT: Block RThroughput: 12.0
# EM3: Dispatch Width: 6
# EM3-NEXT: uOps Per Cycle: 1.63
# EM3-NEXT: IPC: 1.05
# EM3-NEXT: Block RThroughput: 9.0
# EM3-NEXT: uOps Per Cycle: 3.06
# EM3-NEXT: IPC: 1.97
# EM3-NEXT: Block RThroughput: 4.5
# ALL: Instruction Info:
# ALL-NEXT: [1]: #uOps
@ -69,13 +59,3 @@
# EM3-NEXT: 1 5 0.50 * ldr s18, [x19, x20, sxtx #2]
# EM3-NEXT: 1 5 0.50 * ldr d21, [x22, x23, lsl #3]
# EM3-NEXT: 2 6 0.50 * ldr q24, [x25, x26, lsl #4]
# ALL-NEXT: 1 1 1.00 * strb w0, [x1, x2, lsl #0]
# ALL-NEXT: 1 1 1.00 * strh w3, [x4, x5, sxtx #1]
# ALL-NEXT: 2 2 1.00 * str w6, [x7, w8, uxtw #2]
# ALL-NEXT: 2 2 1.00 * str x9, [x10, w11, sxtw #3]
# ALL-NEXT: 2 3 1.00 * str b12, [x13, w14, sxtw #0]
# ALL-NEXT: 2 3 1.00 * str h15, [x16, w17, uxtw #1]
# ALL-NEXT: 1 1 1.00 * str s18, [x19, x20, sxtx #2]
# ALL-NEXT: 1 1 1.00 * str d21, [x22, x23, lsl #3]
# ALL-NEXT: 2 3 1.00 * str q24, [x25, x26, lsl #4]

View File

@ -0,0 +1,47 @@
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m1 -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,EM1
# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m3 -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,EM3
strb w0, [x1, x2, lsl #0]
strh w3, [x4, x5, sxtx #1]
str w6, [x7, w8, uxtw #2]
str x9, [x10, w11, sxtw #3]
str b12, [x13, w14, sxtw #0]
str h15, [x16, w17, uxtw #1]
str s18, [x19, x20, sxtx #2]
str d21, [x22, x23, lsl #3]
str q24, [x25, x26, lsl #4]
# ALL: Iterations: 100
# ALL-NEXT: Instructions: 900
# ALL-NEXT: Total Cycles: 1703
# ALL-NEXT: Total uOps: 1400
# EM1: Dispatch Width: 4
# EM1-NEXT: uOps Per Cycle: 0.82
# EM1-NEXT: IPC: 0.53
# EM1-NEXT: Block RThroughput: 9.0
# EM3: Dispatch Width: 6
# EM3-NEXT: uOps Per Cycle: 0.82
# EM3-NEXT: IPC: 0.53
# EM3-NEXT: Block RThroughput: 9.0
# ALL: Instruction Info:
# ALL-NEXT: [1]: #uOps
# ALL-NEXT: [2]: Latency
# ALL-NEXT: [3]: RThroughput
# ALL-NEXT: [4]: MayLoad
# ALL-NEXT: [5]: MayStore
# ALL-NEXT: [6]: HasSideEffects (U)
# ALL: [1] [2] [3] [4] [5] [6] Instructions:
# ALL-NEXT: 1 1 1.00 * strb w0, [x1, x2, lsl #0]
# ALL-NEXT: 1 1 1.00 * strh w3, [x4, x5, sxtx #1]
# ALL-NEXT: 2 2 1.00 * str w6, [x7, w8, uxtw #2]
# ALL-NEXT: 2 2 1.00 * str x9, [x10, w11, sxtw #3]
# ALL-NEXT: 2 3 1.00 * str b12, [x13, w14, sxtw #0]
# ALL-NEXT: 2 3 1.00 * str h15, [x16, w17, uxtw #1]
# ALL-NEXT: 1 1 1.00 * str s18, [x19, x20, sxtx #2]
# ALL-NEXT: 1 1 1.00 * str d21, [x22, x23, lsl #3]
# ALL-NEXT: 2 3 1.00 * str q24, [x25, x26, lsl #4]