Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

17 lines
453 B
LLVM

; RUN: llc -mtriple=x86_64-apple-darwin < %s| FileCheck %s
; A bug in DAGCombiner prevented it forming a zextload in this simple case
; because it counted both the chain user and the real user against the
; profitability total.
define void @load_zext(i32* nocapture %p){
entry:
%0 = load i32, i32* %p, align 4
%and = and i32 %0, 255
tail call void @use(i32 %and)
ret void
; CHECK: movzbl ({{%r[a-z]+}}), {{%e[a-z]+}}
}
declare void @use(i32)