1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py 2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=haswell -instruction-tables < %s | FileCheck %s 3 4rdrand %ax 5rdrand %eax 6rdrand %rax 7 8# CHECK: Instruction Info: 9# CHECK-NEXT: [1]: #uOps 10# CHECK-NEXT: [2]: Latency 11# CHECK-NEXT: [3]: RThroughput 12# CHECK-NEXT: [4]: MayLoad 13# CHECK-NEXT: [5]: MayStore 14# CHECK-NEXT: [6]: HasSideEffects (U) 15 16# CHECK: [1] [2] [3] [4] [5] [6] Instructions: 17# CHECK-NEXT: 17 1 5.33 U rdrandw %ax 18# CHECK-NEXT: 17 1 5.33 U rdrandl %eax 19# CHECK-NEXT: 17 1 5.33 U rdrandq %rax 20 21# CHECK: Resources: 22# CHECK-NEXT: [0] - HWDivider 23# CHECK-NEXT: [1] - HWFPDivider 24# CHECK-NEXT: [2] - HWPort0 25# CHECK-NEXT: [3] - HWPort1 26# CHECK-NEXT: [4] - HWPort2 27# CHECK-NEXT: [5] - HWPort3 28# CHECK-NEXT: [6] - HWPort4 29# CHECK-NEXT: [7] - HWPort5 30# CHECK-NEXT: [8] - HWPort6 31# CHECK-NEXT: [9] - HWPort7 32 33# CHECK: Resource pressure per iteration: 34# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] 35# CHECK-NEXT: - - 16.00 16.00 1.50 1.50 - 16.00 - - 36 37# CHECK: Resource pressure by instruction: 38# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions: 39# CHECK-NEXT: - - 5.33 5.33 0.50 0.50 - 5.33 - - rdrandw %ax 40# CHECK-NEXT: - - 5.33 5.33 0.50 0.50 - 5.33 - - rdrandl %eax 41# CHECK-NEXT: - - 5.33 5.33 0.50 0.50 - 5.33 - - rdrandq %rax 42