Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/X86/anyext.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 | 1172e4bd9c6f |
line wrap: on
line source
; RUN: llc < %s -march=x86-64 | grep movzbl | count 2 ; Use movzbl to avoid partial-register updates. define i32 @foo(i32 %p, i8 zeroext %x) nounwind { %q = trunc i32 %p to i8 %r = udiv i8 %q, %x %s = zext i8 %r to i32 %t = and i32 %s, 1 ret i32 %t } define i32 @bar(i32 %p, i16 zeroext %x) nounwind { %q = trunc i32 %p to i16 %r = udiv i16 %q, %x %s = zext i16 %r to i32 %t = and i32 %s, 1 ret i32 %t }