blob: b80c0bc6b10db4b80a31909878c09533f13f347f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
; 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)
|