2017-07-02 22:50:35 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
|
2010-02-10 10:17:34 +08:00
|
|
|
; rdar://7570931
|
|
|
|
|
|
|
|
define i64 @foo(i64 %a, i64 %b) nounwind {
|
2013-07-14 14:24:09 +08:00
|
|
|
; CHECK-LABEL: foo:
|
2017-12-05 01:18:51 +08:00
|
|
|
; CHECK: # %bb.0:
|
2017-07-02 22:50:35 +08:00
|
|
|
; CHECK-NEXT: leal (%rdi,%rsi), %eax
|
|
|
|
; CHECK-NEXT: retq
|
2010-02-10 10:17:34 +08:00
|
|
|
%c = add i64 %a, %b
|
|
|
|
%d = trunc i64 %c to i32
|
|
|
|
%e = zext i32 %d to i64
|
|
|
|
ret i64 %e
|
|
|
|
}
|