source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AArch64/arm64-zext.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 238 bytes
Line 
1; RUN: llc < %s -march=arm64 | FileCheck %s
2
3define i64 @foo(i32 %a, i32 %b) nounwind readnone ssp {
4entry:
5; CHECK-LABEL: foo:
6; CHECK: add w0, w1, w0
7; CHECK: ret
8  %add = add i32 %b, %a
9  %conv = zext i32 %add to i64
10  ret i64 %conv
11}
Note: See TracBrowser for help on using the repository browser.