brintos

brintos / llvm-project-archived public Read only

0
0
Text · 451 B · 8c19e16 Raw
17 lines · plain
1; RUN: llc -mtriple=x86_64-apple-darwin < %s| FileCheck %s2 3; A bug in DAGCombiner prevented it forming a zextload in this simple case4; because it counted both the chain user and the real user against the5; profitability total.6 7define void @load_zext(ptr nocapture %p){8entry:9  %0 = load i32, ptr %p, align 410  %and = and i32 %0, 25511  tail call void @use(i32 %and)12  ret void13; CHECK: movzbl ({{%r[a-z]+}}), {{%e[a-z]+}}14}15 16declare void @use(i32)17