view test/CodeGen/X86/simple-zext.ll @ 33:e4204d083e25

LLVM 3.5
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 14:32:10 +0900
parents 95c75e76d11b
children afa8332a0e37
line wrap: on
line source

; 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* %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)