Mercurial > hg > CbC > CbC_llvm
view test/CodeGen/X86/zext-trunc.ll @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 95c75e76d11b |
children | 3a76565eade5 |
line wrap: on
line source
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s ; rdar://7570931 define i64 @foo(i64 %a, i64 %b) nounwind { ; CHECK-LABEL: foo: ; CHECK: # BB#0: ; CHECK-NEXT: leal (%rdi,%rsi), %eax ; CHECK-NEXT: retq %c = add i64 %a, %b %d = trunc i64 %c to i32 %e = zext i32 %d to i64 ret i64 %e }