1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py 2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=sandybridge -instruction-tables < %s | FileCheck %s 3 4cmovow %si, %di 5cmovnow %si, %di 6cmovbw %si, %di 7cmovaew %si, %di 8cmovew %si, %di 9cmovnew %si, %di 10cmovbew %si, %di 11cmovaw %si, %di 12cmovsw %si, %di 13cmovnsw %si, %di 14cmovpw %si, %di 15cmovnpw %si, %di 16cmovlw %si, %di 17cmovgew %si, %di 18cmovlew %si, %di 19cmovgw %si, %di 20 21cmovow (%rax), %di 22cmovnow (%rax), %di 23cmovbw (%rax), %di 24cmovaew (%rax), %di 25cmovew (%rax), %di 26cmovnew (%rax), %di 27cmovbew (%rax), %di 28cmovaw (%rax), %di 29cmovsw (%rax), %di 30cmovnsw (%rax), %di 31cmovpw (%rax), %di 32cmovnpw (%rax), %di 33cmovlw (%rax), %di 34cmovgew (%rax), %di 35cmovlew (%rax), %di 36cmovgw (%rax), %di 37 38cmovol %esi, %edi 39cmovnol %esi, %edi 40cmovbl %esi, %edi 41cmovael %esi, %edi 42cmovel %esi, %edi 43cmovnel %esi, %edi 44cmovbel %esi, %edi 45cmoval %esi, %edi 46cmovsl %esi, %edi 47cmovnsl %esi, %edi 48cmovpl %esi, %edi 49cmovnpl %esi, %edi 50cmovll %esi, %edi 51cmovgel %esi, %edi 52cmovlel %esi, %edi 53cmovgl %esi, %edi 54 55cmovol (%rax), %edi 56cmovnol (%rax), %edi 57cmovbl (%rax), %edi 58cmovael (%rax), %edi 59cmovel (%rax), %edi 60cmovnel (%rax), %edi 61cmovbel (%rax), %edi 62cmoval (%rax), %edi 63cmovsl (%rax), %edi 64cmovnsl (%rax), %edi 65cmovpl (%rax), %edi 66cmovnpl (%rax), %edi 67cmovll (%rax), %edi 68cmovgel (%rax), %edi 69cmovlel (%rax), %edi 70cmovgl (%rax), %edi 71 72cmovoq %rsi, %rdi 73cmovnoq %rsi, %rdi 74cmovbq %rsi, %rdi 75cmovaeq %rsi, %rdi 76cmoveq %rsi, %rdi 77cmovneq %rsi, %rdi 78cmovbeq %rsi, %rdi 79cmovaq %rsi, %rdi 80cmovsq %rsi, %rdi 81cmovnsq %rsi, %rdi 82cmovpq %rsi, %rdi 83cmovnpq %rsi, %rdi 84cmovlq %rsi, %rdi 85cmovgeq %rsi, %rdi 86cmovleq %rsi, %rdi 87cmovgq %rsi, %rdi 88 89cmovoq (%rax), %rdi 90cmovnoq (%rax), %rdi 91cmovbq (%rax), %rdi 92cmovaeq (%rax), %rdi 93cmoveq (%rax), %rdi 94cmovneq (%rax), %rdi 95cmovbeq (%rax), %rdi 96cmovaq (%rax), %rdi 97cmovsq (%rax), %rdi 98cmovnsq (%rax), %rdi 99cmovpq (%rax), %rdi 100cmovnpq (%rax), %rdi 101cmovlq (%rax), %rdi 102cmovgeq (%rax), %rdi 103cmovleq (%rax), %rdi 104cmovgq (%rax), %rdi 105 106# CHECK: Instruction Info: 107# CHECK-NEXT: [1]: #uOps 108# CHECK-NEXT: [2]: Latency 109# CHECK-NEXT: [3]: RThroughput 110# CHECK-NEXT: [4]: MayLoad 111# CHECK-NEXT: [5]: MayStore 112# CHECK-NEXT: [6]: HasSideEffects (U) 113 114# CHECK: [1] [2] [3] [4] [5] [6] Instructions: 115# CHECK-NEXT: 2 2 0.67 cmovow %si, %di 116# CHECK-NEXT: 2 2 0.67 cmovnow %si, %di 117# CHECK-NEXT: 2 2 0.67 cmovbw %si, %di 118# CHECK-NEXT: 2 2 0.67 cmovaew %si, %di 119# CHECK-NEXT: 2 2 0.67 cmovew %si, %di 120# CHECK-NEXT: 2 2 0.67 cmovnew %si, %di 121# CHECK-NEXT: 3 3 1.00 cmovbew %si, %di 122# CHECK-NEXT: 3 3 1.00 cmovaw %si, %di 123# CHECK-NEXT: 2 2 0.67 cmovsw %si, %di 124# CHECK-NEXT: 2 2 0.67 cmovnsw %si, %di 125# CHECK-NEXT: 2 2 0.67 cmovpw %si, %di 126# CHECK-NEXT: 2 2 0.67 cmovnpw %si, %di 127# CHECK-NEXT: 2 2 0.67 cmovlw %si, %di 128# CHECK-NEXT: 2 2 0.67 cmovgew %si, %di 129# CHECK-NEXT: 2 2 0.67 cmovlew %si, %di 130# CHECK-NEXT: 2 2 0.67 cmovgw %si, %di 131# CHECK-NEXT: 3 7 0.67 * cmovow (%rax), %di 132# CHECK-NEXT: 3 7 0.67 * cmovnow (%rax), %di 133# CHECK-NEXT: 3 7 0.67 * cmovbw (%rax), %di 134# CHECK-NEXT: 3 7 0.67 * cmovaew (%rax), %di 135# CHECK-NEXT: 3 7 0.67 * cmovew (%rax), %di 136# CHECK-NEXT: 3 7 0.67 * cmovnew (%rax), %di 137# CHECK-NEXT: 4 8 1.00 * cmovbew (%rax), %di 138# CHECK-NEXT: 4 8 1.00 * cmovaw (%rax), %di 139# CHECK-NEXT: 3 7 0.67 * cmovsw (%rax), %di 140# CHECK-NEXT: 3 7 0.67 * cmovnsw (%rax), %di 141# CHECK-NEXT: 3 7 0.67 * cmovpw (%rax), %di 142# CHECK-NEXT: 3 7 0.67 * cmovnpw (%rax), %di 143# CHECK-NEXT: 3 7 0.67 * cmovlw (%rax), %di 144# CHECK-NEXT: 3 7 0.67 * cmovgew (%rax), %di 145# CHECK-NEXT: 3 7 0.67 * cmovlew (%rax), %di 146# CHECK-NEXT: 3 7 0.67 * cmovgw (%rax), %di 147# CHECK-NEXT: 2 2 0.67 cmovol %esi, %edi 148# CHECK-NEXT: 2 2 0.67 cmovnol %esi, %edi 149# CHECK-NEXT: 2 2 0.67 cmovbl %esi, %edi 150# CHECK-NEXT: 2 2 0.67 cmovael %esi, %edi 151# CHECK-NEXT: 2 2 0.67 cmovel %esi, %edi 152# CHECK-NEXT: 2 2 0.67 cmovnel %esi, %edi 153# CHECK-NEXT: 3 3 1.00 cmovbel %esi, %edi 154# CHECK-NEXT: 3 3 1.00 cmoval %esi, %edi 155# CHECK-NEXT: 2 2 0.67 cmovsl %esi, %edi 156# CHECK-NEXT: 2 2 0.67 cmovnsl %esi, %edi 157# CHECK-NEXT: 2 2 0.67 cmovpl %esi, %edi 158# CHECK-NEXT: 2 2 0.67 cmovnpl %esi, %edi 159# CHECK-NEXT: 2 2 0.67 cmovll %esi, %edi 160# CHECK-NEXT: 2 2 0.67 cmovgel %esi, %edi 161# CHECK-NEXT: 2 2 0.67 cmovlel %esi, %edi 162# CHECK-NEXT: 2 2 0.67 cmovgl %esi, %edi 163# CHECK-NEXT: 3 7 0.67 * cmovol (%rax), %edi 164# CHECK-NEXT: 3 7 0.67 * cmovnol (%rax), %edi 165# CHECK-NEXT: 3 7 0.67 * cmovbl (%rax), %edi 166# CHECK-NEXT: 3 7 0.67 * cmovael (%rax), %edi 167# CHECK-NEXT: 3 7 0.67 * cmovel (%rax), %edi 168# CHECK-NEXT: 3 7 0.67 * cmovnel (%rax), %edi 169# CHECK-NEXT: 4 8 1.00 * cmovbel (%rax), %edi 170# CHECK-NEXT: 4 8 1.00 * cmoval (%rax), %edi 171# CHECK-NEXT: 3 7 0.67 * cmovsl (%rax), %edi 172# CHECK-NEXT: 3 7 0.67 * cmovnsl (%rax), %edi 173# CHECK-NEXT: 3 7 0.67 * cmovpl (%rax), %edi 174# CHECK-NEXT: 3 7 0.67 * cmovnpl (%rax), %edi 175# CHECK-NEXT: 3 7 0.67 * cmovll (%rax), %edi 176# CHECK-NEXT: 3 7 0.67 * cmovgel (%rax), %edi 177# CHECK-NEXT: 3 7 0.67 * cmovlel (%rax), %edi 178# CHECK-NEXT: 3 7 0.67 * cmovgl (%rax), %edi 179# CHECK-NEXT: 2 2 0.67 cmovoq %rsi, %rdi 180# CHECK-NEXT: 2 2 0.67 cmovnoq %rsi, %rdi 181# CHECK-NEXT: 2 2 0.67 cmovbq %rsi, %rdi 182# CHECK-NEXT: 2 2 0.67 cmovaeq %rsi, %rdi 183# CHECK-NEXT: 2 2 0.67 cmoveq %rsi, %rdi 184# CHECK-NEXT: 2 2 0.67 cmovneq %rsi, %rdi 185# CHECK-NEXT: 3 3 1.00 cmovbeq %rsi, %rdi 186# CHECK-NEXT: 3 3 1.00 cmovaq %rsi, %rdi 187# CHECK-NEXT: 2 2 0.67 cmovsq %rsi, %rdi 188# CHECK-NEXT: 2 2 0.67 cmovnsq %rsi, %rdi 189# CHECK-NEXT: 2 2 0.67 cmovpq %rsi, %rdi 190# CHECK-NEXT: 2 2 0.67 cmovnpq %rsi, %rdi 191# CHECK-NEXT: 2 2 0.67 cmovlq %rsi, %rdi 192# CHECK-NEXT: 2 2 0.67 cmovgeq %rsi, %rdi 193# CHECK-NEXT: 2 2 0.67 cmovleq %rsi, %rdi 194# CHECK-NEXT: 2 2 0.67 cmovgq %rsi, %rdi 195# CHECK-NEXT: 3 7 0.67 * cmovoq (%rax), %rdi 196# CHECK-NEXT: 3 7 0.67 * cmovnoq (%rax), %rdi 197# CHECK-NEXT: 3 7 0.67 * cmovbq (%rax), %rdi 198# CHECK-NEXT: 3 7 0.67 * cmovaeq (%rax), %rdi 199# CHECK-NEXT: 3 7 0.67 * cmoveq (%rax), %rdi 200# CHECK-NEXT: 3 7 0.67 * cmovneq (%rax), %rdi 201# CHECK-NEXT: 4 8 1.00 * cmovbeq (%rax), %rdi 202# CHECK-NEXT: 4 8 1.00 * cmovaq (%rax), %rdi 203# CHECK-NEXT: 3 7 0.67 * cmovsq (%rax), %rdi 204# CHECK-NEXT: 3 7 0.67 * cmovnsq (%rax), %rdi 205# CHECK-NEXT: 3 7 0.67 * cmovpq (%rax), %rdi 206# CHECK-NEXT: 3 7 0.67 * cmovnpq (%rax), %rdi 207# CHECK-NEXT: 3 7 0.67 * cmovlq (%rax), %rdi 208# CHECK-NEXT: 3 7 0.67 * cmovgeq (%rax), %rdi 209# CHECK-NEXT: 3 7 0.67 * cmovleq (%rax), %rdi 210# CHECK-NEXT: 3 7 0.67 * cmovgq (%rax), %rdi 211 212# CHECK: Resources: 213# CHECK-NEXT: [0] - SBDivider 214# CHECK-NEXT: [1] - SBFPDivider 215# CHECK-NEXT: [2] - SBPort0 216# CHECK-NEXT: [3] - SBPort1 217# CHECK-NEXT: [4] - SBPort4 218# CHECK-NEXT: [5] - SBPort5 219# CHECK-NEXT: [6.0] - SBPort23 220# CHECK-NEXT: [6.1] - SBPort23 221 222# CHECK: Resource pressure per iteration: 223# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] 224# CHECK-NEXT: - - 86.00 32.00 - 86.00 24.00 24.00 225 226# CHECK: Resource pressure by instruction: 227# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions: 228# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovow %si, %di 229# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovnow %si, %di 230# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovbw %si, %di 231# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovaew %si, %di 232# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovew %si, %di 233# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovnew %si, %di 234# CHECK-NEXT: - - 1.33 0.33 - 1.33 - - cmovbew %si, %di 235# CHECK-NEXT: - - 1.33 0.33 - 1.33 - - cmovaw %si, %di 236# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovsw %si, %di 237# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovnsw %si, %di 238# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovpw %si, %di 239# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovnpw %si, %di 240# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovlw %si, %di 241# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovgew %si, %di 242# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovlew %si, %di 243# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovgw %si, %di 244# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovow (%rax), %di 245# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovnow (%rax), %di 246# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovbw (%rax), %di 247# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovaew (%rax), %di 248# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovew (%rax), %di 249# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovnew (%rax), %di 250# CHECK-NEXT: - - 1.33 0.33 - 1.33 0.50 0.50 cmovbew (%rax), %di 251# CHECK-NEXT: - - 1.33 0.33 - 1.33 0.50 0.50 cmovaw (%rax), %di 252# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovsw (%rax), %di 253# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovnsw (%rax), %di 254# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovpw (%rax), %di 255# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovnpw (%rax), %di 256# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovlw (%rax), %di 257# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovgew (%rax), %di 258# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovlew (%rax), %di 259# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovgw (%rax), %di 260# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovol %esi, %edi 261# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovnol %esi, %edi 262# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovbl %esi, %edi 263# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovael %esi, %edi 264# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovel %esi, %edi 265# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovnel %esi, %edi 266# CHECK-NEXT: - - 1.33 0.33 - 1.33 - - cmovbel %esi, %edi 267# CHECK-NEXT: - - 1.33 0.33 - 1.33 - - cmoval %esi, %edi 268# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovsl %esi, %edi 269# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovnsl %esi, %edi 270# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovpl %esi, %edi 271# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovnpl %esi, %edi 272# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovll %esi, %edi 273# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovgel %esi, %edi 274# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovlel %esi, %edi 275# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovgl %esi, %edi 276# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovol (%rax), %edi 277# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovnol (%rax), %edi 278# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovbl (%rax), %edi 279# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovael (%rax), %edi 280# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovel (%rax), %edi 281# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovnel (%rax), %edi 282# CHECK-NEXT: - - 1.33 0.33 - 1.33 0.50 0.50 cmovbel (%rax), %edi 283# CHECK-NEXT: - - 1.33 0.33 - 1.33 0.50 0.50 cmoval (%rax), %edi 284# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovsl (%rax), %edi 285# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovnsl (%rax), %edi 286# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovpl (%rax), %edi 287# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovnpl (%rax), %edi 288# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovll (%rax), %edi 289# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovgel (%rax), %edi 290# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovlel (%rax), %edi 291# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovgl (%rax), %edi 292# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovoq %rsi, %rdi 293# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovnoq %rsi, %rdi 294# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovbq %rsi, %rdi 295# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovaeq %rsi, %rdi 296# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmoveq %rsi, %rdi 297# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovneq %rsi, %rdi 298# CHECK-NEXT: - - 1.33 0.33 - 1.33 - - cmovbeq %rsi, %rdi 299# CHECK-NEXT: - - 1.33 0.33 - 1.33 - - cmovaq %rsi, %rdi 300# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovsq %rsi, %rdi 301# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovnsq %rsi, %rdi 302# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovpq %rsi, %rdi 303# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovnpq %rsi, %rdi 304# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovlq %rsi, %rdi 305# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovgeq %rsi, %rdi 306# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovleq %rsi, %rdi 307# CHECK-NEXT: - - 0.83 0.33 - 0.83 - - cmovgq %rsi, %rdi 308# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovoq (%rax), %rdi 309# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovnoq (%rax), %rdi 310# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovbq (%rax), %rdi 311# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovaeq (%rax), %rdi 312# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmoveq (%rax), %rdi 313# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovneq (%rax), %rdi 314# CHECK-NEXT: - - 1.33 0.33 - 1.33 0.50 0.50 cmovbeq (%rax), %rdi 315# CHECK-NEXT: - - 1.33 0.33 - 1.33 0.50 0.50 cmovaq (%rax), %rdi 316# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovsq (%rax), %rdi 317# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovnsq (%rax), %rdi 318# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovpq (%rax), %rdi 319# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovnpq (%rax), %rdi 320# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovlq (%rax), %rdi 321# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovgeq (%rax), %rdi 322# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovleq (%rax), %rdi 323# CHECK-NEXT: - - 0.83 0.33 - 0.83 0.50 0.50 cmovgq (%rax), %rdi 324