blob: 57f9ee1b25ec479b243fd9f138e2ef309ebf555e [file] [log] [blame]
Simon Pilgrima6750712017-11-28 23:12:12 +00001; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=x86-64 -mattr=+clflushopt | FileCheck %s --check-prefix=CHECK --check-prefix=GENERIC
3; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=goldmont | FileCheck %s --check-prefix=CHECK --check-prefix=GLM
4; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
5; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skx | FileCheck %s --check-prefix=CHECK --check-prefix=SKX
6; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=znver1 | FileCheck %s --check-prefix=CHECK --check-prefix=ZNVER1
7
8define void @clflushopt(i8* %p) nounwind {
9; GENERIC-LABEL: clflushopt:
10; GENERIC: # BB#0:
11; GENERIC-NEXT: clflushopt (%rdi) # sched: [5:1.00]
12; GENERIC-NEXT: retq # sched: [1:1.00]
13;
14; GLM-LABEL: clflushopt:
15; GLM: # BB#0:
16; GLM-NEXT: clflushopt (%rdi)
17; GLM-NEXT: retq # sched: [4:1.00]
18;
19; SKYLAKE-LABEL: clflushopt:
20; SKYLAKE: # BB#0:
21; SKYLAKE-NEXT: clflushopt (%rdi) # sched: [2:1.00]
22; SKYLAKE-NEXT: retq # sched: [7:1.00]
23;
24; SKX-LABEL: clflushopt:
25; SKX: # BB#0:
26; SKX-NEXT: clflushopt (%rdi) # sched: [2:1.00]
27; SKX-NEXT: retq # sched: [7:1.00]
28;
29; ZNVER1-LABEL: clflushopt:
30; ZNVER1: # BB#0:
31; ZNVER1-NEXT: clflushopt (%rdi)
32; ZNVER1-NEXT: retq # sched: [1:0.50]
33 tail call void @llvm.x86.clflushopt(i8* %p)
34 ret void
35}
36declare void @llvm.x86.clflushopt(i8*) nounwind