[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / llvm-mca / X86 / print-imm-hex-1.s
blob26ba26f7382b83b91c1031bd0bee5815fa31e141
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -all-views=false -instruction-info < %s | FileCheck %s --check-prefixes=ALL,DEFAULT
3 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -all-views=false -instruction-info -print-imm-hex=false < %s | FileCheck %s --check-prefixes=ALL,DEFAULT
4 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -all-views=false -instruction-info -print-imm-hex < %s | FileCheck %s --check-prefixes=ALL,HEX
5 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -all-views=false -instruction-info -print-imm-hex=true < %s | FileCheck %s --check-prefixes=ALL,HEX
7 shl $5, %eax
8 shl $0x5, %eax
9 shl $5h, %eax
10 shl $101b, %eax
12 # ALL: Instruction Info:
13 # ALL-NEXT: [1]: #uOps
14 # ALL-NEXT: [2]: Latency
15 # ALL-NEXT: [3]: RThroughput
16 # ALL-NEXT: [4]: MayLoad
17 # ALL-NEXT: [5]: MayStore
18 # ALL-NEXT: [6]: HasSideEffects (U)
20 # ALL: [1] [2] [3] [4] [5] [6] Instructions:
22 # DEFAULT-NEXT: 1 1 0.50 shll $5, %eax
23 # DEFAULT-NEXT: 1 1 0.50 shll $5, %eax
24 # DEFAULT-NEXT: 1 1 0.50 shll $5, %eax
25 # DEFAULT-NEXT: 1 1 0.50 shll $5, %eax
27 # HEX-NEXT: 1 1 0.50 shll $0x5, %eax
28 # HEX-NEXT: 1 1 0.50 shll $0x5, %eax
29 # HEX-NEXT: 1 1 0.50 shll $0x5, %eax
30 # HEX-NEXT: 1 1 0.50 shll $0x5, %eax