1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py 2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=3 -timeline -register-file-stats < %s | FileCheck %s 3 4xor %eax, %eax 5mov %eax, %ebx 6mov %ebx, %ecx 7mov %ecx, %edx 8mov %edx, %eax 9 10# CHECK: Iterations: 3 11# CHECK-NEXT: Instructions: 15 12# CHECK-NEXT: Total Cycles: 9 13# CHECK-NEXT: Total uOps: 15 14 15# CHECK: Dispatch Width: 2 16# CHECK-NEXT: uOps Per Cycle: 1.67 17# CHECK-NEXT: IPC: 1.67 18# CHECK-NEXT: Block RThroughput: 2.5 19 20# CHECK: Instruction Info: 21# CHECK-NEXT: [1]: #uOps 22# CHECK-NEXT: [2]: Latency 23# CHECK-NEXT: [3]: RThroughput 24# CHECK-NEXT: [4]: MayLoad 25# CHECK-NEXT: [5]: MayStore 26# CHECK-NEXT: [6]: HasSideEffects (U) 27 28# CHECK: [1] [2] [3] [4] [5] [6] Instructions: 29# CHECK-NEXT: 1 0 0.50 xorl %eax, %eax 30# CHECK-NEXT: 1 1 0.50 movl %eax, %ebx 31# CHECK-NEXT: 1 1 0.50 movl %ebx, %ecx 32# CHECK-NEXT: 1 1 0.50 movl %ecx, %edx 33# CHECK-NEXT: 1 1 0.50 movl %edx, %eax 34 35# CHECK: Register File statistics: 36# CHECK-NEXT: Total number of mappings created: 0 37# CHECK-NEXT: Max number of mappings used: 0 38 39# CHECK: * Register File #1 -- JFpuPRF: 40# CHECK-NEXT: Number of physical registers: 72 41# CHECK-NEXT: Total number of mappings created: 0 42# CHECK-NEXT: Max number of mappings used: 0 43 44# CHECK: * Register File #2 -- JIntegerPRF: 45# CHECK-NEXT: Number of physical registers: 64 46# CHECK-NEXT: Total number of mappings created: 0 47# CHECK-NEXT: Max number of mappings used: 0 48# CHECK-NEXT: Number of optimizable moves: 12 49# CHECK-NEXT: Number of moves eliminated: 12 (100.0%) 50# CHECK-NEXT: Number of zero moves: 12 (100.0%) 51# CHECK-NEXT: Max moves eliminated per cycle: 2 52 53# CHECK: Resources: 54# CHECK-NEXT: [0] - JALU0 55# CHECK-NEXT: [1] - JALU1 56# CHECK-NEXT: [2] - JDiv 57# CHECK-NEXT: [3] - JFPA 58# CHECK-NEXT: [4] - JFPM 59# CHECK-NEXT: [5] - JFPU0 60# CHECK-NEXT: [6] - JFPU1 61# CHECK-NEXT: [7] - JLAGU 62# CHECK-NEXT: [8] - JMul 63# CHECK-NEXT: [9] - JSAGU 64# CHECK-NEXT: [10] - JSTC 65# CHECK-NEXT: [11] - JVALU0 66# CHECK-NEXT: [12] - JVALU1 67# CHECK-NEXT: [13] - JVIMUL 68 69# CHECK: Resource pressure per iteration: 70# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] 71# CHECK-NEXT: - - - - - - - - - - - - - - 72 73# CHECK: Resource pressure by instruction: 74# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions: 75# CHECK-NEXT: - - - - - - - - - - - - - - xorl %eax, %eax 76# CHECK-NEXT: - - - - - - - - - - - - - - movl %eax, %ebx 77# CHECK-NEXT: - - - - - - - - - - - - - - movl %ebx, %ecx 78# CHECK-NEXT: - - - - - - - - - - - - - - movl %ecx, %edx 79# CHECK-NEXT: - - - - - - - - - - - - - - movl %edx, %eax 80 81# CHECK: Timeline view: 82# CHECK-NEXT: Index 012345678 83 84# CHECK: [0,0] DR . . xorl %eax, %eax 85# CHECK-NEXT: [0,1] DR . . movl %eax, %ebx 86# CHECK-NEXT: [0,2] .DR . . movl %ebx, %ecx 87# CHECK-NEXT: [0,3] .DR . . movl %ecx, %edx 88# CHECK-NEXT: [0,4] . DR . . movl %edx, %eax 89# CHECK-NEXT: [1,0] . DR . . xorl %eax, %eax 90# CHECK-NEXT: [1,1] . DR. . movl %eax, %ebx 91# CHECK-NEXT: [1,2] . DR. . movl %ebx, %ecx 92# CHECK-NEXT: [1,3] . DR . movl %ecx, %edx 93# CHECK-NEXT: [1,4] . DR . movl %edx, %eax 94# CHECK-NEXT: [2,0] . DR . xorl %eax, %eax 95# CHECK-NEXT: [2,1] . DR . movl %eax, %ebx 96# CHECK-NEXT: [2,2] . .DR. movl %ebx, %ecx 97# CHECK-NEXT: [2,3] . .DR. movl %ecx, %edx 98# CHECK-NEXT: [2,4] . . DR movl %edx, %eax 99 100# CHECK: Average Wait times (based on the timeline view): 101# CHECK-NEXT: [0]: Executions 102# CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue 103# CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready 104# CHECK-NEXT: [3]: Average time elapsed from WB until retire stage 105 106# CHECK: [0] [1] [2] [3] 107# CHECK-NEXT: 0. 3 0.0 0.0 0.0 xorl %eax, %eax 108# CHECK-NEXT: 1. 3 0.0 0.0 0.0 movl %eax, %ebx 109# CHECK-NEXT: 2. 3 0.0 0.0 0.0 movl %ebx, %ecx 110# CHECK-NEXT: 3. 3 0.0 0.0 0.0 movl %ecx, %edx 111# CHECK-NEXT: 4. 3 0.0 0.0 0.0 movl %edx, %eax 112# CHECK-NEXT: 3 0.0 0.0 0.0 <total> 113