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 4vxorps %xmm0, %xmm0, %xmm0 5vmovaps %xmm0, %xmm1 6vmovups %xmm1, %xmm2 7vmovapd %xmm2, %xmm3 8vmovupd %xmm3, %xmm4 9vmovdqa %xmm4, %xmm5 10vmovdqu %xmm5, %xmm0 11 12# CHECK: Iterations: 3 13# CHECK-NEXT: Instructions: 21 14# CHECK-NEXT: Total Cycles: 12 15# CHECK-NEXT: Total uOps: 21 16 17# CHECK: Dispatch Width: 2 18# CHECK-NEXT: uOps Per Cycle: 1.75 19# CHECK-NEXT: IPC: 1.75 20# CHECK-NEXT: Block RThroughput: 3.5 21 22# CHECK: Instruction Info: 23# CHECK-NEXT: [1]: #uOps 24# CHECK-NEXT: [2]: Latency 25# CHECK-NEXT: [3]: RThroughput 26# CHECK-NEXT: [4]: MayLoad 27# CHECK-NEXT: [5]: MayStore 28# CHECK-NEXT: [6]: HasSideEffects (U) 29 30# CHECK: [1] [2] [3] [4] [5] [6] Instructions: 31# CHECK-NEXT: 1 0 0.50 vxorps %xmm0, %xmm0, %xmm0 32# CHECK-NEXT: 1 1 0.50 vmovaps %xmm0, %xmm1 33# CHECK-NEXT: 1 1 0.50 vmovups %xmm1, %xmm2 34# CHECK-NEXT: 1 1 0.50 vmovapd %xmm2, %xmm3 35# CHECK-NEXT: 1 1 0.50 vmovupd %xmm3, %xmm4 36# CHECK-NEXT: 1 1 0.50 vmovdqa %xmm4, %xmm5 37# CHECK-NEXT: 1 1 0.50 vmovdqu %xmm5, %xmm0 38 39# CHECK: Register File statistics: 40# CHECK-NEXT: Total number of mappings created: 0 41# CHECK-NEXT: Max number of mappings used: 0 42 43# CHECK: * Register File #1 -- JFpuPRF: 44# CHECK-NEXT: Number of physical registers: 72 45# CHECK-NEXT: Total number of mappings created: 0 46# CHECK-NEXT: Max number of mappings used: 0 47# CHECK-NEXT: Number of optimizable moves: 18 48# CHECK-NEXT: Number of moves eliminated: 18 (100.0%) 49# CHECK-NEXT: Number of zero moves: 18 (100.0%) 50# CHECK-NEXT: Max moves eliminated per cycle: 2 51 52# CHECK: * Register File #2 -- JIntegerPRF: 53# CHECK-NEXT: Number of physical registers: 64 54# CHECK-NEXT: Total number of mappings created: 0 55# CHECK-NEXT: Max number of mappings used: 0 56 57# CHECK: Resources: 58# CHECK-NEXT: [0] - JALU0 59# CHECK-NEXT: [1] - JALU1 60# CHECK-NEXT: [2] - JDiv 61# CHECK-NEXT: [3] - JFPA 62# CHECK-NEXT: [4] - JFPM 63# CHECK-NEXT: [5] - JFPU0 64# CHECK-NEXT: [6] - JFPU1 65# CHECK-NEXT: [7] - JLAGU 66# CHECK-NEXT: [8] - JMul 67# CHECK-NEXT: [9] - JSAGU 68# CHECK-NEXT: [10] - JSTC 69# CHECK-NEXT: [11] - JVALU0 70# CHECK-NEXT: [12] - JVALU1 71# CHECK-NEXT: [13] - JVIMUL 72 73# CHECK: Resource pressure per iteration: 74# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] 75# CHECK-NEXT: - - - - - - - - - - - - - - 76 77# CHECK: Resource pressure by instruction: 78# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions: 79# CHECK-NEXT: - - - - - - - - - - - - - - vxorps %xmm0, %xmm0, %xmm0 80# CHECK-NEXT: - - - - - - - - - - - - - - vmovaps %xmm0, %xmm1 81# CHECK-NEXT: - - - - - - - - - - - - - - vmovups %xmm1, %xmm2 82# CHECK-NEXT: - - - - - - - - - - - - - - vmovapd %xmm2, %xmm3 83# CHECK-NEXT: - - - - - - - - - - - - - - vmovupd %xmm3, %xmm4 84# CHECK-NEXT: - - - - - - - - - - - - - - vmovdqa %xmm4, %xmm5 85# CHECK-NEXT: - - - - - - - - - - - - - - vmovdqu %xmm5, %xmm0 86 87# CHECK: Timeline view: 88# CHECK-NEXT: 01 89# CHECK-NEXT: Index 0123456789 90 91# CHECK: [0,0] DR . .. vxorps %xmm0, %xmm0, %xmm0 92# CHECK-NEXT: [0,1] DR . .. vmovaps %xmm0, %xmm1 93# CHECK-NEXT: [0,2] .DR . .. vmovups %xmm1, %xmm2 94# CHECK-NEXT: [0,3] .DR . .. vmovapd %xmm2, %xmm3 95# CHECK-NEXT: [0,4] . DR . .. vmovupd %xmm3, %xmm4 96# CHECK-NEXT: [0,5] . DR . .. vmovdqa %xmm4, %xmm5 97# CHECK-NEXT: [0,6] . DR. .. vmovdqu %xmm5, %xmm0 98# CHECK-NEXT: [1,0] . DR. .. vxorps %xmm0, %xmm0, %xmm0 99# CHECK-NEXT: [1,1] . DR .. vmovaps %xmm0, %xmm1 100# CHECK-NEXT: [1,2] . DR .. vmovups %xmm1, %xmm2 101# CHECK-NEXT: [1,3] . DR .. vmovapd %xmm2, %xmm3 102# CHECK-NEXT: [1,4] . DR .. vmovupd %xmm3, %xmm4 103# CHECK-NEXT: [1,5] . .DR .. vmovdqa %xmm4, %xmm5 104# CHECK-NEXT: [1,6] . .DR .. vmovdqu %xmm5, %xmm0 105# CHECK-NEXT: [2,0] . . DR .. vxorps %xmm0, %xmm0, %xmm0 106# CHECK-NEXT: [2,1] . . DR .. vmovaps %xmm0, %xmm1 107# CHECK-NEXT: [2,2] . . DR.. vmovups %xmm1, %xmm2 108# CHECK-NEXT: [2,3] . . DR.. vmovapd %xmm2, %xmm3 109# CHECK-NEXT: [2,4] . . DR. vmovupd %xmm3, %xmm4 110# CHECK-NEXT: [2,5] . . DR. vmovdqa %xmm4, %xmm5 111# CHECK-NEXT: [2,6] . . DR vmovdqu %xmm5, %xmm0 112 113# CHECK: Average Wait times (based on the timeline view): 114# CHECK-NEXT: [0]: Executions 115# CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue 116# CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready 117# CHECK-NEXT: [3]: Average time elapsed from WB until retire stage 118 119# CHECK: [0] [1] [2] [3] 120# CHECK-NEXT: 0. 3 0.0 0.0 0.0 vxorps %xmm0, %xmm0, %xmm0 121# CHECK-NEXT: 1. 3 0.0 0.0 0.0 vmovaps %xmm0, %xmm1 122# CHECK-NEXT: 2. 3 0.0 0.0 0.0 vmovups %xmm1, %xmm2 123# CHECK-NEXT: 3. 3 0.0 0.0 0.0 vmovapd %xmm2, %xmm3 124# CHECK-NEXT: 4. 3 0.0 0.0 0.0 vmovupd %xmm3, %xmm4 125# CHECK-NEXT: 5. 3 0.0 0.0 0.0 vmovdqa %xmm4, %xmm5 126# CHECK-NEXT: 6. 3 0.0 0.0 0.0 vmovdqu %xmm5, %xmm0 127# CHECK-NEXT: 3 0.0 0.0 0.0 <total> 128