Xamarin Public Jenkins (auto-signing) e19d552987 Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
2018-10-19 08:34:24 +00:00

21 lines
840 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=x86-64 -mattr=+clzero | FileCheck %s --check-prefix=GENERIC
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=znver1 | FileCheck %s --check-prefix=ZNVER1
define void @test_clzero(i8* %p) {
; GENERIC-LABEL: test_clzero:
; GENERIC: # %bb.0:
; GENERIC-NEXT: leaq (%rdi), %rax # sched: [1:0.50]
; GENERIC-NEXT: clzero # sched: [100:0.33]
; GENERIC-NEXT: retq # sched: [1:1.00]
;
; ZNVER1-LABEL: test_clzero:
; ZNVER1: # %bb.0:
; ZNVER1-NEXT: leaq (%rdi), %rax # sched: [1:0.25]
; ZNVER1-NEXT: clzero # sched: [100:?]
; ZNVER1-NEXT: retq # sched: [1:0.50]
tail call void @llvm.x86.clzero(i8* %p)
ret void
}
declare void @llvm.x86.clzero(i8*)