| 1 |
; REQUIRES: x86-registered-target |
| 2 |
; RUN: llc < %s -mcpu=generic -mtriple=x86_64-unknown-linux-gnu -O3 | FileCheck %s |
| 3 |
; RUN: llc < %s -mcpu=generic -mtriple=x86_64-unknown-windows-msvc -O3 | FileCheck %s |
| 4 |
|
| 5 |
define float @foo(float %x) #0 { |
| 6 |
%tmp1 = fmul float %x, 3.000000e+00 |
| 7 |
%tmp3 = fmul float %x, 5.000000e+00 |
| 8 |
%tmp5 = fmul float %x, 7.000000e+00 |
| 9 |
%tmp7 = fmul float %x, 1.100000e+01 |
| 10 |
call void @llvm.pseudoprobe(i64 6699318081062747564, i64 1, i32 0, i64 -1) |
| 11 |
%tmp10 = fadd float %tmp1, %tmp3 |
| 12 |
%tmp12 = fadd float %tmp10, %tmp5 |
| 13 |
%tmp14 = fadd float %tmp12, %tmp7 |
| 14 |
ret float %tmp14 |
| 15 |
; CHECK: mulss |
| 16 |
; CHECK: mulss |
| 17 |
; CHECK: addss |
| 18 |
; CHECK: mulss |
| 19 |
; CHECK: addss |
| 20 |
; CHECK: mulss |
| 21 |
; CHECK: addss |
| 22 |
; CHECK: ret |
| 23 |
} |
| 24 |
|
| 25 |
; Function Attrs: inaccessiblememonly nounwind willreturn |
| 26 |
declare void @llvm.pseudoprobe(i64, i64, i32, i64) #1 |
| 27 |
|
| 28 |
attributes #0 = { nounwind } |
| 29 |
attributes #1 = { inaccessiblememonly nounwind willreturn } |
| 30 |
|
| 31 |
!llvm.pseudo_probe_desc = !{!0} |
| 32 |
|
| 33 |
!0 = !{i64 6699318081062747564, i64 4294967295, !"foo", null} |
| 34 |
|