17 lines
486 B
LLVM
17 lines
486 B
LLVM
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||
|
; RUN: llc -mtriple=x86_64-- -enable-ipra -o - < %s | FileCheck %s
|
||
|
|
||
|
define i8 @main(i8 %X) {
|
||
|
; CHECK-LABEL: main:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: # kill: def $edi killed $edi def $rdi
|
||
|
; CHECK-NEXT: leal (%rdi,%rdi,4), %eax
|
||
|
; CHECK-NEXT: addb $5, %al
|
||
|
; CHECK-NEXT: # kill: def $al killed $al killed $eax
|
||
|
; CHECK-NEXT: retq
|
||
|
%inc = add i8 %X, 1
|
||
|
%inc2 = mul i8 %inc, 5
|
||
|
ret i8 %inc2
|
||
|
}
|
||
|
|